dev-ruby/msgpack: add 1.2.10
authorHans de Graaff <graaff@gentoo.org>
Tue, 7 May 2019 05:10:45 +0000 (07:10 +0200)
committerHans de Graaff <graaff@gentoo.org>
Tue, 7 May 2019 05:10:45 +0000 (07:10 +0200)
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

dev-ruby/msgpack/Manifest
dev-ruby/msgpack/msgpack-1.2.10.ebuild [new file with mode: 0644]

index 37a593b274aadd8a307282f9cd7be3a07c3cd93f..d8fba9e252819ac34340dbbcc22873653f1d9bb1 100644 (file)
@@ -1,2 +1,3 @@
+DIST msgpack-1.2.10.gem 79872 BLAKE2B 878d4bd0c1b9010389aa59358bbc70d2e771f5fa167d2eb659583cb116e94ed5c00578d89be96dd80dd458616336a2a1649ea9c7826cefe81d78ee0c2ac24299 SHA512 49186e0cbc375aaaa3174a488d2d47afc46d0618b0b3c3c7d60485672ba6e918e0607b18d9d7cfa9106478fb5250811fca4675dc482d4cf8e6c510acdcddeeb1
 DIST msgpack-1.2.7.gem 79360 BLAKE2B edd9573d9c8da035b853a77acd55b9243bb9001323d570e47b7dce667ffb08223d74396b313ec392769a39096626ea7388a7369b7d4220cd96e53a6e96f7bcac SHA512 086594a5f7202ae58f7681d7f58cea02560d68e4a3666e3bcead71dee0a8d0f7c56ac8a42e9ac2f7eea44f0d41207ae02ecc20e7bc0fea24af8a7965fdaceceb
 DIST msgpack-1.2.8.gem 79872 BLAKE2B 199bc1efd3a4dfc955ad05114d9d1753ae030806e53ef217051464be173f0d117f036a4f650e5ec20d1e385c47cbb036910ed5b9c40b8a5fa5c46dcc440e5e43 SHA512 2434593124743221fe64ad0d738d96a131d1b2883326c2d4147cbfff46a2b508faa47465071bb4527d42e5c4a3d1a3c590489221a772c68f40d8be4ea31dd7b2
diff --git a/dev-ruby/msgpack/msgpack-1.2.10.ebuild b/dev-ruby/msgpack/msgpack-1.2.10.ebuild
new file mode 100644 (file)
index 0000000..2fb6362
--- /dev/null
@@ -0,0 +1,42 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="ruby23 ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC="rdoc"
+RUBY_FAKEGEM_RECIPE_TEST="rspec3"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc"
+
+inherit multilib ruby-fakegem
+
+DESCRIPTION="Binary-based efficient data interchange format for ruby binding"
+HOMEPAGE="https://msgpack.org/"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~x86-fbsd"
+IUSE="doc"
+
+all_ruby_prepare() {
+       sed -i -e '/bundler/I s:^:#:' Rakefile || die
+
+       # Remove jruby-specific specs that are run also for other rubies.
+       rm -rf spec/jruby || die
+
+       sed -i -e '/git ls-files/d' msgpack.gemspec || die
+}
+
+each_ruby_configure() {
+       ${RUBY} -Cext/${PN} extconf.rb || die "Configuration of extension failed."
+
+       # rb_num2int is not inlined on 32 bit arches but also not explicitly
+       # defined, bug 582968
+       sed -i -e 's:-Wl,--no-undefined::' ext/${PN}/Makefile || die
+}
+
+each_ruby_compile() {
+       emake V=1 -Cext/${PN}
+       cp ext/${PN}/msgpack$(get_modname) lib/${PN} || die "Unable to install msgpack library."
+}