commit: 7483feb9e18b1e6b0bd3f26c17534005196ce407 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Dec 25 19:48:30 2021 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Dec 25 19:48:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7483feb9
Revert "dev-lang/mujs: cleaned up src_install" Didn't mean to push! This reverts commit 4112182b3c927242e10b8b7aca46b5883b14c896. Signed-off-by: Sam James <sam <AT> gentoo.org> dev-lang/mujs/mujs-1.2.0.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-lang/mujs/mujs-1.2.0.ebuild b/dev-lang/mujs/mujs-1.2.0.ebuild index 9c1e0ae5c390..e25bff9dec49 100644 --- a/dev-lang/mujs/mujs-1.2.0.ebuild +++ b/dev-lang/mujs/mujs-1.2.0.ebuild @@ -55,7 +55,14 @@ src_install() { prefix=/usr \ install-shared - mv -v "${ED}"/usr/$(get_libdir)/lib${PN}.so "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname ${PV}) || die "Failed adding version suffix to mujs shared library" - dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname) - dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}.$(get_libname ${PV:0:1}) + # TODO: Tidy up this logic, improve readability + if [[ ${CHOST} == *-darwin* ]] ; then + mv -v "${ED}"/usr/$(get_libdir)/lib${PN}.so "${ED}"/usr/$(get_libdir)/lib${PN}.${PV}.dylib || die + dosym lib${PN}.${PV}.dylib /usr/$(get_libdir)/lib${PN}.dylib + dosym lib${PN}.${PV}.dylib /usr/$(get_libdir)/lib${PN}.${PV:0:1}.dylib + else + mv -v "${ED}"/usr/$(get_libdir)/lib${PN}.so{,.${PV}} || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.${PV:0:1} + fi }