1 |
commit: 106265f416c3bc2f6a1ee2d29479362662283f21 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 30 21:07:33 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 30 21:17:22 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=106265f4 |
7 |
|
8 |
dev-scheme/scm: respect CC |
9 |
|
10 |
Closes: https://bugs.gentoo.org/724042 |
11 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
12 |
|
13 |
dev-scheme/scm/scm-5.5.6-r4.ebuild | 25 ++++++++++++++++++------- |
14 |
1 file changed, 18 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/dev-scheme/scm/scm-5.5.6-r4.ebuild b/dev-scheme/scm/scm-5.5.6-r4.ebuild |
17 |
index 482f32675a52..9885280d9d32 100644 |
18 |
--- a/dev-scheme/scm/scm-5.5.6-r4.ebuild |
19 |
+++ b/dev-scheme/scm/scm-5.5.6-r4.ebuild |
20 |
@@ -1,17 +1,19 @@ |
21 |
-# Copyright 1999-2021 Gentoo Authors |
22 |
+# Copyright 1999-2022 Gentoo Authors |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
-EAPI=7 |
26 |
+EAPI=8 |
27 |
|
28 |
-#version magic thanks to masterdriverz and UberLord using bash array instead of tr |
29 |
+# Version magic thanks to masterdriverz and UberLord using bash array instead of tr |
30 |
trarr="0abcdefghi" |
31 |
MY_PV="$(ver_cut 1)${trarr:$(ver_cut 2):1}$(ver_cut 3)" |
32 |
- |
33 |
MY_P=${PN}-${MY_PV} |
34 |
-S=${WORKDIR}/${PN} |
35 |
+ |
36 |
+inherit toolchain-funcs |
37 |
+ |
38 |
DESCRIPTION="SCM is a Scheme implementation from the author of slib" |
39 |
-SRC_URI="http://groups.csail.mit.edu/mac/ftpdir/scm/${MY_P}.zip" |
40 |
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM" |
41 |
+SRC_URI="http://groups.csail.mit.edu/mac/ftpdir/scm/${MY_P}.zip" |
42 |
+S=${WORKDIR}/${PN} |
43 |
|
44 |
SLOT="0" |
45 |
LICENSE="LGPL-3" |
46 |
@@ -28,6 +30,15 @@ RDEPEND="${DEPEND}" |
47 |
PATCHES=( "${FILESDIR}/${P}-multiplefixes.patch" |
48 |
"${FILESDIR}/${P}-respect-ldflags.patch" ) |
49 |
|
50 |
+src_prepare() { |
51 |
+ default |
52 |
+ |
53 |
+ sed \ |
54 |
+ -e "s|\"gcc\"|\"$(tc-getCC)\"|g" \ |
55 |
+ -e "s|\"ld\"|\"$(tc-getLD)\"|g" \ |
56 |
+ -i ./build.scm || die |
57 |
+} |
58 |
+ |
59 |
src_compile() { |
60 |
# SLIB is required to build SCM. |
61 |
local slibpath="${EPREFIX}/usr/share/slib/" |
62 |
@@ -38,7 +49,7 @@ src_compile() { |
63 |
fi |
64 |
|
65 |
einfo "Making scmlit" |
66 |
- emake -j1 scmlit clean |
67 |
+ emake -j1 CC=$(tc-getCC) scmlit clean |
68 |
|
69 |
einfo "Building scm" |
70 |
local features="" |