summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Rösner <rndxelement@protonmail.com>2021-12-27 13:10:56 +0100
committerSam James <sam@gentoo.org>2021-12-29 01:58:36 +0000
commit74d0eed48ddfec80763e02da6d15521476e8e6f9 (patch)
treeb549643cf667db0cd1b79691dc96492468636a61 /dev-lang/mujs
parentmedia-gfx/slic3r: add Module:Build to BDEPEND (diff)
downloadgentoo-74d0eed48ddfec80763e02da6d15521476e8e6f9.tar.gz
gentoo-74d0eed48ddfec80763e02da6d15521476e8e6f9.tar.bz2
gentoo-74d0eed48ddfec80763e02da6d15521476e8e6f9.zip
dev-lang/mujs: cleaned up src_install
We improved the readability of the section in src_install in which the mujs shared library is renamed and symlinked. 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/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..3198466f0ae5 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}$(get_libname) "${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})
}