dev-libs/librdkafka: fix USE=static-libs
authorThomas Deutschmann <whissi@gentoo.org>
Mon, 10 Jun 2019 14:23:07 +0000 (16:23 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Mon, 10 Jun 2019 14:23:28 +0000 (16:23 +0200)
Closes: https://bugs.gentoo.org/687798
Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
dev-libs/librdkafka/librdkafka-1.0.1.ebuild

index 4f3e2e8a5333be58d8710052fbb94285718535af..8a86a2f8c9ab078fb5a8bea54b49717ff996366f 100644 (file)
@@ -24,17 +24,20 @@ SLOT="0/1"
 
 IUSE="lz4 sasl ssl static-libs zstd"
 
-RDEPEND="
-       lz4? ( app-arch/lz4:=[static-libs(-)?] )
-       sasl? ( dev-libs/cyrus-sasl:= )
-       ssl? ( dev-libs/openssl:0= )
-       zstd? ( app-arch/zstd:= )
-       sys-libs/zlib
+LIB_DEPEND="
+       lz4? ( app-arch/lz4:=[static-libs(+)] )
+       sasl? ( dev-libs/cyrus-sasl:=[static-libs(+)] )
+       ssl? ( dev-libs/openssl:0=[static-libs(+)] )
+       zstd? ( app-arch/zstd:=[static-libs(+)] )
+       sys-libs/zlib:=[static-libs(+)]
 "
 
+RDEPEND="!static-libs? ( ${LIB_DEPEND//\[static-libs(+)]} )"
+
 DEPEND="
        ${RDEPEND}
        virtual/pkgconfig
+       static-libs? ( ${LIB_DEPEND} )
 "
 
 PATCHES=( "${FILESDIR}"/${PN}-1.0.0-remove-automagic-on-zstd.patch )