commit:     a9bb3654086ba05ea86c05a9b318f4917772c1d8
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 20 15:58:29 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Jun 20 16:32:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9bb3654

sys-libs/compiler-rt: Apply patches in WORKDIR in 10.0.1+

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 sys-libs/compiler-rt/compiler-rt-10.0.1.9999.ebuild | 7 +++++++
 sys-libs/compiler-rt/compiler-rt-10.0.1_rc1.ebuild  | 7 +++++++
 sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild | 7 +++++++
 3 files changed, 21 insertions(+)

diff --git a/sys-libs/compiler-rt/compiler-rt-10.0.1.9999.ebuild 
b/sys-libs/compiler-rt/compiler-rt-10.0.1.9999.ebuild
index 597584d700e..653afb0abf8 100644
--- a/sys-libs/compiler-rt/compiler-rt-10.0.1.9999.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-10.0.1.9999.ebuild
@@ -49,6 +49,13 @@ pkg_setup() {
        python-any-r1_pkg_setup
 }
 
+src_prepare() {
+       # cmake eclasses suck by forcing ${S} here
+       CMAKE_USE_DIR=${S} \
+       S=${WORKDIR} \
+       cmake-utils_src_prepare
+}
+
 test_compiler() {
        $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
                <<<'int main() { return 0; }' &>/dev/null

diff --git a/sys-libs/compiler-rt/compiler-rt-10.0.1_rc1.ebuild 
b/sys-libs/compiler-rt/compiler-rt-10.0.1_rc1.ebuild
index 597584d700e..653afb0abf8 100644
--- a/sys-libs/compiler-rt/compiler-rt-10.0.1_rc1.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-10.0.1_rc1.ebuild
@@ -49,6 +49,13 @@ pkg_setup() {
        python-any-r1_pkg_setup
 }
 
+src_prepare() {
+       # cmake eclasses suck by forcing ${S} here
+       CMAKE_USE_DIR=${S} \
+       S=${WORKDIR} \
+       cmake-utils_src_prepare
+}
+
 test_compiler() {
        $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
                <<<'int main() { return 0; }' &>/dev/null

diff --git a/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild 
b/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild
index 597584d700e..653afb0abf8 100644
--- a/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild
+++ b/sys-libs/compiler-rt/compiler-rt-11.0.0.9999.ebuild
@@ -49,6 +49,13 @@ pkg_setup() {
        python-any-r1_pkg_setup
 }
 
+src_prepare() {
+       # cmake eclasses suck by forcing ${S} here
+       CMAKE_USE_DIR=${S} \
+       S=${WORKDIR} \
+       cmake-utils_src_prepare
+}
+
 test_compiler() {
        $(tc-getCC) ${CFLAGS} ${LDFLAGS} "${@}" -o /dev/null -x c - \
                <<<'int main() { return 0; }' &>/dev/null

Reply via email to