sys-boot/vboot-utils: handle USE=static & static-libs interaction #553994
authorMike Frysinger <vapier@gentoo.org>
Fri, 14 Aug 2015 03:40:16 +0000 (23:40 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 14 Aug 2015 03:40:16 +0000 (23:40 -0400)
sys-boot/vboot-utils/vboot-utils-42_p20150219.ebuild

index 4f6f3f5c5b7421106a5028a5aa6861a50ee287cf..de2fbd230776ffb800417779b016250f411606be 100644 (file)
@@ -20,13 +20,15 @@ SLOT="0"
 KEYWORDS="~amd64 ~arm ~arm64 ~mips ~x86"
 IUSE="minimal static"
 
-RDEPEND="dev-libs/openssl:0=
-       sys-apps/util-linux:=
+LIB_DEPEND="dev-libs/openssl:0=[static-libs(+)]
+       sys-apps/util-linux:=[static-libs(+)]"
+RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
        !minimal? (
                app-arch/xz-utils:=
                dev-libs/libyaml:=
        )"
 DEPEND="${RDEPEND}
+       static? ( ${LIB_DEPEND} )
        app-crypt/trousers"
 
 S=${WORKDIR}