commit:     12b6184ba9075cb777ec8329a7541f4682509074
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun May 17 16:00:24 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun May 17 16:00:24 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=12b6184b

dev-ml/zarith: using AR

Closes: https://bugs.gentoo.org/723144
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ml/zarith/files/zarith-1.9.1-ar.patch | 11 +++++++++++
 dev-ml/zarith/zarith-1.9.1.ebuild         |  6 +++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

diff --git a/dev-ml/zarith/files/zarith-1.9.1-ar.patch 
b/dev-ml/zarith/files/zarith-1.9.1-ar.patch
new file mode 100644
index 00000000000..122cf0797db
--- /dev/null
+++ b/dev-ml/zarith/files/zarith-1.9.1-ar.patch
@@ -0,0 +1,11 @@
+--- a/configure        2020-05-17 17:46:29.826822055 +0200
++++ b/configure        2020-05-17 17:47:37.699808615 +0200
+@@ -22,7 +22,7 @@
+ gmp='auto'
+ perf='no'
+ 
+-ar='ar'
++ar="${AR}"
+ ocaml='ocaml'
+ ocamlc='ocamlc'
+ ocamlopt='ocamlopt'

diff --git a/dev-ml/zarith/zarith-1.9.1.ebuild 
b/dev-ml/zarith/zarith-1.9.1.ebuild
index 85651e3b495..6f6085a8c09 100644
--- a/dev-ml/zarith/zarith-1.9.1.ebuild
+++ b/dev-ml/zarith/zarith-1.9.1.ebuild
@@ -22,10 +22,14 @@ RDEPEND="
 DEPEND="${RDEPEND} dev-lang/perl"
 DOCS=( README.md Changes )
 
+PATCHES=(
+       "${FILESDIR}"/${P}-ar.patch
+)
+
 S="${WORKDIR}/Zarith-release-${PV}"
 
 src_configure() {
-       tc-export CC
+       tc-export CC AR
        ./configure -host "${CHOST}" \
                -ocamllibdir /usr/$(get_libdir)/ocaml \
                -installdir "${ED}"/usr/$(get_libdir)/ocaml \

Reply via email to