dev-php/pecl-apcu: Fix USE naming to not include an underscore
authorBrian Evans <grknight@gentoo.org>
Tue, 1 Oct 2019 18:15:05 +0000 (14:15 -0400)
committerBrian Evans <grknight@gentoo.org>
Tue, 1 Oct 2019 19:05:07 +0000 (15:05 -0400)
Closes: https://bugs.gentoo.org/695080
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Brian Evans <grknight@gentoo.org>
dev-php/pecl-apcu/metadata.xml
dev-php/pecl-apcu/pecl-apcu-4.0.11.ebuild
dev-php/pecl-apcu/pecl-apcu-5.1.12.ebuild
dev-php/pecl-apcu/pecl-apcu-5.1.17.ebuild

index 4d7374447c6f1b7a955327b5ccd281804b70d469..6344b62d774f97278525c1da5f39b6d646350a77 100644 (file)
@@ -6,9 +6,9 @@
                <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>
+               <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>
index f755261e9186c1667938d0a8dae12ab6ce6db83c..c808e24e78711018ad13cf70e1d25592f068637a 100644 (file)
@@ -32,10 +32,10 @@ LOCKS="pthreadmutex pthreadrw spinlock semaphore"
 
 LUSE=""
 for l in ${LOCKS}; do
-       LUSE+="lock_${l} "
+       LUSE+="lock-${l} "
 done
 
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}"
+IUSE+=" ${LUSE/lock-pthreadrw/+lock-pthreadrw}"
 
 REQUIRED_USE="^^ ( $LUSE )"
 
@@ -52,8 +52,8 @@ src_configure() {
                local PHP_EXT_ECONF_ARGS=(
                        --enable-apcu
                        $(use_enable mmap apcu-mmap)
-                       $(use_enable lock_pthreadrw apcu-rwlocks)
-                       $(use_enable lock_spinlock apcu-spinlocks)
+                       $(use_enable lock-pthreadrw apcu-rwlocks)
+                       $(use_enable lock-spinlock apcu-spinlocks)
                )
 
                php-ext-source-r3_src_configure
index 675490a1e856e2ab4c32b72703a3e7e1f082062b..da6a7f85c523ca4065093da5b0bb238da33fa08c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -31,10 +31,10 @@ LOCKS="pthreadmutex pthreadrw spinlock semaphore"
 
 LUSE=""
 for l in ${LOCKS}; do
-       LUSE+="lock_${l} "
+       LUSE+="lock-${l} "
 done
 
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}"
+IUSE+=" ${LUSE/lock-pthreadrw/+lock-pthreadrw}"
 
 REQUIRED_USE="^^ ( $LUSE )"
 
@@ -51,8 +51,8 @@ src_configure() {
                local PHP_EXT_ECONF_ARGS=(
                        --enable-apcu
                        $(use_enable mmap apcu-mmap)
-                       $(use_enable lock_pthreadrw apcu-rwlocks)
-                       $(use_enable lock_spinlock apcu-spinlocks)
+                       $(use_enable lock-pthreadrw apcu-rwlocks)
+                       $(use_enable lock-spinlock apcu-spinlocks)
                )
 
                php-ext-source-r3_src_configure
index 39a64219bf7e6492efe472b28c5a1be82cfc87e1..f204ffcad33ecdf1b6216c563355f0420c3bc943 100644 (file)
@@ -31,10 +31,10 @@ LOCKS="pthreadmutex pthreadrw spinlock semaphore"
 
 LUSE=""
 for l in ${LOCKS}; do
-       LUSE+="lock_${l} "
+       LUSE+="lock-${l} "
 done
 
-IUSE+=" ${LUSE/lock_pthreadrw/+lock_pthreadrw}"
+IUSE+=" ${LUSE/lock-pthreadrw/+lock-pthreadrw}"
 
 REQUIRED_USE="^^ ( $LUSE )"
 
@@ -51,8 +51,8 @@ src_configure() {
                local PHP_EXT_ECONF_ARGS=(
                        --enable-apcu
                        $(use_enable mmap apcu-mmap)
-                       $(use_enable lock_pthreadrw apcu-rwlocks)
-                       $(use_enable lock_spinlock apcu-spinlocks)
+                       $(use_enable lock-pthreadrw apcu-rwlocks)
+                       $(use_enable lock-spinlock apcu-spinlocks)
                )
 
                php-ext-source-r3_src_configure