net-libs/miniupnpc: Improve usex use
authorMichał Górny <mgorny@gentoo.org>
Fri, 16 Oct 2015 11:57:52 +0000 (13:57 +0200)
committerMichał Górny <mgorny@gentoo.org>
Fri, 16 Oct 2015 11:57:52 +0000 (13:57 +0200)
Package-Manager: portage-2.2.23

net-libs/miniupnpc/miniupnpc-1.9.20151008.ebuild

index 7cc7e66c31c9740d570b005a402ff5d5ea18a794..5377731776a7a9e18a0ab8984b82c85b7dfc6f24 100644 (file)
@@ -40,11 +40,11 @@ src_prepare() {
 
 src_compile() {
        tc-export CC AR
-       emake upnpc-shared $(use static-libs && echo upnpc-static)
+       emake upnpc-shared $(usex static-libs upnpc-static '')
 }
 
 src_test() {
-       emake -j1 HAVE_IPV6=$(usex ipv6 yes no) check
+       emake -j1 HAVE_IPV6=$(usex ipv6) check
 }
 
 src_install() {