From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-php/pecl-apcu/Manifest | 7 +++ dev-php/pecl-apcu/metadata.xml | 14 ++++++ dev-php/pecl-apcu/pecl-apcu-4.0.11.ebuild | 76 +++++++++++++++++++++++++++++ dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild | 80 +++++++++++++++++++++++++++++++ 4 files changed, 177 insertions(+) create mode 100644 dev-php/pecl-apcu/Manifest create mode 100644 dev-php/pecl-apcu/metadata.xml create mode 100644 dev-php/pecl-apcu/pecl-apcu-4.0.11.ebuild create mode 100644 dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild (limited to 'dev-php/pecl-apcu') diff --git a/dev-php/pecl-apcu/Manifest b/dev-php/pecl-apcu/Manifest new file mode 100644 index 000000000000..6ec4ee00a5c0 --- /dev/null +++ b/dev-php/pecl-apcu/Manifest @@ -0,0 +1,7 @@ +DIST apcu-4.0.11.tgz 119535 SHA256 454f302ec13a6047ca4c39e081217ce5a61bbea815aec9c1091fb849e70b4d00 SHA512 e3b97066240e33850419e96f0fd9df0e66ee3b0fa238c418e07ac639d07439e9edfa1696e56a620e33f1ffc0993c57bde585b0c170b22995e7d5c0ae550b7899 WHIRLPOOL b823ebdc574d13bfb43fbbfc2b5fe238ae1a895dc4fa51b12af9d99f3f8d42d4b4b25c305e203c417de2314cc2be360ea18e2c04f01b83c3c131c68c693f429c +DIST apcu-5.1.8.tgz 111260 SHA256 01dfbf0245d8cc0f51ba16467a60b5fad08e30b28df7846e0dd213da1143ecce SHA512 4f377389e713bcae5534c64ea28f72c20ab2176aa758188c4d956c1f2370be49bc33dd2a1db43941fff5344a164aaeebc4e73e6d579f62d17334bcc520171526 WHIRLPOOL f62c95a404dfb8915b12012d29ca2e92753327d0d8f81638e8dc75c7db09f9798899bf5f8a76ab02ef792cc3572d0c7af2d4a5662662ffb517427d0a348c8e5a +EBUILD pecl-apcu-4.0.11.ebuild 1453 SHA256 c46eedbe1a102a19a513347b92004e256df8f9de0f704def8b8a548261b6058d SHA512 b0fb1cdceb8e2c48b459309c6e98a1fb16faa48e1228bc0bfbe5c01cee0b038121ffae8a094cdc030fd1bc94624d4602e6abcb5b99dd6a2109024856446571b1 WHIRLPOOL 3e639dd537ff52d45e36d62d2cb9429bd2eeea56aae027386518d2f9058a9ed3382e000e6756831c67af77adfab03de480ed7c806630c9abd0dae07b99b60886 +EBUILD pecl-apcu-5.1.8.ebuild 1860 SHA256 38fb9d2fc0d0e87db3bce81b8af1b6084da7ebfaaca7bfe6478462e50f0623e7 SHA512 f086a6e970a87a65658064feecbe42b30c3e1bb6c01effb0cd890ced791df3228b8143374957e94c970899a7d7fffaf3abe818816de8f29b4398fbc23002be9b WHIRLPOOL d8c09d43733314cb30b928920bdfedf0c2b8e588dd4aae10483bde1ab0297c8ddf5a4e2cb18d1020d76de5a5a084a411114498a219ca1748457b130729c0f18a +MISC ChangeLog 4248 SHA256 4726a5def2508cd8a035218cdb5297f812dd56b4ed7e28ca405c056c03c68985 SHA512 159feb63ab8a688f52dd8524137988a249d067bab1a7bed1bd1c012b24081dcec6c7e2bb3093579ecc2383775a74beabeb07c2d807acda47c37773064cb911e7 WHIRLPOOL 7d7800ffa774cefae66035f7f3b0af9d3e571952099187e34099cd337ec3779a0f58aa35e6a1a39ae82861a4882c9560ab2f2ed6221fe8076b8238bc36039ea5 +MISC ChangeLog-2015 2094 SHA256 0fe2b058ddb85971339cb04c5687d06ab84ec80a369c4f0b7618fe3a89711b5e SHA512 a146a7eeb09101c3b125c3f21fae48d27949880909e77bea786bcc113d1c8904711ff1e2c2af390742ecf908445a801d7cf1067e422bb58459c3f02587bf230c WHIRLPOOL 0ae436ac2e1cc8b16486c93c6f242bb99b8c8eb88dd34d086850d7a099ea17b63ffb35c625f223b2bfd4de3159bc11206855e53934681ed24e24a560d8fdfe29 +MISC metadata.xml 540 SHA256 c4b95f0fc12e867daf93f7c56e3ef64206a36809e05ed8b29b3c78d1f5f69c6e SHA512 46b3e028a3632c8ebfa89a9e2053bc0bb8893fd0a75ee3f84e1d62daec9be5cadbe1f9fc55bb14931a91cde04ff04c5f7c19b2dcf57551ee08fa3eb64ed88232 WHIRLPOOL 16693ef5003f8fd45df0fe5d5541a2733a35bc997a9eeb714271dc9a49b0699094a025e8d714f0a91b17ae207e2056a12cfd1739c5aeff18e37979b22bc773b3 diff --git a/dev-php/pecl-apcu/metadata.xml b/dev-php/pecl-apcu/metadata.xml new file mode 100644 index 000000000000..4d7374447c6f --- /dev/null +++ b/dev-php/pecl-apcu/metadata.xml @@ -0,0 +1,14 @@ + + + + + php-bugs@gentoo.org + PHP + + + Enable semaphore locks instead of fcntl + Enable pthread mutex locking + Enable pthread read/write locking + Enable spin locks (EXPERIMENTAL) + + diff --git a/dev-php/pecl-apcu/pecl-apcu-4.0.11.ebuild b/dev-php/pecl-apcu/pecl-apcu-4.0.11.ebuild new file mode 100644 index 000000000000..9f7340d3f2ae --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-4.0.11.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PHP_EXT_NAME="apcu" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +DOCS=( NOTICE README.md TECHNOTES.txt TODO ) + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php5-6" + +KEYWORDS="amd64 x86" + +DESCRIPTION="Stripped down version of APC supporting only user cache" +LICENSE="PHP-3.01" +SLOT="0" +IUSE="+mmap" + +DEPEND="" +PDEPEND=" +php_targets_php7-0? ( dev-php/pecl-apcu:7[php_targets_php7-0] ) +php_targets_php7-1? ( dev-php/pecl-apcu:7[php_targets_php7-1] ) +" + +LOCKS="pthreadmutex pthreadrw spinlock semaphore" + +LUSE="" +for l in ${LOCKS}; do + LUSE+="lock_${l} " +done + +IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" + +REQUIRED_USE="^^ ( $LUSE )" + +src_prepare() { + if use php_targets_php5-6 ; then + php-ext-source-r3_src_prepare + else + eapply_user + fi +} + +src_configure() { + if use php_targets_php5-6 ; then + local PHP_EXT_ECONF_ARGS=( + --enable-apcu + $(use_enable mmap apcu-mmap) + $(use_enable lock_pthreadrw apcu-rwlocks) + $(use_enable lock_spinlock apcu-spinlocks) + ) + + php-ext-source-r3_src_configure + fi +} + +src_install() { + if use php_targets_php5-6 ; then + php-ext-pecl-r3_src_install + + insinto "${PHP_EXT_SHARED_DIR}" + doins apc.php + fi +} + +pkg_postinst() { + if use php_targets_php5-6 ; then + elog "The apc.php file shipped with this release of pecl-apcu was" + elog "installed into ${PHP_EXT_SHARED_DIR}." + fi +} diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild new file mode 100644 index 000000000000..a0dd81ab461b --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.8.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PHP_EXT_NAME="apcu" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" +DOCS=( NOTICE README.md TECHNOTES.txt TODO ) + +# Define 5.6 here so we get the USE and REQUIRED_USE from the eclass +# This allows us to depend on the other slot +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +# However, we only really build for 7.x; so redefine it here +USE_PHP="php7-0 php7-1" + +KEYWORDS="amd64 x86" + +DESCRIPTION="Stripped down version of APC supporting only user cache" +LICENSE="PHP-3.01" +SLOT="7" +IUSE="+mmap" + +DEPEND="" +RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-apcu:0[php_targets_php5-6] )" + +LOCKS="pthreadmutex pthreadrw spinlock semaphore" + +LUSE="" +for l in ${LOCKS}; do + LUSE+="lock_${l} " +done + +IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}" + +REQUIRED_USE="^^ ( $LUSE )" + +src_prepare() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-source-r3_src_prepare + else + eapply_user + fi +} + +src_configure() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + local PHP_EXT_ECONF_ARGS=( + --enable-apcu + $(use_enable mmap apcu-mmap) + $(use_enable lock_pthreadrw apcu-rwlocks) + $(use_enable lock_spinlock apcu-spinlocks) + ) + + php-ext-source-r3_src_configure + fi +} + +src_install() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-pecl-r3_src_install + + insinto /usr/share/php7/apcu + doins apc.php + fi +} + +pkg_postinst() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + elog "The apc.php file shipped with this release of pecl-apcu was" + elog "installed into ${EPREFIX}/usr/share/php7/apcu/." + elog + elog "If you depend on the apc_* functions," + elog "please install dev-php/pecl-apcu_bc as this extension no longer" + elog "provides backwards compatibility." + fi +} -- cgit v1.2.3