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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C29E8138334 for ; Tue, 1 Oct 2019 19:05:20 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0DA4EE0949; Tue, 1 Oct 2019 19:05:20 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8AA4E0949 for ; Tue, 1 Oct 2019 19:05:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3F84434B73D for ; Tue, 1 Oct 2019 19:05:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BA3BE804 for ; Tue, 1 Oct 2019 19:05:16 +0000 (UTC) From: "Brian Evans" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Brian Evans" Message-ID: <1569956707.41d563f15c78b07562bdf0e329085b52b6b72d60.grknight@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/pecl-apcu-5.1.17-r1.ebuild X-VCS-Directories: dev-php/pecl-apcu/ X-VCS-Committer: grknight X-VCS-Committer-Name: Brian Evans X-VCS-Revision: 41d563f15c78b07562bdf0e329085b52b6b72d60 X-VCS-Branch: master Date: Tue, 1 Oct 2019 19:05:16 +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: 085cdc15-20f5-4650-bf29-46f6129676a1 X-Archives-Hash: f95fbcaa878cda80510bfaf3b5b36c7f commit: 41d563f15c78b07562bdf0e329085b52b6b72d60 Author: Brian Evans gentoo org> AuthorDate: Tue Oct 1 19:03:16 2019 +0000 Commit: Brian Evans gentoo org> CommitDate: Tue Oct 1 19:05:07 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41d563f1 dev-php/pecl-apcu: Revbump for 5.1.17-r1 Add PHP 7.4, drop 5.6 and 7.0 Fix bogus test failures in 7.4 Fix bad autoconf usage from upstream Package-Manager: Portage-2.3.76, Repoman-2.3.17 Signed-off-by: Brian Evans gentoo.org> dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild | 67 ++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild b/dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild new file mode 100644 index 00000000000..19f8e009175 --- /dev/null +++ b/dev-php/pecl-apcu/pecl-apcu-5.1.17-r1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 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-1 php7-2 php7-3 php7-4" + +inherit php-ext-pecl-r3 + +KEYWORDS="~amd64 ~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_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 was" + elog "installed to ${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." +}