dev-ml/zarith: using AR
authorAlfredo Tupone <tupone@gentoo.org>
Sun, 17 May 2020 16:00:24 +0000 (18:00 +0200)
committerAlfredo Tupone <tupone@gentoo.org>
Sun, 17 May 2020 16:00:24 +0000 (18:00 +0200)
Closes: https://bugs.gentoo.org/723144
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
dev-ml/zarith/files/zarith-1.9.1-ar.patch [new file with mode: 0644]
dev-ml/zarith/zarith-1.9.1.ebuild

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 (file)
index 0000000..122cf07
--- /dev/null
@@ -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'
index 85651e3b49515925410dc632dc81db2171ef44c4..6f6085a8c09255b634904cfe297b6b8e6ad7e482 100644 (file)
@@ -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 \