Gentoo Archives: gentoo-commits

From: Ronny Gutbrod <gentoo@××××××××.de>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/quickjs/
Date: Thu, 29 Apr 2021 21:46:21
Message-Id: 1619732571.0bbe59f19e3cd7cb2941dbdbf740514b23098971.tastytea@gentoo
1 commit: 0bbe59f19e3cd7cb2941dbdbf740514b23098971
2 Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de>
3 AuthorDate: Thu Apr 29 21:41:34 2021 +0000
4 Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de>
5 CommitDate: Thu Apr 29 21:42:51 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0bbe59f1
7
8 dev-lang/quickjs: Remove hard-coded tools, make it respect flags.
9
10 Closes: https://bugs.gentoo.org/784941
11 Closes: https://bugs.gentoo.org/781008
12 Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de>
13
14 dev-lang/quickjs/quickjs-2020.11.08.ebuild | 11 +++++++++++
15 1 file changed, 11 insertions(+)
16
17 diff --git a/dev-lang/quickjs/quickjs-2020.11.08.ebuild b/dev-lang/quickjs/quickjs-2020.11.08.ebuild
18 index 7b32fafd7..1a296d589 100644
19 --- a/dev-lang/quickjs/quickjs-2020.11.08.ebuild
20 +++ b/dev-lang/quickjs/quickjs-2020.11.08.ebuild
21 @@ -3,6 +3,8 @@
22
23 EAPI=7
24
25 +inherit toolchain-funcs
26 +
27 MY_P="${PN}-${PV//./-}"
28
29 DESCRIPTION="Small embeddable Javascript engine"
30 @@ -19,5 +21,14 @@ src_prepare() {
31 -e '/$(STRIP) .*/d' \
32 Makefile || die "Failed setting prefix"
33
34 + sed -Ei '/^\s*(CC|AR)=/d' Makefile \
35 + || die "Failed to remove hard-coded tools."
36 +
37 + sed -Ei 's/(^\s*(C|LD)FLAGS)=/\1\+=/' Makefile \
38 + || die "Failed to change build flag assignment into addition."
39 +
40 + export CC="$(tc-getCC)"
41 + export AR="$(tc-getAR)"
42 +
43 default
44 }