summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2021-03-26 08:02:30 +0100
committerHans de Graaff <graaff@gentoo.org>2021-03-26 08:03:27 +0100
commitdd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1 (patch)
tree710ac8fadee53e22ee961ef75fc4e81f873a1300 /dev-ruby/mimemagic/mimemagic-0.3.9.ebuild
parentdev-ruby/mini_mime: add 1.0.3 (diff)
downloadgentoo-dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1.tar.gz
gentoo-dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1.tar.bz2
gentoo-dd7f4b0726ab0f2b47d761cc6bcb91daa653ebc1.zip
dev-ruby/mimemagic: add 0.3.9
Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/mimemagic/mimemagic-0.3.9.ebuild')
-rw-r--r--dev-ruby/mimemagic/mimemagic-0.3.9.ebuild36
1 files changed, 36 insertions, 0 deletions
diff --git a/dev-ruby/mimemagic/mimemagic-0.3.9.ebuild b/dev-ruby/mimemagic/mimemagic-0.3.9.ebuild
new file mode 100644
index 000000000000..43690277205f
--- /dev/null
+++ b/dev-ruby/mimemagic/mimemagic-0.3.9.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby25 ruby26 ruby27 ruby30"
+
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+RUBY_FAKEGEM_GEMSPEC=mimemagic.gemspec
+
+inherit prefix ruby-fakegem
+
+DESCRIPTION="Fast mime detection by extension or content"
+HOMEPAGE="https://github.com/mimemagicrb/mimemagic"
+SRC_URI="https://github.com/mimemagicrb/mimemagic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RDEPEND+=" x11-misc/shared-mime-info"
+
+ruby_add_rdepend "
+ dev-ruby/nokogiri
+ dev-ruby/rake
+"
+
+ruby_add_bdepend "test? ( dev-ruby/minitest )"
+
+all_ruby_prepare() {
+ cp "${FILESDIR}/${P}-path.rb" lib/mimemagic/path.rb || die
+ eprefixify lib/mimemagic/path.rb
+
+ sed -i -e 's/git ls-files/find * -print/' ${RUBY_FAKEGEM_GEMSPEC} || die
+}