sys-libs/llvm-libunwind: fix when test is off (*9999)
authorLeorize <alaviss@users.noreply.github.com>
Mon, 19 Feb 2018 08:36:14 +0000 (15:36 +0700)
committerMichał Górny <mgorny@gentoo.org>
Tue, 20 Feb 2018 16:39:37 +0000 (17:39 +0100)
Also avoid fetching libcxx unless test is used.

Closes: https://github.com/gentoo/gentoo/pull/7227

sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild
sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild

index 7523ff7bd6f6de882363c7bcf17d9f3063a14d73..87f9ee1eb39be5bb5dd27cfb93e034e2c966c68b 100644 (file)
@@ -43,15 +43,17 @@ pkg_setup() {
 
 src_unpack() {
        # we need headers & test utilities
-       git-r3_fetch "https://git.llvm.org/git/libcxx.git
-               https://github.com/llvm-mirror/libcxx.git"
+       if use test; then
+               git-r3_fetch "https://git.llvm.org/git/libcxx.git
+                       https://github.com/llvm-mirror/libcxx.git"
+       fi
        git-r3_fetch
 
        if use test; then
                git-r3_checkout https://llvm.org/git/libcxx.git \
                        "${WORKDIR}"/libcxx '' include utils/libcxx
-               git-r3_checkout
        fi
+       git-r3_checkout
 }
 
 multilib_src_configure() {
index 60a321c7d60900db4a27c1c2858989f079535675..2ac7db3bbf71a69fc03d802ff5a0a2ad87ab75c9 100644 (file)
@@ -42,15 +42,17 @@ pkg_setup() {
 
 src_unpack() {
        # we need headers & test utilities
-       git-r3_fetch "https://git.llvm.org/git/libcxx.git
-               https://github.com/llvm-mirror/libcxx.git"
+       if use test
+               git-r3_fetch "https://git.llvm.org/git/libcxx.git
+                       https://github.com/llvm-mirror/libcxx.git"
+       fi
        git-r3_fetch
 
        if use test; then
                git-r3_checkout https://llvm.org/git/libcxx.git \
                        "${WORKDIR}"/libcxx '' include utils/libcxx
-               git-r3_checkout
        fi
+       git-r3_checkout
 }
 
 multilib_src_configure() {