summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/mujs')
-rw-r--r--dev-lang/mujs/mujs-1.2.0.ebuild13
1 files changed, 3 insertions, 10 deletions
diff --git a/dev-lang/mujs/mujs-1.2.0.ebuild b/dev-lang/mujs/mujs-1.2.0.ebuild
index e25bff9dec49..9c1e0ae5c390 100644
--- a/dev-lang/mujs/mujs-1.2.0.ebuild
+++ b/dev-lang/mujs/mujs-1.2.0.ebuild
@@ -55,14 +55,7 @@ src_install() {
prefix=/usr \
install-shared
- # 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
+ 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})
}