summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-03-30 23:07:33 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-03-30 23:17:22 +0200
commit106265f416c3bc2f6a1ee2d29479362662283f21 (patch)
treeb8213d2e01069d5e5d8f3d38f880d639eee04412 /dev-scheme/scm/scm-5.5.6-r4.ebuild
parentdev-lua/luaexpat: fix PkgMetadataXmlIndentation (diff)
downloadgentoo-106265f416c3bc2f6a1ee2d29479362662283f21.tar.gz
gentoo-106265f416c3bc2f6a1ee2d29479362662283f21.tar.bz2
gentoo-106265f416c3bc2f6a1ee2d29479362662283f21.zip
dev-scheme/scm: respect CC
Closes: https://bugs.gentoo.org/724042 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme/scm/scm-5.5.6-r4.ebuild')
-rw-r--r--dev-scheme/scm/scm-5.5.6-r4.ebuild25
1 files changed, 18 insertions, 7 deletions
diff --git a/dev-scheme/scm/scm-5.5.6-r4.ebuild b/dev-scheme/scm/scm-5.5.6-r4.ebuild
index 482f32675a52..9885280d9d32 100644
--- a/dev-scheme/scm/scm-5.5.6-r4.ebuild
+++ b/dev-scheme/scm/scm-5.5.6-r4.ebuild
@@ -1,17 +1,19 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
-#version magic thanks to masterdriverz and UberLord using bash array instead of tr
+# Version magic thanks to masterdriverz and UberLord using bash array instead of tr
trarr="0abcdefghi"
MY_PV="$(ver_cut 1)${trarr:$(ver_cut 2):1}$(ver_cut 3)"
-
MY_P=${PN}-${MY_PV}
-S=${WORKDIR}/${PN}
+
+inherit toolchain-funcs
+
DESCRIPTION="SCM is a Scheme implementation from the author of slib"
-SRC_URI="http://groups.csail.mit.edu/mac/ftpdir/scm/${MY_P}.zip"
HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
+SRC_URI="http://groups.csail.mit.edu/mac/ftpdir/scm/${MY_P}.zip"
+S=${WORKDIR}/${PN}
SLOT="0"
LICENSE="LGPL-3"
@@ -28,6 +30,15 @@ RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}/${P}-multiplefixes.patch"
"${FILESDIR}/${P}-respect-ldflags.patch" )
+src_prepare() {
+ default
+
+ sed \
+ -e "s|\"gcc\"|\"$(tc-getCC)\"|g" \
+ -e "s|\"ld\"|\"$(tc-getLD)\"|g" \
+ -i ./build.scm || die
+}
+
src_compile() {
# SLIB is required to build SCM.
local slibpath="${EPREFIX}/usr/share/slib/"
@@ -38,7 +49,7 @@ src_compile() {
fi
einfo "Making scmlit"
- emake -j1 scmlit clean
+ emake -j1 CC=$(tc-getCC) scmlit clean
einfo "Building scm"
local features=""