1 |
commit: 2be43d8a49bd4d2da17a0a133faad29a5e64f339 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 28 01:00:07 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 28 01:00:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2be43d8a |
7 |
|
8 |
dev-libs/libtommath: fix libdir too in pkgconfig file |
9 |
|
10 |
Fixes: 6953f9bde6b2f327279fd6d21a0acda9465ea9b2 |
11 |
See: c90ab38e3577aae61fac2341b34ad593948de1cd |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
.../{libtommath-1.2.0-r1.ebuild => libtommath-1.2.0-r2.ebuild} | 3 +++ |
15 |
1 file changed, 3 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libtommath/libtommath-1.2.0-r1.ebuild b/dev-libs/libtommath/libtommath-1.2.0-r2.ebuild |
18 |
similarity index 94% |
19 |
rename from dev-libs/libtommath/libtommath-1.2.0-r1.ebuild |
20 |
rename to dev-libs/libtommath/libtommath-1.2.0-r2.ebuild |
21 |
index 7b117347f4e..02a55d1fc6f 100644 |
22 |
--- a/dev-libs/libtommath/libtommath-1.2.0-r1.ebuild |
23 |
+++ b/dev-libs/libtommath/libtommath-1.2.0-r2.ebuild |
24 |
@@ -57,6 +57,9 @@ _emake() { |
25 |
} |
26 |
|
27 |
src_compile() { |
28 |
+ # Replace hard-coded libdir=${exec_prefix}/lib. |
29 |
+ sed -i -e "/libdir=/s:/lib:/$(get_libdir):" libtommath.pc.in || die |
30 |
+ |
31 |
_emake -f makefile.shared |
32 |
} |