summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2019-06-21 07:58:24 +0200
committerHans de Graaff <graaff@gentoo.org>2019-06-21 07:58:24 +0200
commitb568cc5c67eead0641771bc30bc18684b40426e2 (patch)
tree47ae8a36be835d2c54b126c6be7c8bba45dac6b1
parentprofiles: Mask/unmask spidermonkey[jit] per-platform (diff)
downloadgentoo-b568cc5c67eead0641771bc30bc18684b40426e2.tar.gz
gentoo-b568cc5c67eead0641771bc30bc18684b40426e2.tar.bz2
gentoo-b568cc5c67eead0641771bc30bc18684b40426e2.zip
dev-ruby/msgpack: add 1.3.0
Signed-off-by: Hans de Graaff <graaff@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
-rw-r--r--dev-ruby/msgpack/Manifest1
-rw-r--r--dev-ruby/msgpack/msgpack-1.3.0.ebuild42
2 files changed, 43 insertions, 0 deletions
diff --git a/dev-ruby/msgpack/Manifest b/dev-ruby/msgpack/Manifest
index d8fba9e25281..5b36b82e5f3f 100644
--- a/dev-ruby/msgpack/Manifest
+++ b/dev-ruby/msgpack/Manifest
@@ -1,3 +1,4 @@
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
+DIST msgpack-1.3.0.gem 82432 BLAKE2B b6b4e6a3f3cb204b2d4997cefb5aa5f307a6c3db332663f7e89360d68e2d5dd9211316d6532141c0276becb2e5d227aad4943976953a285cbd691c31d8c5387b SHA512 aeb9376c7e2029812b7e6be7732c419792e79a2bf1ebef6b2feebbfacfefaa7063658fee7b7a9b8558f6a04b6c10fcdc325aa27d9c1b856db7af5b15cccb06a5
diff --git a/dev-ruby/msgpack/msgpack-1.3.0.ebuild b/dev-ruby/msgpack/msgpack-1.3.0.ebuild
new file mode 100644
index 000000000000..822d7d1185dd
--- /dev/null
+++ b/dev-ruby/msgpack/msgpack-1.3.0.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+USE_RUBY="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."
+}