Gentoo Archives: gentoo-alt

From: Jeremy Olexa <darkside@g.o>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] handling of newins mylib.so n ebuilds
Date: Tue, 08 Jun 2010 22:07:39
Message-Id: 4C0EBF21.904@gentoo.org
In Reply to: [gentoo-alt] handling of newins mylib.so n ebuilds by Ramon van Alteren
1 On 06/08/2010 04:46 PM, Ramon van Alteren wrote:
2 > Hi All,
3 >
4 > I was looking at ebuild dev-ruby/json-1.4.3-r1 for my x64-macos prefix from
5 > gentoo-x86 and it fails on the following snippet:
6 >
7 > each_ruby_install() {
8 > each_fakegem_install
9 > if [[ $(basename ${RUBY}) != "jruby" ]]; then
10 > ruby_fakegem_newins ext/json/ext/generator.so lib/json/ext/generator.so
11 > ruby_fakegem_newins ext/json/ext/parser.so lib/json/ext/parser.so
12 > fi
13 > }
14 >
15 > This obviously fails because my gcc-apple produced generator.bundle and
16 > parser.bundle instead of the hardcoded .so 's
17 >
18 > I imagine that this problem has been tackled before in other ebuilds but
19 > couldn't find a good example.
20 >
21 > What is the best approach to deal with constructs like this ?
22 >
23 > Ramon
24
25 Can you use get_modname() from multilib.eclass??
26
27 # @FUNCTION: get_modname
28 # @USAGE:
29 # @DESCRIPTION:
30 # Returns modulename with proper suffix {.so,.bundle,etc} for the current
31 # platform identified by CHOST.
32 #
33 # Example:
34 # libfoo$(get_modname)
35 # Returns: libfoo.so (ELF) || libfoo.bundle (MACH) || ...

Replies

Subject Author
Re: [gentoo-alt] handling of newins mylib.so n ebuilds Ramon van Alteren <ramon@××××××××××.nl>