dev-cpp/commoncpp2: Pin subslots and remove REQUIRED_USE
authorDavid Seifert <soap@gentoo.org>
Fri, 18 Nov 2016 08:15:59 +0000 (09:15 +0100)
committerDavid Seifert <soap@gentoo.org>
Fri, 18 Nov 2016 08:16:23 +0000 (09:16 +0100)
Package-Manager: portage-2.3.2

dev-cpp/commoncpp2/commoncpp2-1.8.1-r2.ebuild

index 4cf63531e5803cf00c7eeb8b7b316dc1211d1988..7fbd5cc198e04431fa5ecc12964ebfe4898124a5 100644 (file)
@@ -13,14 +13,18 @@ LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
 IUSE="debug doc examples ipv6 gnutls ssl static-libs"
-REQUIRED_USE="gnutls? ( ssl )"
 
-RDEPEND="ssl? ( gnutls? ( dev-libs/libgcrypt:0
-                       net-libs/gnutls )
-               !gnutls? ( dev-libs/openssl:0 ) )
-       sys-libs/zlib"
-DEPEND="doc? ( >=app-doc/doxygen-1.3.6 )
-       ${RDEPEND}"
+RDEPEND="
+       sys-libs/zlib
+       ssl? (
+               gnutls? (
+                       dev-libs/libgcrypt:0=
+                       net-libs/gnutls:=
+               )
+               !gnutls? ( dev-libs/openssl:0= )
+       )"
+DEPEND="${RDEPEND}
+       doc? ( >=app-doc/doxygen-1.3.6 )"
 
 PATCHES=(
        "${FILESDIR}/1.8.1-configure_detect_netfilter.patch"
@@ -38,19 +42,14 @@ src_prepare() {
 }
 
 src_configure() {
-       local myconf
-       if use gnutls; then
-               myconf+="--with-gnutls"
-       else
-               use ssl && myconf+="--with-openssl"
-       fi
+       use ssl && local myconf=( $(usex gnutls '--with-gnutls' '--with-openssl') )
 
        econf \
                $(use_enable debug) \
                $(use_with ipv6) \
                $(use_enable static-libs static) \
                $(use_with doc doxygen) \
-               ${myconf}
+               "${myconf[@]}"
 }
 
 src_install () {