summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-09-12 14:20:29 +0200
committerAlfredo Tupone <tupone@gentoo.org>2021-09-12 14:20:29 +0200
commit6ab7f907e2687bab0295ad09a73260ca5d22b78a (patch)
treee537d7dbdb2309619aecb11cee987d4bef595e6a /dev-ml/zarith
parentkde-apps/kopete: keyword 21.08.1 for ~riscv (diff)
downloadgentoo-6ab7f907e2687bab0295ad09a73260ca5d22b78a.tar.gz
gentoo-6ab7f907e2687bab0295ad09a73260ca5d22b78a.tar.bz2
gentoo-6ab7f907e2687bab0295ad09a73260ca5d22b78a.zip
dev-ml/zarith: VariableScope
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ml/zarith')
-rw-r--r--dev-ml/zarith/zarith-1.12.ebuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/dev-ml/zarith/zarith-1.12.ebuild b/dev-ml/zarith/zarith-1.12.ebuild
index 365b3503fd38..1b285165f7c6 100644
--- a/dev-ml/zarith/zarith-1.12.ebuild
+++ b/dev-ml/zarith/zarith-1.12.ebuild
@@ -29,8 +29,10 @@ src_configure() {
tc-export CC AR
./configure \
-ocamllibdir /usr/$(get_libdir)/ocaml \
- -installdir "${ED}"/usr/$(get_libdir)/ocaml \
$(usex mpir "-mpir" "-gmp") || die
+ sed -i \
+ -e 's|$(INSTALLDIR)|$(DESTDIR)$(INSTALLDIR)|g' \
+ project.mak || die
}
src_compile() {
@@ -48,6 +50,7 @@ src_install() {
emake \
HASOCAMLOPT=$(usex ocamlopt yes no) \
HASDYNLINK=$(usex ocamlopt yes no) \
+ DESTDIR="${ED}" \
install
dosym zarith/libzarith.a /usr/$(get_libdir)/ocaml/libzarith.a