From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 34EC6158020 for ; Wed, 26 Oct 2022 19:56:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B0D9EE09E7; Wed, 26 Oct 2022 19:56:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9A4C7E09E4 for ; Wed, 26 Oct 2022 19:56:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6501B340CC7 for ; Wed, 26 Oct 2022 19:56:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E5E626E8 for ; Wed, 26 Oct 2022 19:56:51 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1666813954.a8b0c15178065b78b2b1592eeb67b85b7cc986d6.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-php/pecl-apcu/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-php/pecl-apcu/Manifest dev-php/pecl-apcu/pecl-apcu-5.1.22.ebuild X-VCS-Directories: dev-php/pecl-apcu/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: a8b0c15178065b78b2b1592eeb67b85b7cc986d6 X-VCS-Branch: master Date: Wed, 26 Oct 2022 19:56:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e58a8104-d40e-4f03-b276-a0ad821d97ef X-Archives-Hash: ba61920f5dc34d98a48d5c741cd04e9e commit: a8b0c15178065b78b2b1592eeb67b85b7cc986d6 Author: Conrad Kostecki gentoo org> AuthorDate: Sun Oct 23 21:10:55 2022 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Wed Oct 26 19:52:34 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8b0c151 dev-php/pecl-apcu: add 5.1.22, adding php8-2 Also adjusted ebuild to match skel.ebuild. Signed-off-by: Conrad Kostecki gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/27922 Signed-off-by: Conrad Kostecki gentoo.org> dev-php/pecl-apcu/Manifest | 1 + dev-php/pecl-apcu/pecl-apcu-5.1.22.ebuild | 62 +++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/dev-php/pecl-apcu/Manifest b/dev-php/pecl-apcu/Manifest index ae62b97debbb..67c21f7a3c8b 100644 --- a/dev-php/pecl-apcu/Manifest +++ b/dev-php/pecl-apcu/Manifest @@ -1 +1,2 @@ DIST apcu-5.1.21.tgz 92516 BLAKE2B 32d73b89bde9ef4eb01c9ad766930e87300b86776c95929607a8aaefba5043e3a7947d064416ac083ff38876fdb41bb03dab1552ac000082e54f809269b4c925 SHA512 a6ffe8349760d27cde0d86017a59a68e9639bf385e606622d807094f4e5fb305bb25b9ce00077d0856f4d223d44329f7a6314c229b62c78d8e2b085593c92bb3 +DIST apcu-5.1.22.tgz 93926 BLAKE2B abc3b27c4224da14b6438df9243f6b7b8245102f7eee0208daf1317bead5463d8f454e33536b8c949a2825140487faf9bb79745180a26e1f0015494e0986acb9 SHA512 8f2f4292679bc359ea680ecaf397d69de32bf67d57d719a4839a026ab1b96d5ec4725e92c5c0d1972a117a7cd3d3c456a1f4ec03192fda4657e685de60b9e93e diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.22.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.22.ebuild new file mode 100644 index 000000000000..ee48a184ed83 --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.22.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2022 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="php7-4 php8-0 php8-1 php8-2" + +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_prepare() { + php-ext-source-r3_src_prepare + + # Remove broken tests from php 7.4 due to trivial output differences + if use php_targets_php7-4 ; then + php_init_slot_env "php7.4" + rm "${PHP_EXT_S}"/tests/apc_entry_00{2,3}.phpt || die + fi +} + +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/." +}