summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2020-06-20 15:49:19 +0200
committerMichał Górny <mgorny@gentoo.org>2020-06-20 18:32:35 +0200
commit51e44b7efc95eb0e0308df91b363569550440864 (patch)
treef5561c7c687e4ca3a1afb8faa75b09acec6d99b8 /sys-devel/clang/clang-10.0.1.9999.ebuild
parentsys-devel/clang-common: Apply patches in WORKDIR in 10.0.1+ (diff)
downloadgentoo-51e44b7efc95eb0e0308df91b363569550440864.tar.gz
gentoo-51e44b7efc95eb0e0308df91b363569550440864.tar.bz2
gentoo-51e44b7efc95eb0e0308df91b363569550440864.zip
sys-devel/clang: Apply patches in WORKDIR in 10.0.1+
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sys-devel/clang/clang-10.0.1.9999.ebuild')
-rw-r--r--sys-devel/clang/clang-10.0.1.9999.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-devel/clang/clang-10.0.1.9999.ebuild b/sys-devel/clang/clang-10.0.1.9999.ebuild
index ead9436be91..4d77354a2fb 100644
--- a/sys-devel/clang/clang-10.0.1.9999.ebuild
+++ b/sys-devel/clang/clang-10.0.1.9999.ebuild
@@ -87,7 +87,15 @@ src_unpack() {
mkdir -p x/y || die
cd x/y || die
llvm.org_src_unpack
- mv clang-tools-extra clang/tools/extra || die
+}
+
+src_prepare() {
+ # cmake eclasses suck by forcing ${S} here
+ CMAKE_USE_DIR=${S} \
+ S=${WORKDIR}/x/y \
+ cmake-utils_src_prepare
+
+ mv ../clang-tools-extra tools/extra || die
}
check_distribution_components() {