diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2023-12-28 01:46:25 +0100 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2023-12-28 02:28:22 +0100 |
commit | 8eaba566c13121e3fd1d4fccf1ad7a24477c5565 (patch) | |
tree | 2b4eb43bd4cfdbbcde7f8165fe2a63bc605aa2f3 /dev-php/pecl-apcu | |
parent | app-portage/elt-patches: add 20231228 (diff) | |
download | gentoo-8eaba566c13121e3fd1d4fccf1ad7a24477c5565.tar.gz gentoo-8eaba566c13121e3fd1d4fccf1ad7a24477c5565.tar.bz2 gentoo-8eaba566c13121e3fd1d4fccf1ad7a24477c5565.zip |
dev-php/pecl-apcu: add 5.1.23
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'dev-php/pecl-apcu')
-rw-r--r-- | dev-php/pecl-apcu/Manifest | 1 | ||||
-rw-r--r-- | dev-php/pecl-apcu/pecl-apcu-5.1.23.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/dev-php/pecl-apcu/Manifest b/dev-php/pecl-apcu/Manifest index 67c21f7a3c8b..1f341f75ed2f 100644 --- a/dev-php/pecl-apcu/Manifest +++ b/dev-php/pecl-apcu/Manifest @@ -1,2 +1,3 @@ DIST apcu-5.1.21.tgz 92516 BLAKE2B 32d73b89bde9ef4eb01c9ad766930e87300b86776c95929607a8aaefba5043e3a7947d064416ac083ff38876fdb41bb03dab1552ac000082e54f809269b4c925 SHA512 a6ffe8349760d27cde0d86017a59a68e9639bf385e606622d807094f4e5fb305bb25b9ce00077d0856f4d223d44329f7a6314c229b62c78d8e2b085593c92bb3 DIST apcu-5.1.22.tgz 93926 BLAKE2B abc3b27c4224da14b6438df9243f6b7b8245102f7eee0208daf1317bead5463d8f454e33536b8c949a2825140487faf9bb79745180a26e1f0015494e0986acb9 SHA512 8f2f4292679bc359ea680ecaf397d69de32bf67d57d719a4839a026ab1b96d5ec4725e92c5c0d1972a117a7cd3d3c456a1f4ec03192fda4657e685de60b9e93e +DIST apcu-5.1.23.tgz 90897 BLAKE2B 634366b99c993298c8720840d06ff3aed30bfb3f09fd7b63f4736766f4ac1b983f24317f161bf7dd1b3ab79053c905cc9136e8141468174177d2a05b94719590 SHA512 89e9f10f5d8d1a9503132e80140680be2a10d96f957f69b2f77cc1c496d15cc26dfe4c0368ebe46c72c68d1b4a794d3ddc95942b02d3ba5e8c971b09969058d8 diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.23.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.23.ebuild new file mode 100644 index 000000000000..ee87ded1ecb5 --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.23.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PHP_EXT_INI="yes" +PHP_EXT_NAME="apcu" +PHP_EXT_ZENDEXT="no" +USE_PHP="php8-1 php8-2 php8-3" + +inherit php-ext-pecl-r3 + +DESCRIPTION="Stripped down version of APC supporting only user cache" + +LICENSE="PHP-3.01" +SLOT="7" +KEYWORDS="amd64 ~arm ~arm64 ~x86" + +LOCKS="pthreadmutex pthreadrw spinlock semaphore" +LUSE="" +for l in ${LOCKS}; do + LUSE+="lock-${l} " +done +IUSE="+mmap ${LUSE/lock-pthreadrw/+lock-pthreadrw}" +REQUIRED_USE="^^ ( $LUSE )" + +DOCS=( NOTICE README.md TECHNOTES.txt ) + +src_configure() { + local PHP_EXT_ECONF_ARGS=( + --enable-apcu + $(use_enable mmap apcu-mmap) + $(use_enable lock-spinlock apcu-spinlocks) + ) + + # Broken upstream autoconf test disables if present at all + use lock-pthreadrw || PHP_EXT_ECONF_ARGS+=( --disable-apcu-rwlocks ) + + php-ext-source-r3_src_configure +} + +src_install() { + php-ext-pecl-r3_src_install + + insinto /usr/share/php7/apcu + doins apc.php +} + +pkg_postinst() { + elog "The apc.php file shipped with this release of pecl-apcu" + elog "was installed to ${EPREFIX}/usr/share/php7/apcu/." +} |