1 |
All, |
2 |
|
3 |
So swapping out to dylib was easier than I thought. If I don't hear any |
4 |
complaints, I'll post this to bugzilla. |
5 |
|
6 |
thx, |
7 |
|
8 |
Jason. |
9 |
|
10 |
--------------->8----------------------- |
11 |
--- ccze-0.2.1-r3.ebuild.orig 2012-04-01 06:02:50.000000000 -0400 |
12 |
+++ ccze-0.2.1-r3.ebuild 2014-01-15 15:48:06.000000000 -0500 |
13 |
@@ -14,7 +14,7 @@ |
14 |
|
15 |
LICENSE="GPL-2" |
16 |
SLOT="0" |
17 |
-KEYWORDS="amd64 ppc x86 ~x86-fbsd" |
18 |
+KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x64-macos" |
19 |
IUSE="" |
20 |
|
21 |
DEPEND="dev-libs/libpcre |
22 |
@@ -36,6 +36,14 @@ |
23 |
sed -e '/AC_CHECK_TYPE(error_t, int)/d' \ |
24 |
-i configure.ac || die |
25 |
|
26 |
+ # macos dylib fix |
27 |
+ if [[ ${CHOST} == *-darwin* ]] ; then |
28 |
+ sed -e "s:-shared$:-dynamiclib -undefined suppress -flat_namespace -install_name ${EPREFIX}/usr/lib/ccze/\$@:" \ |
29 |
+ -i src/Makefile.in || die |
30 |
+ sed -e "s:\.so:.dylib:g" \ |
31 |
+ -i src/Makefile.in src/ccze-plugin.c Rules.mk.in || die |
32 |
+ fi |
33 |
+ |
34 |
eautoreconf |
35 |
|
36 |
ht_fix_file Rules.mk.in |