Gentoo Archives: gentoo-alt

From: "François Bissey" <francois.bissey@×××××××××××××.nz>
To: gentoo-alt@l.g.o
Subject: Re: [gentoo-alt] [PATCH] ccze-0.2.1-r3: add ~x64-macos with dylib
Date: Wed, 15 Jan 2014 20:56:02
Message-Id: 16774170.yo464E2lQh@qcd-nzi3
In Reply to: [gentoo-alt] [PATCH] ccze-0.2.1-r3: add ~x64-macos with dylib by Jason Cooper
1 On Wed, 15 Jan 2014 15:53:38 Jason Cooper wrote:
2 > All,
3 >
4 > So swapping out to dylib was easier than I thought. If I don't hear any
5 > complaints, I'll post this to bugzilla.
6 >
7 > thx,
8 >
9 > Jason.
10 >
11 > --------------->8-----------------------
12 > --- ccze-0.2.1-r3.ebuild.orig 2012-04-01 06:02:50.000000000 -0400
13 > +++ ccze-0.2.1-r3.ebuild 2014-01-15 15:48:06.000000000 -0500
14 > @@ -14,7 +14,7 @@
15 >
16 > LICENSE="GPL-2"
17 > SLOT="0"
18 > -KEYWORDS="amd64 ppc x86 ~x86-fbsd"
19 > +KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x64-macos"
20 > IUSE=""
21 >
22 > DEPEND="dev-libs/libpcre
23 > @@ -36,6 +36,14 @@
24 > sed -e '/AC_CHECK_TYPE(error_t, int)/d' \
25 > -i configure.ac || die
26 >
27 > + # macos dylib fix
28 > + if [[ ${CHOST} == *-darwin* ]] ; then
29 > + sed -e "s:-shared$:-dynamiclib -undefined suppress -flat_namespace
30 > -install_name ${EPREFIX}/usr/lib/ccze/\$@:" \ + -i
31 > src/Makefile.in || die
32 > + sed -e "s:\.so:.dylib:g" \
33 > + -i src/Makefile.in src/ccze-plugin.c Rules.mk.in || die
34 > + fi
35 > +
36 > eautoreconf
37 >
38 > ht_fix_file Rules.mk.in
39
40
41 Looks fine. I would have done the dylib bit before the install name bit.
42 Not that it matters anyway.
43
44 Francois

Replies

Subject Author
Re: [gentoo-alt] [PATCH] ccze-0.2.1-r3: add ~x64-macos with dylib Jason Cooper <gentoo@××××××××××.net>