Lines 3-9
Link Here
|
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-php/roadsend-php/roadsend-php-2.9.9_p1.ebuild,v 1.1 2010/02/23 03:49:40 yngwin Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/dev-php/roadsend-php/roadsend-php-2.9.9_p1.ebuild,v 1.1 2010/02/23 03:49:40 yngwin Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=2 |
6 |
inherit eutils |
6 |
inherit autotools eutils multilib |
7 |
|
7 |
|
8 |
MY_PV=${PV/_/-} |
8 |
MY_PV=${PV/_/-} |
9 |
MY_P=${PN}-${MY_PV} |
9 |
MY_P=${PN}-${MY_PV} |
Lines 27-34
Link Here
|
27 |
fastcgi? ( dev-libs/fcgi )" |
27 |
fastcgi? ( dev-libs/fcgi )" |
28 |
RDEPEND="${DEPEND}" |
28 |
RDEPEND="${DEPEND}" |
29 |
|
29 |
|
|
|
30 |
# Upstream comment: "Sorry, most of the pain here seems to come from bigloo. In our new |
31 |
# rewrite (which is far from ready, however), bigloo is out of the picture." |
32 |
# So - in short, not worth the PITA and waste of time until 3.0.0 is out. |
33 |
QA_PRESTRIPPED="usr/bin/pcc |
34 |
usr/bin/pdb |
35 |
usr/bin/pcc.fcgi |
36 |
usr/bin/pcctags" |
37 |
QA_DT_HASH="usr/$(get_libdir)/libphp-pdo_u-3.2b.so" |
38 |
QA_SONAME="usr/$(get_libdir)/libfastcgi_u-3.2b.so |
39 |
usr/$(get_libdir)/libmhttpd_u-3.2b.so |
40 |
usr/$(get_libdir)/libpcc-rl_u-3.2b.so |
41 |
usr/$(get_libdir)/libphp.* |
42 |
usr/$(get_libdir)/libprofiler_u-3.2b.so |
43 |
usr/$(get_libdir)/libwebconnect_u-3.2b.so |
44 |
usr/$(get_libdir)/libwebserver.so" |
45 |
|
30 |
S="${WORKDIR}/${MY_P}" |
46 |
S="${WORKDIR}/${MY_P}" |
31 |
|
47 |
|
|
|
48 |
src_prepare() { |
49 |
# respect CFLAGS/LDFLAGS |
50 |
# Upstream bugs: http://code.roadsend.com/pcc/ticket/3495 |
51 |
# http://code.roadsend.com/pcc/ticket/3531 |
52 |
# note the ugly ^M gremlins and make the patch not fail |
53 |
# with DOS line endings depending on sys-devel/patch version installed |
54 |
edos2unix bigloo-rules.mk || die "failed to sanitize bigloo-rules.mk" |
55 |
for i in runtime/Makefile compiler/Makefile tools/c-interface/Makefile \ |
56 |
tools/profiler/Makefile tools/readline/Makefile webconnect/fastcgi/Makefile \ |
57 |
webconnect/micro/Makefile ; do |
58 |
mv -f ${i} ${i}.in || die "mv ${i} failed" |
59 |
done |
60 |
epatch "${FILESDIR}/${P}-flags.patch" |
61 |
# Bigloo needs -copt/-ldopt prefixed before *each* of CFLAGS/LDFLAGS |
62 |
# Without this you get flooded with tons of "Don't know what to do with arguments" messages |
63 |
local bcflags bldflags pcccflags pccldflags pccpropercflags pccproperldflags |
64 |
if [[ -n ${CFLAGS} ]] ; then |
65 |
for x in ${CFLAGS}; do |
66 |
bcflags="${bcflags} -copt ${x}" |
67 |
done |
68 |
sed -i -e "s:@@CFLAGS@@:${bcflags}:g" bigloo-rules.mk || die "sed failed" |
69 |
else |
70 |
sed -i -e "s:@@CFLAGS@@::g" bigloo-rules.mk || die "sed failed" |
71 |
fi |
72 |
if [[ -n ${LDFLAGS} ]] ; then |
73 |
for x in ${LDFLAGS} ; do |
74 |
bldflags="${bldflags} -ldopt ${x}" |
75 |
done |
76 |
sed -i -e "s:@@LDFLAGS@@:${bldflags}:g" bigloo-rules.mk || die "sed failed" |
77 |
else |
78 |
sed -i -e "s:@@LDFLAGS@@::g" bigloo-rules.mk || die "sed failed" |
79 |
fi |
80 |
|
81 |
# See http://code.roadsend.com/pcc/ticket/3523 for reasons for this madness |
82 |
# Also, pcc itself only accepts --copt/--ldopt instead of -copt/-ldopt used for bigloo |
83 |
if [[ -n ${CFLAGS} ]] ; then |
84 |
for x in ${CFLAGS}; do |
85 |
pcccflags="${pcccflags} --bopt -copt --bopt ${x}" |
86 |
pccpropercflags="${pccpropercflags} --copt ${x}" |
87 |
done |
88 |
sed -i -e "s:@@CFLAGS@@:${pcccflags}:" runtime/php-ext/php-extensions.mk || die "sed failed" |
89 |
sed -i -e "s:@@PCCCFLAGS@@:${pccpropercflags}:" runtime/php-ext/php-extensions.mk || die "sed failed" |
90 |
else |
91 |
sed -i -e "s:@@PCCCFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed" |
92 |
sed -i -e "s:@@PCCCFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed" |
93 |
fi |
94 |
if [[ -n ${LDFLAGS} ]] ; then |
95 |
for x in ${LDFLAGS}; do |
96 |
pccldflags="${pccldflags} --bopt -ldopt --bopt ${x}" |
97 |
pccproperldflags="${pccproperldflags} --ldopt ${x}" |
98 |
done |
99 |
sed -i -e "s:@@LDFLAGS@@:${pccldflags}:" runtime/php-ext/php-extensions.mk || die "sed failed" |
100 |
sed -i -e "s:@@PCCLDFLAGS@@:${pccproperldflags}:" runtime/php-ext/php-extensions.mk || die "sed failed" |
101 |
else |
102 |
sed -i -e "s:@@LDFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed" |
103 |
sed -i -e "s:@@PCCLDFLAGS@@::" runtime/php-ext/php-extensions.mk || die "sed failed" |
104 |
fi |
105 |
|
106 |
eautoreconf |
107 |
} |
108 |
|
32 |
src_configure() { |
109 |
src_configure() { |
33 |
econf $(use_with pcre) \ |
110 |
econf $(use_with pcre) \ |
34 |
$(use_with fastcgi fcgi) \ |
111 |
$(use_with fastcgi fcgi) \ |