1 |
hoffie 08/05/09 13:10:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ZendOptimizer-3.3.3-r1.ebuild |
5 |
Log: |
6 |
enable loader by default, bug 206290 |
7 |
(Portage version: 2.1.5_rc7) |
8 |
|
9 |
Revision Changes Path |
10 |
1.3 dev-php5/ZendOptimizer/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog?rev=1.3&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog?rev=1.3&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog?r1=1.2&r2=1.3 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog,v |
19 |
retrieving revision 1.2 |
20 |
retrieving revision 1.3 |
21 |
diff -u -r1.2 -r1.3 |
22 |
--- ChangeLog 3 Mar 2008 17:01:27 -0000 1.2 |
23 |
+++ ChangeLog 9 May 2008 13:10:00 -0000 1.3 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for dev-php5/ZendOptimizer |
26 |
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog,v 1.2 2008/03/03 17:01:27 jokey Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog,v 1.3 2008/05/09 13:10:00 hoffie Exp $ |
29 |
+ |
30 |
+*ZendOptimizer-3.3.3-r1 (09 May 2008) |
31 |
+ |
32 |
+ 09 May 2008; Christian Hoffmann <hoffie@g.o> |
33 |
+ +ZendOptimizer-3.3.3-r1.ebuild: |
34 |
+ enable loader by default, bug 206290 |
35 |
|
36 |
*ZendOptimizer-3.3.3 (03 Mar 2008) |
37 |
|
38 |
|
39 |
|
40 |
|
41 |
1.1 dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: ZendOptimizer-3.3.3-r1.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2008 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild,v 1.1 2008/05/09 13:10:00 hoffie Exp $ |
51 |
|
52 |
PHP_EXT_ZENDEXT="yes" |
53 |
PHP_EXT_NAME="ZendOptimizer" |
54 |
PHP_EXT_INI="yes" |
55 |
|
56 |
inherit php-ext-base-r1 |
57 |
|
58 |
KEYWORDS="~amd64 ~x86" |
59 |
|
60 |
SRC_URI="amd64? ( ${PN}-${PV}-linux-glibc23-x86_64.tar.gz ) |
61 |
x86? ( ${PN}-${PV}-linux-glibc23-i386.tar.gz )" |
62 |
|
63 |
MY_ARCH=${ARCH/x86/glibc23-i386} |
64 |
MY_ARCH=${MY_ARCH/amd64/glibc23-x86_64} |
65 |
|
66 |
S="${WORKDIR}/${PN}-${PV}-linux-${MY_ARCH}" |
67 |
|
68 |
DESCRIPTION="The Zend PHP optimizer and loader for encoded scripts." |
69 |
HOMEPAGE="http://www.zend.com/products/zend_optimizer" |
70 |
LICENSE="zend-optimizer" |
71 |
SLOT="0" |
72 |
IUSE="" |
73 |
|
74 |
RESTRICT="mirror fetch strip" |
75 |
|
76 |
DEPEND="" |
77 |
RDEPEND="!dev-php5/xdebug !dev-php5/pecl-apc !dev-php5/eaccelerator" |
78 |
|
79 |
need_php_by_category |
80 |
|
81 |
pkg_nofetch() { |
82 |
einfo |
83 |
einfo "Please download ${PN}-${PV}-linux-${MY_ARCH} from:" |
84 |
einfo "${HOMEPAGE}" |
85 |
einfo "and put it into ${DISTDIR}." |
86 |
einfo "Please note that you need a valid Zend Account" |
87 |
einfo "(free) to download the Zend Optimizer!" |
88 |
einfo |
89 |
} |
90 |
|
91 |
pkg_setup() { |
92 |
php_binary_extension |
93 |
QA_TEXTRELS="${EXT_DIR/\//}/${PHP_EXT_NAME}.so" |
94 |
QA_EXECSTACK="${EXT_DIR/\//}/${PHP_EXT_NAME}.so" |
95 |
} |
96 |
|
97 |
src_install() { |
98 |
php-ext-base-r1_src_install |
99 |
|
100 |
if has_version =dev-lang/php-5.2* ; then |
101 |
ZENDOPT_VERSION_DIR="5_2_x_comp" |
102 |
else |
103 |
die "Unable to find an installed dev-lang/php-5* package." |
104 |
fi |
105 |
|
106 |
# Detect if we use ZTS and change the file path accordingly |
107 |
if has_zts ; then |
108 |
ZENDOPT_SO_FILE="data/${ZENDOPT_VERSION_DIR}/TS/${PHP_EXT_NAME}.so" |
109 |
else |
110 |
ZENDOPT_SO_FILE="data/${ZENDOPT_VERSION_DIR}/${PHP_EXT_NAME}.so" |
111 |
fi |
112 |
|
113 |
# Install the binary |
114 |
insinto ${EXT_DIR} |
115 |
doins ${ZENDOPT_SO_FILE} |
116 |
|
117 |
# Add the correct settings to the extension ini files |
118 |
php-ext-base-r1_addtoinifiles "zend_optimizer.optimization_level" "15" |
119 |
php-ext-base-r1_addtoinifiles "zend_optimizer.enable_loader" "1" |
120 |
php-ext-base-r1_addtoinifiles "zend_optimizer.disable_licensing" "0" |
121 |
|
122 |
dodoc-php README-${PN} data/doc/Zend_Optimizer_User_Guide.pdf |
123 |
} |
124 |
|
125 |
pkg_postinst() { |
126 |
has_php |
127 |
|
128 |
# You only need to restart apache2 if you're using mod_php |
129 |
if built_with_use =${PHP_PKG} apache2 ; then |
130 |
elog |
131 |
elog "You need to restart apache2 to activate the ${PN}." |
132 |
elog |
133 |
fi |
134 |
} |
135 |
|
136 |
|
137 |
|
138 |
-- |
139 |
gentoo-commits@l.g.o mailing list |