net-dns/pdns: [QA] Use standard meaning of USE=luajit
authorMichał Górny <mgorny@gentoo.org>
Mon, 26 Feb 2018 22:21:07 +0000 (23:21 +0100)
committerMichał Górny <mgorny@gentoo.org>
Mon, 26 Mar 2018 19:33:10 +0000 (21:33 +0200)
Fix the package to use standard meaning for USE=luajit instead of making
it exclusive with USE=lua.

net-dns/pdns/metadata.xml
net-dns/pdns/pdns-4.0.5.ebuild
net-dns/pdns/pdns-4.1.0.ebuild
net-dns/pdns/pdns-4.1.1.ebuild

index 36c754fdabc715a7276ed4bf124c954afee47fc2..57e0d147b337e3b58f98aabf01f540e9d25d5ab9 100644 (file)
@@ -12,7 +12,6 @@ standards documents. Furthermore, PowerDNS interfaces with almost any database.
 </longdescription>
 <use>
        <flag name="botan">Make it possible to use the <pkg>dev-libs/botan</pkg> library for crypto-related stuff (like DNSSec) which can be significantly faster than PolarSSL.</flag>
-       <flag name="luajit">Enable support for <pkg>dev-lang/luajit</pkg></flag>
        <flag name="mydns">Making it possible to use a MyDNS MySQL database with PowerDNS (not recommended for new deployments).</flag>
        <flag name="opendbx">Use a database supported by <pkg>dev-db/opendbx</pkg> as backend.</flag>
        <flag name="protobuf">Enable support for <pkg>dev-libs/protobuf</pkg>.</flag>
index 90ac1b5b3306282452381d2918ede45ff49eed13..bd6f0e93330f10daa002b615307fb1d666c654a8 100644 (file)
@@ -20,15 +20,17 @@ KEYWORDS="amd64 x86"
 
 IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sqlite systemd tools tinydns test"
 
-REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
+REQUIRED_USE="mydns? ( mysql )"
 
 RDEPEND="
        libressl? ( dev-libs/libressl:= )
        !libressl? ( dev-libs/openssl:= )
        >=dev-libs/boost-1.35:=
        botan? ( dev-libs/botan:2= )
-       lua? ( dev-lang/lua:= )
-       luajit? ( dev-lang/luajit:= )
+       lua? (
+               !luajit? ( dev-lang/lua:= )
+               luajit? ( dev-lang/luajit:= )
+       )
        mysql? ( virtual/mysql )
        postgres? ( dev-db/postgresql:= )
        ldap? ( >=net-nds/openldap-2.0.27-r4 )
@@ -74,8 +76,8 @@ src_configure() {
                $(use_enable test unit-tests) \
                $(use_enable tools) \
                $(use_enable systemd) \
-               $(use_with lua) \
-               $(use_with luajit) \
+               $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \
+                       '--without-lua --without-luajit') \
                $(use_with protobuf) \
                ${myconf}
 }
index 476a969f8a9a74f9b14e041f43844b1381201896..60d5320f505e114d572b4d49eee05f3538398db1 100644 (file)
@@ -20,15 +20,17 @@ KEYWORDS="~amd64 ~x86"
 
 IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
 
-REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
+REQUIRED_USE="mydns? ( mysql )"
 
 RDEPEND="
        libressl? ( dev-libs/libressl:= )
        !libressl? ( dev-libs/openssl:= )
        >=dev-libs/boost-1.35:=
        botan? ( dev-libs/botan:2= )
-       lua? ( dev-lang/lua:= )
-       luajit? ( dev-lang/luajit:= )
+       lua? (
+               !luajit? ( dev-lang/lua:= )
+               luajit? ( dev-lang/luajit:= )
+       )
        mysql? ( virtual/mysql )
        postgres? ( dev-db/postgresql:= )
        ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
@@ -74,8 +76,8 @@ src_configure() {
                $(use_enable tools) \
                $(use_enable systemd) \
                $(use_enable sodium libsodium) \
-               $(use_with lua) \
-               $(use_with luajit) \
+               $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \
+                       '--without-lua --without-luajit') \
                $(use_with protobuf) \
                ${myconf}
 }
index 7ec5508cb26bac3ce1d9fb8f7f68d70a63719aae..1dd30fc1895843c8de1682eb5f66060e60922d96 100644 (file)
@@ -20,15 +20,17 @@ KEYWORDS="~amd64 ~x86"
 
 IUSE="botan debug doc geoip ldap libressl lua luajit mydns mysql opendbx postgres protobuf remote sodium sqlite systemd tools tinydns test"
 
-REQUIRED_USE="mydns? ( mysql ) ?? ( lua luajit )"
+REQUIRED_USE="mydns? ( mysql )"
 
 RDEPEND="
        libressl? ( dev-libs/libressl:= )
        !libressl? ( dev-libs/openssl:= )
        >=dev-libs/boost-1.35:=
        botan? ( dev-libs/botan:2= )
-       lua? ( dev-lang/lua:= )
-       luajit? ( dev-lang/luajit:= )
+       lua? (
+               !luajit? ( dev-lang/lua:= )
+               luajit? ( dev-lang/luajit:= )
+       )
        mysql? ( virtual/mysql )
        postgres? ( dev-db/postgresql:= )
        ldap? ( >=net-nds/openldap-2.0.27-r4 app-crypt/mit-krb5 )
@@ -74,8 +76,8 @@ src_configure() {
                $(use_enable tools) \
                $(use_enable systemd) \
                $(use_enable sodium libsodium) \
-               $(use_with lua) \
-               $(use_with luajit) \
+               $(usex lua "$(use_with !luajit lua) $(use_with luajit)" \
+                       '--without-lua --without-luajit') \
                $(use_with protobuf) \
                ${myconf}
 }