Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libtommath/
Date: Sat, 30 Jan 2021 05:24:54
Message-Id: 1611983779.7e8223ef7dcb6ad38c5fe5f8505e0e36ac75c56d.sam@gentoo
1 commit: 7e8223ef7dcb6ad38c5fe5f8505e0e36ac75c56d
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jan 30 05:16:19 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat Jan 30 05:16:19 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e8223ef
7
8 dev-libs/libtommath: fix Darwin install
9
10 Package-Manager: Portage-3.0.14-prefix, Repoman-3.0.2
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-libs/libtommath/libtommath-1.2.0.ebuild | 5 +++++
14 1 file changed, 5 insertions(+)
15
16 diff --git a/dev-libs/libtommath/libtommath-1.2.0.ebuild b/dev-libs/libtommath/libtommath-1.2.0.ebuild
17 index 78def9854c3..56b357a3505 100644
18 --- a/dev-libs/libtommath/libtommath-1.2.0.ebuild
19 +++ b/dev-libs/libtommath/libtommath-1.2.0.ebuild
20 @@ -65,6 +65,11 @@ src_test() {
21 src_install() {
22 _emake -f makefile.shared install
23
24 + if [[ ${CHOST} == *-darwin* ]] ; then
25 + local path="usr/$(get_libdir)/libtommath.${PV}.dylib"
26 + install_name_tool -id "${EPREFIX}/${path}" "${ED}/${path}" || die "Failed to adjust install_name"
27 + fi
28 +
29 # We only link against -lc, so drop the .la file.
30 find "${ED}" -name '*.la' -delete || die
31 if ! use static-libs ; then