commit:     d5af0ceadc4a82de135b5083fb1e028809e86ae0
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 18 11:10:00 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Aug 18 11:10:19 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5af0cea

net-misc/iperf: Set AR

Package-Manager: Portage-3.0.3, Repoman-3.0.0
Closes: https://bugs.gentoo.org/737832
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-misc/iperf/iperf-2.0.14a.ebuild       | 7 ++++++-
 net-misc/iperf/iperf-2.99999.99999.ebuild | 8 ++++++--
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/net-misc/iperf/iperf-2.0.14a.ebuild 
b/net-misc/iperf/iperf-2.0.14a.ebuild
index 25750ac9167..15f7dc5179f 100644
--- a/net-misc/iperf/iperf-2.0.14a.ebuild
+++ b/net-misc/iperf/iperf-2.0.14a.ebuild
@@ -1,7 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
+inherit toolchain-funcs
 
 DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
 HOMEPAGE="https://sourceforge.net/projects/iperf2/";
@@ -26,6 +27,10 @@ src_configure() {
                $(use_enable threads)
 }
 
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
 src_install() {
        default
        dodoc doc/*

diff --git a/net-misc/iperf/iperf-2.99999.99999.ebuild 
b/net-misc/iperf/iperf-2.99999.99999.ebuild
index 0e887f4a4e2..5d1c5b42d4a 100644
--- a/net-misc/iperf/iperf-2.99999.99999.ebuild
+++ b/net-misc/iperf/iperf-2.99999.99999.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-inherit git-r3
+inherit git-r3 toolchain-funcs
 
 DESCRIPTION="Tool to measure IP bandwidth using UDP or TCP"
 HOMEPAGE="https://sourceforge.net/projects/iperf2/";
@@ -25,6 +25,10 @@ src_configure() {
                $(use_enable threads)
 }
 
+src_compile() {
+       emake AR="$(tc-getAR)"
+}
+
 src_install() {
        default
        dodoc doc/*

Reply via email to