From: Luca Longinotti Date: Tue, 6 Mar 2007 14:24:36 +0000 (+0000) Subject: Add Xcache to PHP4. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9e936dbcfd8858900513fe0d6c7d6756ea19b28f;p=gentoo.git Add Xcache to PHP4. Package-Manager: portage-2.1.2.1 --- diff --git a/dev-php4/xcache/ChangeLog b/dev-php4/xcache/ChangeLog new file mode 100644 index 000000000000..4ef3f2a47ef9 --- /dev/null +++ b/dev-php4/xcache/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-php4/xcache +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php4/xcache/ChangeLog,v 1.1 2007/03/06 14:24:36 chtekk Exp $ + +*xcache-1.2.0 (06 Mar 2007) + + 06 Mar 2007; Luca Longinotti +metadata.xml, + +xcache-1.2.0.ebuild: + Add Xcache to PHP4. + diff --git a/dev-php4/xcache/Manifest b/dev-php4/xcache/Manifest new file mode 100644 index 000000000000..77436c18e7b0 --- /dev/null +++ b/dev-php4/xcache/Manifest @@ -0,0 +1,16 @@ +DIST xcache-1.2.0.tar.bz2 79153 RMD160 1d77af20e117e7bebc939448500e7c7703028178 SHA1 f7f2f4082c41545909793d8e86918e2845cf82f2 SHA256 808d3a99ad584a52590504d26f272cd7235da3acb66bc67ed4e8387d1ab4ff02 +EBUILD xcache-1.2.0.ebuild 2377 RMD160 47fe9c025dceb53c624dffb9e2736dcaf57d9558 SHA1 db1386fdc008fd64bca7ae3464a123f58611e374 SHA256 a3c4f6dc63efb1f6661bddb22f7b852246705b14bc0a487b0b4aeb07f412526d +MD5 ecace65cccab959c03a24b5ae1e49e03 xcache-1.2.0.ebuild 2377 +RMD160 47fe9c025dceb53c624dffb9e2736dcaf57d9558 xcache-1.2.0.ebuild 2377 +SHA256 a3c4f6dc63efb1f6661bddb22f7b852246705b14bc0a487b0b4aeb07f412526d xcache-1.2.0.ebuild 2377 +MISC ChangeLog 345 RMD160 6a754ab7ee4e357778a6b3c5139e1315e8afdf15 SHA1 c22a58c54c0c7ad0e5fa76fa5595ddf35e7b5dea SHA256 e4fe68f8e2aabaee4258bfd0e5feb61d3f1c465b179b9221b490df7e73d19cfb +MD5 dd34d20b7f4dd9902f1ddbaf7e1c7aca ChangeLog 345 +RMD160 6a754ab7ee4e357778a6b3c5139e1315e8afdf15 ChangeLog 345 +SHA256 e4fe68f8e2aabaee4258bfd0e5feb61d3f1c465b179b9221b490df7e73d19cfb ChangeLog 345 +MISC metadata.xml 352 RMD160 ff3f21c39b31a05abfd966604029a9a061bf0242 SHA1 3e4e27ceadfa1eaca7ef463ceecda1f1039ff7e3 SHA256 b1a80a2c4138ef0ed1a66ce04aa5e1e89961bd5500babefe63f850099a6cd9b5 +MD5 900d0c809069637069e9839d3b15e6df metadata.xml 352 +RMD160 ff3f21c39b31a05abfd966604029a9a061bf0242 metadata.xml 352 +SHA256 b1a80a2c4138ef0ed1a66ce04aa5e1e89961bd5500babefe63f850099a6cd9b5 metadata.xml 352 +MD5 6a5890ac030be8fadd4c8942daf29bb1 files/digest-xcache-1.2.0 238 +RMD160 da5d7354390c4b03b798ab49254b01b6146a9304 files/digest-xcache-1.2.0 238 +SHA256 d4dc06e38dd654a82ad831acfce3e440d828eb2164e57c50eca9fd2f946b8645 files/digest-xcache-1.2.0 238 diff --git a/dev-php4/xcache/files/digest-xcache-1.2.0 b/dev-php4/xcache/files/digest-xcache-1.2.0 new file mode 100644 index 000000000000..247ce82fa03c --- /dev/null +++ b/dev-php4/xcache/files/digest-xcache-1.2.0 @@ -0,0 +1,3 @@ +MD5 ffeaa9547037e098d9b041eb9741b51e xcache-1.2.0.tar.bz2 79153 +RMD160 1d77af20e117e7bebc939448500e7c7703028178 xcache-1.2.0.tar.bz2 79153 +SHA256 808d3a99ad584a52590504d26f272cd7235da3acb66bc67ed4e8387d1ab4ff02 xcache-1.2.0.tar.bz2 79153 diff --git a/dev-php4/xcache/metadata.xml b/dev-php4/xcache/metadata.xml new file mode 100644 index 000000000000..13e5bd886464 --- /dev/null +++ b/dev-php4/xcache/metadata.xml @@ -0,0 +1,13 @@ + + + + php + + jokey@gentoo.org + Markus Ullmann + + + christian@hoffie.info + Christian Hoffmann + + diff --git a/dev-php4/xcache/xcache-1.2.0.ebuild b/dev-php4/xcache/xcache-1.2.0.ebuild new file mode 100644 index 000000000000..8f4fe6d7d59e --- /dev/null +++ b/dev-php4/xcache/xcache-1.2.0.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-php4/xcache/xcache-1.2.0.ebuild,v 1.1 2007/03/06 14:24:36 chtekk Exp $ + +PHP_EXT_NAME="xcache" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="yes" + +inherit php-ext-source-r1 confutils + +KEYWORDS="~amd64 ~x86" + +DESCRIPTION="Another PHP opcode cache and encoder." +HOMEPAGE="http://trac.lighttpd.net/xcache/" +SRC_URI="http://210.51.190.228/pub/XCache/Releases/${P}.tar.bz2" +LICENSE="BSD" +SLOT="0" +IUSE="" + +DEPEND="!dev-php5/pecl-apc + !dev-php5/eaccelerator" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}" + +need_php_by_category + +pkg_setup() { + has_php + require_php_sapi_from cgi apache apache2 +} + +src_compile() { + has_php + + my_conf="--enable-xcache=shared \ + --enable-xcache-constant \ + --enable-xcache-optimizer \ + --enable-xcache-coverager \ + --enable-xcache-assembler \ + --enable-xcache-encoder \ + --enable-xcache-decoder" + + enable_extension_with_built_with =${PHP_PKG} apache2 apxs2 /usr/sbin/apxs2 "optimisation for apache2" + enable_extension_with_built_with =${PHP_PKG} apache apxs /usr/sbin/apxs "optimisation for apache1" + + php-ext-source-r1_src_compile +} + +src_install() { + php-ext-source-r1_src_install + dodoc-php AUTHORS CHANGELOG INSTALL COPYING + + php-ext-base-r1_addtoinifiles "auto_globals_jit" '"0"' + php-ext-base-r1_addtoinifiles "xcache.cacher" '"1"' + php-ext-base-r1_addtoinifiles "xcache.size" '"10M"' + php-ext-base-r1_addtoinifiles "xcache.count" '"2"' + php-ext-base-r1_addtoinifiles "xcache.slots" '"8k"' + php-ext-base-r1_addtoinifiles "xcache.var_size" '"0"' + php-ext-base-r1_addtoinifiles "xcache.var_count" '"1"' + php-ext-base-r1_addtoinifiles "xcache.readonly_protection" '"0"' + php-ext-base-r1_addtoinifiles "xcache.mmap_path" '"/dev/zero"' + php-ext-base-r1_addtoinifiles "xcache.stat" '"1"' + php-ext-base-r1_addtoinifiles "xcache.optimizer" '"0"' + php-ext-base-r1_addtoinifiles "xcache.coverager" '"0"' + php-ext-base-r1_addtoinifiles "xcache.coveragedump_directory" '""' + + dodir "${PHP_EXT_SHARED_DIR}" + insinto "${PHP_EXT_SHARED_DIR}" + doins Decompiler.class.php + dodir "${PHP_EXT_SHARED_DIR}/admin" + insinto "${PHP_EXT_SHARED_DIR}/admin" + doins admin/* +} + +pkg_postinst() { + elog "Decompiler.class.php and the admin/ directory shipped with this" + elog "release were installed into /usr/share/php4/xcache/." +}