diff options
author | 2020-02-05 06:51:32 +0100 | |
---|---|---|
committer | 2020-02-05 07:16:18 +0100 | |
commit | 1bf3a5fc834dc2ce43af43ce690f7638aba63bd0 (patch) | |
tree | cbed8f626e641181c74a3168913ae5900dcd6810 /dev-ruby/msgpack/msgpack-1.3.3.ebuild | |
parent | dev-ruby/childprocess: add ruby27 (diff) | |
download | gentoo-1bf3a5fc834dc2ce43af43ce690f7638aba63bd0.tar.gz gentoo-1bf3a5fc834dc2ce43af43ce690f7638aba63bd0.tar.bz2 gentoo-1bf3a5fc834dc2ce43af43ce690f7638aba63bd0.zip |
dev-ruby/msgpack: add 1.3.3
Package-Manager: Portage-2.3.84, Repoman-2.3.20
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/msgpack/msgpack-1.3.3.ebuild')
-rw-r--r-- | dev-ruby/msgpack/msgpack-1.3.3.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/msgpack/msgpack-1.3.3.ebuild b/dev-ruby/msgpack/msgpack-1.3.3.ebuild new file mode 100644 index 000000000000..6db61d66e8f4 --- /dev/null +++ b/dev-ruby/msgpack/msgpack-1.3.3.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby24 ruby25 ruby26 ruby27" + +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" +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." +} |