1 |
commit: 6ab7f907e2687bab0295ad09a73260ca5d22b78a |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 12 12:20:29 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 12 12:20:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ab7f907 |
7 |
|
8 |
dev-ml/zarith: VariableScope |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-ml/zarith/zarith-1.12.ebuild | 5 ++++- |
14 |
1 file changed, 4 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-ml/zarith/zarith-1.12.ebuild b/dev-ml/zarith/zarith-1.12.ebuild |
17 |
index 365b3503fd3..1b285165f7c 100644 |
18 |
--- a/dev-ml/zarith/zarith-1.12.ebuild |
19 |
+++ b/dev-ml/zarith/zarith-1.12.ebuild |
20 |
@@ -29,8 +29,10 @@ src_configure() { |
21 |
tc-export CC AR |
22 |
./configure \ |
23 |
-ocamllibdir /usr/$(get_libdir)/ocaml \ |
24 |
- -installdir "${ED}"/usr/$(get_libdir)/ocaml \ |
25 |
$(usex mpir "-mpir" "-gmp") || die |
26 |
+ sed -i \ |
27 |
+ -e 's|$(INSTALLDIR)|$(DESTDIR)$(INSTALLDIR)|g' \ |
28 |
+ project.mak || die |
29 |
} |
30 |
|
31 |
src_compile() { |
32 |
@@ -48,6 +50,7 @@ src_install() { |
33 |
emake \ |
34 |
HASOCAMLOPT=$(usex ocamlopt yes no) \ |
35 |
HASDYNLINK=$(usex ocamlopt yes no) \ |
36 |
+ DESTDIR="${ED}" \ |
37 |
install |
38 |
|
39 |
dosym zarith/libzarith.a /usr/$(get_libdir)/ocaml/libzarith.a |