summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Hoffmann <hoffie@gentoo.org>2008-05-09 13:10:00 +0000
committerChristian Hoffmann <hoffie@gentoo.org>2008-05-09 13:10:00 +0000
commit397d534fea52e176f517f0f3ce9791c5ca537403 (patch)
tree200f83142767e4ceb549fe665ee90b4199385646 /dev-php5/ZendOptimizer
parentAdjust locations of /usr/share files, docs, and config files (diff)
downloadhistorical-397d534fea52e176f517f0f3ce9791c5ca537403.tar.gz
historical-397d534fea52e176f517f0f3ce9791c5ca537403.tar.bz2
historical-397d534fea52e176f517f0f3ce9791c5ca537403.zip
enable loader by default, bug 206290
Package-Manager: portage-2.1.5_rc7
Diffstat (limited to 'dev-php5/ZendOptimizer')
-rw-r--r--dev-php5/ZendOptimizer/ChangeLog8
-rw-r--r--dev-php5/ZendOptimizer/Manifest11
-rw-r--r--dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild87
3 files changed, 100 insertions, 6 deletions
diff --git a/dev-php5/ZendOptimizer/ChangeLog b/dev-php5/ZendOptimizer/ChangeLog
index 051d7972eec3..cc6eacbb3c69 100644
--- a/dev-php5/ZendOptimizer/ChangeLog
+++ b/dev-php5/ZendOptimizer/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-php5/ZendOptimizer
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog,v 1.2 2008/03/03 17:01:27 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php5/ZendOptimizer/ChangeLog,v 1.3 2008/05/09 13:10:00 hoffie Exp $
+
+*ZendOptimizer-3.3.3-r1 (09 May 2008)
+
+ 09 May 2008; Christian Hoffmann <hoffie@gentoo.org>
+ +ZendOptimizer-3.3.3-r1.ebuild:
+ enable loader by default, bug 206290
*ZendOptimizer-3.3.3 (03 Mar 2008)
diff --git a/dev-php5/ZendOptimizer/Manifest b/dev-php5/ZendOptimizer/Manifest
index 3c003fe9eac7..9455bb8719a3 100644
--- a/dev-php5/ZendOptimizer/Manifest
+++ b/dev-php5/ZendOptimizer/Manifest
@@ -6,13 +6,14 @@ DIST ZendOptimizer-3.3.0a-linux-glibc23-x86_64.tar.gz 9031963 RMD160 61678934701
DIST ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz 10208541 RMD160 af08e1cda134ed4cbb3b6fd6d3932bfbe109a260 SHA1 8a1eb17122a0b5a91ed4e08ee9fc76985c4511aa SHA256 ba26dc5f38ad4a7ea2146a6e443c7c35f275298bd737d4c8f8c5892dbaa7731d
DIST ZendOptimizer-3.3.3-linux-glibc23-x86_64.tar.gz 7356915 RMD160 d20c9e287e83a5ee146de216c7afbf0daaa98bbb SHA1 003ab6366d69ffc1d81c11c849ebb0e762631f4e SHA256 c2688659e13bdf094162f937a58a13d8faadd53e9eaab618d2a69ef902ac2ff2
EBUILD ZendOptimizer-3.3.0a.ebuild 2446 RMD160 6feaeeed401e642d63dd3758cc5fee0c0106c8a7 SHA1 ea3cfe58887e33d5a7f917da8dc2f3036b40d85e SHA256 3ac9f8822cfdb1e68c55c6beb4b2977367a7339f2d6f1362901c29862bff8692
+EBUILD ZendOptimizer-3.3.3-r1.ebuild 2315 RMD160 e97c0c4c099e8449f871e5db79f678bb10de1d26 SHA1 b81a4ad1057f54c3f7bd324bb93b72635ffa56d4 SHA256 b7e7b634a6de65eee8bce97bacc99d6d1e809754229eb58ee41993bcd3f36f9b
EBUILD ZendOptimizer-3.3.3.ebuild 2311 RMD160 5efc5e7bd5a84583cd49339fd3ca069c349b5663 SHA1 7f4336c83480bbdd4383d9f811363546214da58a SHA256 8e03130e894cd6bb8b09efd45915881649a526172cb9a19488ed245c6f2ba618
-MISC ChangeLog 861 RMD160 684fe37787b87fd6690bd286a7dddbc30b8221e1 SHA1 67ae4c4fe61fb18b2bd9771c0b55543ee5b5dfd4 SHA256 e73b8ae6f88a6bf29b2c324e9f2eb935eaced7f227b82968dafd1f8463ce0475
+MISC ChangeLog 1029 RMD160 f903dfd28d59bb35081dcfe366b5a4b2829e4ec6 SHA1 331779fe2f2a959a930252fc936fdbcee3d4fe44 SHA256 46507a9c12a3460aac1e05f8194e1bb0324dd3f9a2e22eec714b28785d7d59a4
MISC metadata.xml 157 RMD160 a98db3a086fae3c09a903dadbc05f60443ec4b1a SHA1 ddaa23cc35eb917bf8962b652442bebb1ce0f440 SHA256 54f8878ca0228e380abbaa4b529806b5533a6b9b51b3b16c0909e906586a91a1
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.7 (GNU/Linux)
+Version: GnuPG v2.0.9 (GNU/Linux)
-iD8DBQFHzC7tz974XjDVpbkRAqsSAKDRLxUujdWhPaHlFzQuOTOum4DGhQCg0RtM
-6xm07NCuiuwLvdkhJjE0uNE=
-=LD6h
+iEYEARECAAYFAkgkTS4ACgkQV6E0EIywUuW3yACfTOZAtOp/9HHAYssVzr5NW9a7
+NjUAoMRjfirSWKEyHJrjtHo22cl8KUvh
+=Jspd
-----END PGP SIGNATURE-----
diff --git a/dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild b/dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild
new file mode 100644
index 000000000000..76c671d50720
--- /dev/null
+++ b/dev-php5/ZendOptimizer/ZendOptimizer-3.3.3-r1.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $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 $
+
+PHP_EXT_ZENDEXT="yes"
+PHP_EXT_NAME="ZendOptimizer"
+PHP_EXT_INI="yes"
+
+inherit php-ext-base-r1
+
+KEYWORDS="~amd64 ~x86"
+
+SRC_URI="amd64? ( ${PN}-${PV}-linux-glibc23-x86_64.tar.gz )
+ x86? ( ${PN}-${PV}-linux-glibc23-i386.tar.gz )"
+
+MY_ARCH=${ARCH/x86/glibc23-i386}
+MY_ARCH=${MY_ARCH/amd64/glibc23-x86_64}
+
+S="${WORKDIR}/${PN}-${PV}-linux-${MY_ARCH}"
+
+DESCRIPTION="The Zend PHP optimizer and loader for encoded scripts."
+HOMEPAGE="http://www.zend.com/products/zend_optimizer"
+LICENSE="zend-optimizer"
+SLOT="0"
+IUSE=""
+
+RESTRICT="mirror fetch strip"
+
+DEPEND=""
+RDEPEND="!dev-php5/xdebug !dev-php5/pecl-apc !dev-php5/eaccelerator"
+
+need_php_by_category
+
+pkg_nofetch() {
+ einfo
+ einfo "Please download ${PN}-${PV}-linux-${MY_ARCH} from:"
+ einfo "${HOMEPAGE}"
+ einfo "and put it into ${DISTDIR}."
+ einfo "Please note that you need a valid Zend Account"
+ einfo "(free) to download the Zend Optimizer!"
+ einfo
+}
+
+pkg_setup() {
+ php_binary_extension
+ QA_TEXTRELS="${EXT_DIR/\//}/${PHP_EXT_NAME}.so"
+ QA_EXECSTACK="${EXT_DIR/\//}/${PHP_EXT_NAME}.so"
+}
+
+src_install() {
+ php-ext-base-r1_src_install
+
+ if has_version =dev-lang/php-5.2* ; then
+ ZENDOPT_VERSION_DIR="5_2_x_comp"
+ else
+ die "Unable to find an installed dev-lang/php-5* package."
+ fi
+
+ # Detect if we use ZTS and change the file path accordingly
+ if has_zts ; then
+ ZENDOPT_SO_FILE="data/${ZENDOPT_VERSION_DIR}/TS/${PHP_EXT_NAME}.so"
+ else
+ ZENDOPT_SO_FILE="data/${ZENDOPT_VERSION_DIR}/${PHP_EXT_NAME}.so"
+ fi
+
+ # Install the binary
+ insinto ${EXT_DIR}
+ doins ${ZENDOPT_SO_FILE}
+
+ # Add the correct settings to the extension ini files
+ php-ext-base-r1_addtoinifiles "zend_optimizer.optimization_level" "15"
+ php-ext-base-r1_addtoinifiles "zend_optimizer.enable_loader" "1"
+ php-ext-base-r1_addtoinifiles "zend_optimizer.disable_licensing" "0"
+
+ dodoc-php README-${PN} data/doc/Zend_Optimizer_User_Guide.pdf
+}
+
+pkg_postinst() {
+ has_php
+
+ # You only need to restart apache2 if you're using mod_php
+ if built_with_use =${PHP_PKG} apache2 ; then
+ elog
+ elog "You need to restart apache2 to activate the ${PN}."
+ elog
+ fi
+}