Added pecl-apcu-5.1.21.

This commit is contained in:
László Valkó 2023-09-17 20:45:47 +02:00
parent 1660b1793f
commit 6e1ab8603f
3 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,3 @@
DIST apcu-5.1.21.tgz 92516 BLAKE2B 32d73b89bde9ef4eb01c9ad766930e87300b86776c95929607a8aaefba5043e3a7947d064416ac083ff38876fdb41bb03dab1552ac000082e54f809269b4c925 SHA512 a6ffe8349760d27cde0d86017a59a68e9639bf385e606622d807094f4e5fb305bb25b9ce00077d0856f4d223d44329f7a6314c229b62c78d8e2b085593c92bb3
EBUILD pecl-apcu-5.1.21.ebuild 1134 BLAKE2B 5e48fec24abc6f01a54b6be6338e980e9fa84540e31fc2e9920b66e0687a2b0480fbd207a713d0cb3cb1159f36cd10bf577558980ab41db2a98e82365f1bf0dc SHA512 8f8b0d0b25070527bc642a0e86c79faa56ba068f3dea18d5666a5e4aa823c051b1e1dab3bc8b946356b038678878aac8e73b474942a9e206d4ccee9a1645c609
MISC metadata.xml 541 BLAKE2B 533f563e606b35d23c766aa177ea80b56b17ff352e907f2aed65c82be8bb6b01bcb61d69c6be6560b8e975ac279cf3a00ba5976d4a50c0f3ae68677ae7557cd8 SHA512 5dde6ecb39edb11fc4222cf869449f43fe3923623cea2a8ee4d4a4b8d7bf11bcc6d40f135cb5dc4cc81b161ed50489230bba443274c914d0015046ea44c868d8

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>php-bugs@gentoo.org</email>
<name>PHP</name>
</maintainer>
<use>
<flag name="lock-semaphore">Enable semaphore locks instead of fcntl</flag>
<flag name="lock-pthreadmutex">Enable pthread mutex locking</flag>
<flag name="lock-pthreadrw">Enable pthread read/write locking</flag>
<flag name="lock-spinlock">Enable spin locks (EXPERIMENTAL)</flag>
</use>
</pkgmetadata>

View file

@ -0,0 +1,54 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PHP_EXT_NAME="apcu"
PHP_EXT_INI="yes"
PHP_EXT_ZENDEXT="no"
DOCS=( NOTICE README.md TECHNOTES.txt )
USE_PHP="php7-4 php8-0 php8-1"
inherit php-ext-pecl-r3
KEYWORDS="amd64 ~arm arm64 x86"
DESCRIPTION="Stripped down version of APC supporting only user cache"
LICENSE="PHP-3.01"
SLOT="7"
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 )"
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 was"
elog "installed to ${EPREFIX}/usr/share/php7/apcu/."
}