summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2015-10-28 06:14:52 +0100
committerHans de Graaff <graaff@gentoo.org>2015-10-28 06:30:58 +0100
commit4610b8404af3e0c8525b4fa89a1f2fdf4aae0169 (patch)
tree9faf0358e55ed3fba5fdf1e747fba1ebcd475441 /dev-ruby/ruby-filemagic
parentdev-ruby/ruby-filemagic: cleanup (diff)
downloadgentoo-4610b8404af3e0c8525b4fa89a1f2fdf4aae0169.tar.gz
gentoo-4610b8404af3e0c8525b4fa89a1f2fdf4aae0169.tar.bz2
gentoo-4610b8404af3e0c8525b4fa89a1f2fdf4aae0169.zip
dev-ruby/ruby-filemagic: add 0.7.1
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'dev-ruby/ruby-filemagic')
-rw-r--r--dev-ruby/ruby-filemagic/Manifest1
-rw-r--r--dev-ruby/ruby-filemagic/ruby-filemagic-0.7.1.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-ruby/ruby-filemagic/Manifest b/dev-ruby/ruby-filemagic/Manifest
index 6f603d88777c..f11cea7812a5 100644
--- a/dev-ruby/ruby-filemagic/Manifest
+++ b/dev-ruby/ruby-filemagic/Manifest
@@ -1 +1,2 @@
DIST ruby-filemagic-0.7.0.gem 229376 SHA256 e28af7f49955d800c3dfd1a2335c5c1aa9f380e57eda16050250e4345ad0e460 SHA512 ba257ac7ae58e664d0a45c319c9159650a267144941fdf558f2bd7aa442133f8303637153ab1eb89611c8709303afebbab42f1c3674cca89d15f5037c9bc9d43 WHIRLPOOL 8f64cdea5c7ec028e2d9bf116700e34cda12264946ae847ae5cbd014bd0518368788c6769c49c09775f7cdb3f647a6391cfffc4af29b139be4637a34ad4296eb
+DIST ruby-filemagic-0.7.1.gem 229376 SHA256 811de93cdc7d13dbd84d5fd3a35d699092e71a768af366637951ca109cbc7eed SHA512 9a05699fd299c20a52443d4a0213761229fa600157731712c8322e25e18cfc1f467075b8cb5e8c1790caeae9778e83cae83bb1c63475ea220a9b2d9ed896cd46 WHIRLPOOL 82d41b0264f16a2acc402ea297bc6db5ab489bdcc9a50933e916b26bf6103f483220e485ff0b102ed4b33a55898dd874a87be630884b847019d51c12ee208c41
diff --git a/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.1.ebuild b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.1.ebuild
new file mode 100644
index 000000000000..01382c367890
--- /dev/null
+++ b/dev-ruby/ruby-filemagic/ruby-filemagic-0.7.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21 ruby22"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_EXTRADOC="ChangeLog README TODO"
+
+RUBY_FAKEGEM_TASK_TEST=""
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Ruby binding to libmagic"
+HOMEPAGE="https://github.com/blackwinter/ruby-filemagic"
+
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE=""
+
+DEPEND="${DEPEND} sys-apps/file"
+RDEPEND="${RDEPEND} sys-apps/file"
+
+each_ruby_configure() {
+ ${RUBY} -Cext/filemagic extconf.rb || die
+}
+
+each_ruby_compile() {
+ emake V=1 -Cext/filemagic
+ mv ext/filemagic/ruby_filemagic$(get_modname) lib/filemagic/ || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ctest -I../lib filemagic_test.rb || die
+}