summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-10-26 13:33:05 +0100
committerMichał Górny <mgorny@gentoo.org>2020-10-26 17:48:39 +0100
commit594ab91c7589af2cfec737c86c265f73f2caaecd (patch)
treecb9a836dd760bf483b9d9cea665499697598d19f /eclass
parentllvm.org.eclass: Remove support for pre-9.0.1 archives (diff)
downloadgentoo-594ab91c7589af2cfec737c86c265f73f2caaecd.tar.gz
gentoo-594ab91c7589af2cfec737c86c265f73f2caaecd.tar.bz2
gentoo-594ab91c7589af2cfec737c86c265f73f2caaecd.zip
llvm.org.eclass: Always unpack all distfiles
Unpack all distfiles from SRC_URI, not only the primary LLVM tarball. This will be helpful in implementing manpage support. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/llvm.org.eclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass
index 42fa04734d2..ec2c73c7276 100644
--- a/eclass/llvm.org.eclass
+++ b/eclass/llvm.org.eclass
@@ -150,6 +150,7 @@ llvm.org_src_unpack() {
if [[ ${_LLVM_SOURCE_TYPE} == git ]]; then
git-r3_fetch
git-r3_checkout '' . '' "${components[@]}"
+ default_src_unpack
else
local archive=llvmorg-${PV/_/-}.tar.gz
ebegin "Unpacking from ${archive}"
@@ -157,6 +158,12 @@ llvm.org_src_unpack() {
-f "${DISTDIR}/${archive}" \
"${components[@]/#/llvm-project-${archive%.tar*}/}" || die
eend ${?}
+
+ # unpack all remaining distfiles
+ local x
+ for x in ${A}; do
+ [[ ${x} != ${archive} ]] && unpack "${x}"
+ done
fi
}