commit:     2be43d8a49bd4d2da17a0a133faad29a5e64f339
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 28 01:00:07 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Oct 28 01:00:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2be43d8a

dev-libs/libtommath: fix libdir too in pkgconfig file

Fixes: 6953f9bde6b2f327279fd6d21a0acda9465ea9b2
See: c90ab38e3577aae61fac2341b34ad593948de1cd
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../{libtommath-1.2.0-r1.ebuild => libtommath-1.2.0-r2.ebuild}         | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dev-libs/libtommath/libtommath-1.2.0-r1.ebuild 
b/dev-libs/libtommath/libtommath-1.2.0-r2.ebuild
similarity index 94%
rename from dev-libs/libtommath/libtommath-1.2.0-r1.ebuild
rename to dev-libs/libtommath/libtommath-1.2.0-r2.ebuild
index 7b117347f4e..02a55d1fc6f 100644
--- a/dev-libs/libtommath/libtommath-1.2.0-r1.ebuild
+++ b/dev-libs/libtommath/libtommath-1.2.0-r2.ebuild
@@ -57,6 +57,9 @@ _emake() {
 }
 
 src_compile() {
+       # Replace hard-coded libdir=${exec_prefix}/lib.
+       sed -i -e "/libdir=/s:/lib:/$(get_libdir):" libtommath.pc.in || die
+
        _emake -f makefile.shared
 }
 

Reply via email to