commit: 2b4d9b8be522a939d0e85bda82c87c246086cebd
parent a376640ca89ce8a0717cd4e631874a7757d50fe1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 23 Dec 2023 02:22:44 +0100
net-misc/drawterm: use $(tc-get{AS,AR,RANLIB})
Diffstat:
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/net-misc/drawterm/drawterm-0_p20221013.ebuild b/net-misc/drawterm/drawterm-0_p20221013.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit toolchain-funcs
+
if [ "${PV}" == "9999" ]; then
inherit git-r3
EGIT_REPO_URI="git://git.9front.org/plan9front/drawterm"
@@ -75,7 +77,7 @@ src_configure() {
src_compile() {
emake \
- AS="${AS}" AR="${AR}" RANLIB="${RANLIB}" \
+ AS="$(tc-getAS)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
LDADD="${LDADD}" GUI="${GUI}" AUDIO="${AUDIO}"
}
diff --git a/net-misc/drawterm/drawterm-9999.ebuild b/net-misc/drawterm/drawterm-9999.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
+inherit toolchain-funcs
+
if [ "${PV}" == "9999" ]; then
inherit git-r3
EGIT_REPO_URI="git://git.9front.org/plan9front/drawterm"
@@ -75,7 +77,7 @@ src_configure() {
src_compile() {
emake \
- AS="${AS}" AR="${AR}" RANLIB="${RANLIB}" \
+ AS="$(tc-getAS)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \
LDADD="${LDADD}" GUI="${GUI}" AUDIO="${AUDIO}"
}