summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Rösner <rndxelement@protonmail.com>2021-12-21 21:24:33 +0100
committerSam James <sam@gentoo.org>2021-12-25 19:47:07 +0000
commit4112182b3c927242e10b8b7aca46b5883b14c896 (patch)
treea8c05d88d3da812356a24c5e8d0ab3bda401a894 /dev-lang
parentsys-fs/xfsprogs: Stabilize 5.14.2 arm64, #829945 (diff)
downloadgentoo-4112182b3c927242e10b8b7aca46b5883b14c896.tar.gz
gentoo-4112182b3c927242e10b8b7aca46b5883b14c896.tar.bz2
gentoo-4112182b3c927242e10b8b7aca46b5883b14c896.zip
dev-lang/mujs: cleaned up src_install
The section in src_install which handled renaming and symlinking the mujs shared library is now shorter and easier to read. Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Philipp Roesner <rndxelement@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/23458 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-lang')
-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})
}