public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Hans de Graaff <graaff@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] [PATCH] dev-ruby/msgpack: use new extension support
Date: Sun, 31 Jan 2021 10:02:40 +0100	[thread overview]
Message-ID: <3e8f85ed9c559c86c6c127d513667c0c222147e6.camel@gentoo.org> (raw)
In-Reply-To: <b6f351718500a411f22ec5ae5b103b4c50040f14.camel@gentoo.org>

[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]

--- 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."
-}

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

      reply	other threads:[~2021-01-31  9:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-31  9:00 [gentoo-dev] [PATCH] ruby-fakegem.eclass: add support for compiled extensions Hans de Graaff
2021-01-31  9:02 ` Hans de Graaff [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e8f85ed9c559c86c6c127d513667c0c222147e6.camel@gentoo.org \
    --to=graaff@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox