net-misc/megatools: respect 'AR' variable
authorYixun Lan <dlan@gentoo.org>
Tue, 26 May 2020 06:46:10 +0000 (14:46 +0800)
committerYixun Lan <dlan@gentoo.org>
Tue, 26 May 2020 06:47:37 +0000 (14:47 +0800)
use AM_PROG_AR to default to standard AR discovery
instead of make's 'ar'.

Closes: https://bugs.gentoo.org/725202
Package-Manager: Portage-2.3.100, Repoman-2.3.22
Signed-off-by: Yixun Lan <dlan@gentoo.org>
net-misc/megatools/megatools-1.10.3.ebuild

index 577aa496b79cdd02b1a11bfca6d3437c829191e3..f963f80749fb3c7dc1169e167e42ab79c26fb860 100644 (file)
@@ -27,6 +27,7 @@ DEPEND="${COMMON_DEPEND}
 
 src_prepare() {
        default
+       sed -i -e "/^AC_PROG_CC/ a AM_PROG_AR" configure.ac || die
        eautoreconf
 }
 
@@ -35,5 +36,4 @@ src_configure() {
        econf \
                --disable-maintainer-mode \
                --disable-warnings
-
 }