[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH] dev-ruby/msgpack: use new extension support
From:       Hans de Graaff <graaff () gentoo ! org>
Date:       2021-01-31 9:02:40
Message-ID: 3e8f85ed9c559c86c6c127d513667c0c222147e6.camel () gentoo ! org
[Download RAW message or body]


--- msgpack-1.3.3.ebuild	2020-06-13 08:28:00.023541920 +0200
+++ msgpack-1.3.3-r1.ebuild	2021-01-31 09:51:25.856505887 +0100
@@ -1,4 +1,4 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -8,7 +8,10 @@
 RUBY_FAKEGEM_RECIPE_TEST="rspec3"
 RUBY_FAKEGEM_EXTRADOC="README.rdoc"
 
-inherit multilib ruby-fakegem
+RUBY_FAKEGEM_EXTENSIONS=(ext/msgpack/extconf.rb)
+RUBY_FAKEGEM_EXTENSION_LIBDIR="lib/msgpack"
+
+inherit ruby-fakegem
 
 DESCRIPTION="Binary-based efficient data interchange format for ruby
binding"
 HOMEPAGE="https://msgpack.org/"
@@ -26,16 +29,3 @@
 
 	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."
-}

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic