diff options
author | Sam James <sam@gentoo.org> | 2021-12-25 19:48:30 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-12-25 19:48:30 +0000 |
commit | 7483feb9e18b1e6b0bd3f26c17534005196ce407 (patch) | |
tree | 25f11e0b2b549a9629c1dff5c783c1edbea8d1af /dev-lang/mujs | |
parent | dev-lang/mujs: cleaned up src_install (diff) | |
download | gentoo-7483feb9e18b1e6b0bd3f26c17534005196ce407.tar.gz gentoo-7483feb9e18b1e6b0bd3f26c17534005196ce407.tar.bz2 gentoo-7483feb9e18b1e6b0bd3f26c17534005196ce407.zip |
Revert "dev-lang/mujs: cleaned up src_install"
Didn't mean to push!
This reverts commit 4112182b3c927242e10b8b7aca46b5883b14c896.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang/mujs')
-rw-r--r-- | dev-lang/mujs/mujs-1.2.0.ebuild | 13 |
1 files 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 } |