dev-ruby/marcel: add missing dependency on mimemagic
authorHans de Graaff <graaff@gentoo.org>
Mon, 4 Jun 2018 09:55:27 +0000 (11:55 +0200)
committerHans de Graaff <graaff@gentoo.org>
Mon, 4 Jun 2018 09:56:01 +0000 (11:56 +0200)
Package-Manager: Portage-2.3.40, Repoman-2.3.9

dev-ruby/marcel/marcel-0.3.2-r1.ebuild [new file with mode: 0644]

diff --git a/dev-ruby/marcel/marcel-0.3.2-r1.ebuild b/dev-ruby/marcel/marcel-0.3.2-r1.ebuild
new file mode 100644 (file)
index 0000000..ee661bc
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+USE_RUBY="ruby23 ruby24 ruby25"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.md"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Simple mime type detection using magic numbers, filenames, and extensions"
+HOMEPAGE="https://github.com/basecamp/marcel"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+ruby_add_rdepend ">=dev-ruby/mimemagic-0.3.2:0"
+
+all_ruby_prepare() {
+       sed -i -e '2irequire "pathname"' test/test_helper.rb || die
+}