diff options
author | Matti Bickel <mabi@gentoo.org> | 2010-04-22 08:45:23 +0000 |
---|---|---|
committer | Matti Bickel <mabi@gentoo.org> | 2010-04-22 08:45:23 +0000 |
commit | 0f3abe9e16e4cab083784befbeca2044b6bc84ea (patch) | |
tree | 12e1a0a3c7436b81c4375da1ec8d81176c7f9d8a | |
parent | Force python2 fixing bug #312257 (diff) | |
download | gentoo-2-0f3abe9e16e4cab083784befbeca2044b6bc84ea.tar.gz gentoo-2-0f3abe9e16e4cab083784befbeca2044b6bc84ea.tar.bz2 gentoo-2-0f3abe9e16e4cab083784befbeca2044b6bc84ea.zip |
bump
(Portage version: 2.1.8.3/cvs/Linux i686)
-rw-r--r-- | dev-php5/eaccelerator/ChangeLog | 9 | ||||
-rw-r--r-- | dev-php5/eaccelerator/eaccelerator-0.9.6.ebuild | 100 | ||||
-rw-r--r-- | dev-php5/eaccelerator/metadata.xml | 2 |
3 files changed, 109 insertions, 2 deletions
diff --git a/dev-php5/eaccelerator/ChangeLog b/dev-php5/eaccelerator/ChangeLog index 8cc8350a1a75..e3305ee29837 100644 --- a/dev-php5/eaccelerator/ChangeLog +++ b/dev-php5/eaccelerator/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-php5/eaccelerator -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.22 2009/08/14 11:00:24 a3li Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/ChangeLog,v 1.23 2010/04/22 08:45:23 mabi Exp $ + +*eaccelerator-0.9.6 (22 Apr 2010) + + 22 Apr 2010; <mabi@gentoo.org> +eaccelerator-0.9.6.ebuild: + bump (bug #304289), provided by Ole Markus With *eaccelerator-0.9.5.3-r1 (14 Aug 2009) diff --git a/dev-php5/eaccelerator/eaccelerator-0.9.6.ebuild b/dev-php5/eaccelerator/eaccelerator-0.9.6.ebuild new file mode 100644 index 000000000000..e1a0dcbbc00c --- /dev/null +++ b/dev-php5/eaccelerator/eaccelerator-0.9.6.ebuild @@ -0,0 +1,100 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php5/eaccelerator/eaccelerator-0.9.6.ebuild,v 1.1 2010/04/22 08:45:23 mabi Exp $ + +PHP_EXT_NAME="eaccelerator" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="yes" + +EAPI="2" + +[[ -z "${EACCELERATOR_CACHEDIR}" ]] && EACCELERATOR_CACHEDIR="/var/cache/eaccelerator-php5/" + +inherit php-ext-source-r1 eutils depend.apache + +KEYWORDS="~amd64 ~sparc ~x86" + +DESCRIPTION="A PHP Accelerator & Encoder." +HOMEPAGE="http://www.eaccelerator.net/" +SRC_URI="http://bart.eaccelerator.net/source/${PV}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +IUSE="debug disassembler inode doccommentinclusion" + +DEPEND="!dev-php5/pecl-apc !dev-php5/xcache" +RDEPEND="${DEPEND} + >=dev-lang/php-5.1[zlib,session?] + || ( dev-lang/php[cgi] dev-lang/php[apache2] ) +" + +# Webserver user and group, here for Apache by default +HTTPD_USER="${HTTPD_USER:-apache}" +HTTPD_GROUP="${HTTPD_GROUP:-apache}" + +need_php_by_category +want_apache + +pkg_setup() { + depend.apache_pkg_setup + + has_php + + if ! use apache2 ; then + if [[ ${HTTPD_USER} == "apache" ]] || [[ ${HTTPD_GROUP} == "apache" ]] ; then + eerror "You did not enable apache2 USE flag, so you need to define" + eerror "the user and group that will be used for ${PN} yourself." + eerror + eerror "This should (generally) match the user and group that your webserver uses, e.g.:" + eerror "HTTPD_USER=\"lighttpd\" HTTPD_GROUP=\"lighttpd\" if using www-servers/lighttpd" + eerror + die "Either enable USE=\"apache2\" or re-emerge this with HTTPD_USER and HTTPD_GROUP set" + else + enewgroup ${HTTPD_GROUP} + enewuser ${HTTPD_USER} -1 -1 /var/www ${HTTPD_GROUP} + fi + fi +} + +src_compile() { + has_php + + my_conf="--enable-eaccelerator=shared --with-eaccelerator-userid=`id -u ${HTTPD_USER}`" + + use debug && my_conf="${my_conf} --with-eaccelerator-debug" + use disassembler && my_conf="${my_conf} --with-eaccelerator-disassembler" + ! use inode && my_conf="${my_conf} --without-eaccelerator-use-inode" + use doccommentinclusion && my_conf="${my_conf} --with-eaccelerator-doc-comment-inclusion" + + php-ext-source-r1_src_compile +} + +src_install() { + php-ext-source-r1_src_install + + keepdir "${EACCELERATOR_CACHEDIR}" + fowners ${HTTPD_USER}:${HTTPD_GROUP} "${EACCELERATOR_CACHEDIR}" + fperms 750 "${EACCELERATOR_CACHEDIR}" + + insinto "/usr/share/${PN}-php5/" + doins -r doc/php/ + dodoc-php AUTHORS ChangeLog COPYING NEWS README README.eLoader + + php-ext-base-r1_addtoinifiles "eaccelerator.shm_size" '"28"' + php-ext-base-r1_addtoinifiles "eaccelerator.cache_dir" "\"${EACCELERATOR_CACHEDIR}\"" + php-ext-base-r1_addtoinifiles "eaccelerator.enable" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.optimizer" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.debug" '"0"' + php-ext-base-r1_addtoinifiles ";eaccelerator.log_file" '"/var/log/eaccelerator_log"' + php-ext-base-r1_addtoinifiles "eaccelerator.check_mtime" '"1"' + php-ext-base-r1_addtoinifiles "eaccelerator.filter" '""' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_ttl" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_prune_period" '"0"' + php-ext-base-r1_addtoinifiles "eaccelerator.shm_only" '"0"' + php-ext-base-r1_addtoinifiles ";eaccelerator.allowed_admin_path" '"/path/where/admin/files/shall/be/allowed"' +} + +pkg_postinst() { + elog "Please see the files in ${ROOT}usr/share/${PN}-php5/ for some" + elog "examples and informations on how to use the functions that" + elog "eAccelerator adds to PHP." +} diff --git a/dev-php5/eaccelerator/metadata.xml b/dev-php5/eaccelerator/metadata.xml index 0e76bc4a5134..5ac8970e15d0 100644 --- a/dev-php5/eaccelerator/metadata.xml +++ b/dev-php5/eaccelerator/metadata.xml @@ -6,5 +6,7 @@ <flag name="contentcache">Enable content caching</flag> <flag name="disassembler">Enable the eA disassembler</flag> <flag name="inode">Use inode-based caching</flag> + <flag name="doccommentinclusion">If you want eAccelerator to retain + doc-comments in internal php structures.</flag> </use> </pkgmetadata> |