dev-libs/stfl: respects AR and RANLIB
authorCédric Krier <cedk@gentoo.org>
Sun, 24 May 2020 09:56:55 +0000 (11:56 +0200)
committerCédric Krier <cedk@gentoo.org>
Sun, 24 May 2020 09:57:59 +0000 (11:57 +0200)
Closes: https://bugs.gentoo.org/723138
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Cédric Krier <cedk@gentoo.org>
dev-libs/stfl/stfl-0.24-r2.ebuild [moved from dev-libs/stfl/stfl-0.24-r1.ebuild with 95% similarity]

similarity index 95%
rename from dev-libs/stfl/stfl-0.24-r1.ebuild
rename to dev-libs/stfl/stfl-0.24-r2.ebuild
index 1dc128d1c53e930f535e964717daaf427adeac01..97e5592ed6e769bdc7eec11aa7aceb536ee48d57 100644 (file)
@@ -42,6 +42,8 @@ src_prepare() {
                -e 's/$(CC) -shared/$(CC) $(LDFLAGS) -shared/' \
                -e 's/ -o $@ $(LDLIBS) $^/ $^ $(LDLIBS) -o $@/' \
                -e 's/-lncursesw/-lncursesw -pthread/' \
+               -e 's/\<ar\>/$(AR)/' \
+               -e 's/\<ranlib\>/$(RANLIB)/' \
                Makefile || die "sed failed"
 
        if ! use static-libs ; then
@@ -66,7 +68,7 @@ src_prepare() {
 src_configure() { :; }
 
 src_compile() {
-       emake CC="$(tc-getCC)"
+       emake CC="$(tc-getCC)" AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)"
 
        if use python ; then
                local BUILD_DIR="${S}/python"