Gentoo Archives: gentoo-commits

From: Patrice Clement <monsieurp@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/micropython/
Date: Thu, 04 Jun 2020 07:03:21
Message-Id: 1591254061.165a96a564bc5f7cee0719084da76359ce66cc90.monsieurp@gentoo
1 commit: 165a96a564bc5f7cee0719084da76359ce66cc90
2 Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 4 07:00:58 2020 +0000
4 Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 4 07:01:01 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=165a96a5
7
8 dev-lang/micropython: honor CFLAGS and LDFLAGS.
9
10 Closes: https://bugs.gentoo.org/726902
11 Package-Manager: Portage-2.3.99, Repoman-2.3.22
12 Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org>
13
14 dev-lang/micropython/micropython-1.11.ebuild | 8 ++++----
15 1 file changed, 4 insertions(+), 4 deletions(-)
16
17 diff --git a/dev-lang/micropython/micropython-1.11.ebuild b/dev-lang/micropython/micropython-1.11.ebuild
18 index a7361e69166..e0c69a12c7a 100644
19 --- a/dev-lang/micropython/micropython-1.11.ebuild
20 +++ b/dev-lang/micropython/micropython-1.11.ebuild
21 @@ -31,18 +31,18 @@ src_compile() {
22 -e 's#\/usr\/local#\/usr#g;' \
23 Makefile || die
24
25 - emake CC="$(tc-getCC)" axtls
26 - emake CC="$(tc-getCC)"
27 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" axtls
28 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
29 }
30
31 src_test() {
32 cd ports/unix || die
33 - emake CC="$(tc-getCC)" test
34 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" test
35 }
36
37 src_install() {
38 pushd ports/unix > /dev/null || die
39 - emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" DESTDIR="${D}" install
40 + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" DESTDIR="${D}" install
41 popd > /dev/null || die
42
43 # remove .git files