1 |
commit: 594ab91c7589af2cfec737c86c265f73f2caaecd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 26 12:33:05 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Oct 26 16:48:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=594ab91c |
7 |
|
8 |
llvm.org.eclass: Always unpack all distfiles |
9 |
|
10 |
Unpack all distfiles from SRC_URI, not only the primary LLVM tarball. |
11 |
This will be helpful in implementing manpage support. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
eclass/llvm.org.eclass | 7 +++++++ |
16 |
1 file changed, 7 insertions(+) |
17 |
|
18 |
diff --git a/eclass/llvm.org.eclass b/eclass/llvm.org.eclass |
19 |
index 42fa04734d2..ec2c73c7276 100644 |
20 |
--- a/eclass/llvm.org.eclass |
21 |
+++ b/eclass/llvm.org.eclass |
22 |
@@ -150,6 +150,7 @@ llvm.org_src_unpack() { |
23 |
if [[ ${_LLVM_SOURCE_TYPE} == git ]]; then |
24 |
git-r3_fetch |
25 |
git-r3_checkout '' . '' "${components[@]}" |
26 |
+ default_src_unpack |
27 |
else |
28 |
local archive=llvmorg-${PV/_/-}.tar.gz |
29 |
ebegin "Unpacking from ${archive}" |
30 |
@@ -157,6 +158,12 @@ llvm.org_src_unpack() { |
31 |
-f "${DISTDIR}/${archive}" \ |
32 |
"${components[@]/#/llvm-project-${archive%.tar*}/}" || die |
33 |
eend ${?} |
34 |
+ |
35 |
+ # unpack all remaining distfiles |
36 |
+ local x |
37 |
+ for x in ${A}; do |
38 |
+ [[ ${x} != ${archive} ]] && unpack "${x}" |
39 |
+ done |
40 |
fi |
41 |
} |