commit: 14f34132fedfa241528b7699d19bebe3c98ded63 Author: Leorize <alaviss <AT> users <DOT> noreply <DOT> github <DOT> com> AuthorDate: Mon Feb 19 08:36:14 2018 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Feb 20 16:39:37 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14f34132
sys-libs/llvm-libunwind: fix when test is off (*9999) 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 | 8 +++++--- sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild index 7523ff7bd6f..87f9ee1eb39 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-6.0.9999.ebuild @@ -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() { diff --git a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild index 60a321c7d60..2ac7db3bbf7 100644 --- a/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild +++ b/sys-libs/llvm-libunwind/llvm-libunwind-9999.ebuild @@ -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() {
