Gentoo Archives: gentoo-dev

From: Hans de Graaff <graaff@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] dev-ruby/msgpack: use new extension support
Date: Sun, 31 Jan 2021 09:02:49
Message-Id: 3e8f85ed9c559c86c6c127d513667c0c222147e6.camel@gentoo.org
In Reply to: [gentoo-dev] [PATCH] ruby-fakegem.eclass: add support for compiled extensions by Hans de Graaff
1 --- msgpack-1.3.3.ebuild 2020-06-13 08:28:00.023541920 +0200
2 +++ msgpack-1.3.3-r1.ebuild 2021-01-31 09:51:25.856505887 +0100
3 @@ -1,4 +1,4 @@
4 -# Copyright 1999-2020 Gentoo Authors
5 +# Copyright 1999-2021 Gentoo Authors
6 # Distributed under the terms of the GNU General Public License v2
7
8 EAPI=7
9 @@ -8,7 +8,10 @@
10 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
11 RUBY_FAKEGEM_EXTRADOC="README.rdoc"
12
13 -inherit multilib ruby-fakegem
14 +RUBY_FAKEGEM_EXTENSIONS=(ext/msgpack/extconf.rb)
15 +RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/msgpack"
16 +
17 +inherit ruby-fakegem
18
19 DESCRIPTION="Binary-based efficient data interchange format for ruby
20 binding"
21 HOMEPAGE="https://msgpack.org/"
22 @@ -26,16 +29,3 @@
23
24 sed -i -e '/git ls-files/d' msgpack.gemspec || die
25 }
26 -
27 -each_ruby_configure() {
28 - ${RUBY} -Cext/${PN} extconf.rb || die "Configuration of
29 extension failed."
30 -
31 - # rb_num2int is not inlined on 32 bit arches but also not
32 explicitly
33 - # defined, bug 582968
34 - sed -i -e 's:-Wl,--no-undefined::' ext/${PN}/Makefile || die
35 -}
36 -
37 -each_ruby_compile() {
38 - emake V=1 -Cext/${PN}
39 - cp ext/${PN}/msgpack$(get_modname) lib/${PN} || die "Unable to
40 install msgpack library."
41 -}

Attachments

File name MIME type
signature.asc application/pgp-signature