sys-libs/llvm-libunwind: libcxx is only needed for tests (*9999)
authorMichał Górny <mgorny@gentoo.org>
Fri, 9 Feb 2018 10:07:41 +0000 (11:07 +0100)
committerMichał Górny <mgorny@gentoo.org>
Fri, 9 Feb 2018 16:00:04 +0000 (17:00 +0100)
sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild

index 0be3b4e8c29e77a7200c4876faac3831f3c8c4ef..7523ff7bd6f6de882363c7bcf17d9f3063a14d73 100644 (file)
@@ -47,9 +47,11 @@ src_unpack() {
                https://github.com/llvm-mirror/libcxx.git"
        git-r3_fetch
 
-       git-r3_checkout https://llvm.org/git/libcxx.git \
-               "${WORKDIR}"/libcxx '' include utils/libcxx
-       git-r3_checkout
+       if use test; then
+               git-r3_checkout https://llvm.org/git/libcxx.git \
+                       "${WORKDIR}"/libcxx '' include utils/libcxx
+               git-r3_checkout
+       fi
 }
 
 multilib_src_configure() {
index c102267616687ce459fc54998374297a988fb61b..60a321c7d60900db4a27c1c2858989f079535675 100644 (file)
@@ -46,9 +46,11 @@ src_unpack() {
                https://github.com/llvm-mirror/libcxx.git"
        git-r3_fetch
 
-       git-r3_checkout https://llvm.org/git/libcxx.git \
-               "${WORKDIR}"/libcxx '' include utils/libcxx
-       git-r3_checkout
+       if use test; then
+               git-r3_checkout https://llvm.org/git/libcxx.git \
+                       "${WORKDIR}"/libcxx '' include utils/libcxx
+               git-r3_checkout
+       fi
 }
 
 multilib_src_configure() {