commit:     061e99afd0b86219d38a9464e4c786408076b657
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 30 05:00:20 2020 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Aug 30 05:00:20 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=061e99af

net-irc/dccserver: respect AR

Closes: https://bugs.gentoo.org/724956
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-irc/dccserver/dccserver-0.5-r1.ebuild | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/net-irc/dccserver/dccserver-0.5-r1.ebuild 
b/net-irc/dccserver/dccserver-0.5-r1.ebuild
index 2576bf19e35..995df89457b 100644
--- a/net-irc/dccserver/dccserver-0.5-r1.ebuild
+++ b/net-irc/dccserver/dccserver-0.5-r1.ebuild
@@ -1,15 +1,25 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
+
+inherit toolchain-funcs
 
 DESCRIPTION="linux implementation of the mirc dccserver command"
 HOMEPAGE="https://www.nih.at/dccserver/";
 SRC_URI="https://www.nih.at/dccserver/${P}.tar.gz";
+
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 ppc x86"
-IUSE=""
 
-DEPEND=""
-RDEPEND=""
+src_prepare() {
+       default
+
+       # Respect AR
+       sed -i -e "s/AR = /AR ?= /" lib/Makefile.in || die
+}
+
+src_compile() {
+       AR="$(tc-getAR)" default
+}

Reply via email to