diff options
author | Jeffrey Lin <jeffrey@icurse.nl> | 2021-03-29 23:53:18 -0400 |
---|---|---|
committer | Matthias Maier <tamiko@gentoo.org> | 2021-04-07 21:05:44 -0500 |
commit | 304aa456ef90c7cb717a4c787a9665f06d9bd576 (patch) | |
tree | 35e87360cdafb34b272de5a07ff8452ee7a3cc0f /dev-lang/julia-bin/julia-bin-1.5.2.ebuild | |
parent | dev-lang/julia: add maintainer (diff) | |
download | gentoo-304aa456ef90c7cb717a4c787a9665f06d9bd576.tar.gz gentoo-304aa456ef90c7cb717a4c787a9665f06d9bd576.tar.bz2 gentoo-304aa456ef90c7cb717a4c787a9665f06d9bd576.zip |
dev-lang/julia-bin: introduce slotting
Signed-off-by: Jeffrey Lin <jeffrey@icurse.nl>
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
Diffstat (limited to 'dev-lang/julia-bin/julia-bin-1.5.2.ebuild')
-rw-r--r-- | dev-lang/julia-bin/julia-bin-1.5.2.ebuild | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/dev-lang/julia-bin/julia-bin-1.5.2.ebuild b/dev-lang/julia-bin/julia-bin-1.5.2.ebuild index 61861f476e93..e7e4a6d130de 100644 --- a/dev-lang/julia-bin/julia-bin-1.5.2.ebuild +++ b/dev-lang/julia-bin/julia-bin-1.5.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -20,11 +20,14 @@ SRC_URI=" " LICENSE="MIT" -SLOT="0" +SLOT="${MY_PV}" KEYWORDS="-* ~amd64 ~x86" IUSE="elibc_glibc" -RDEPEND="!dev-lang/julia" +RDEPEND=" + !dev-lang/julia + app-arch/p7zip +" DEPEND="${RDEPEND}" RESTRICT="strip" @@ -42,10 +45,11 @@ src_install() { doins -r ./share exeinto "/usr/$(get_libdir)/${MY_P}/bin" - doexe bin/julia + doexe "bin/${MY_PN}" + dosym "../$(get_libdir)/${MY_P}/bin/${MY_PN}" "/usr/bin/${MY_PN}${SLOT}" - cat > 99julia-bin <<-EOF + local revord=$(( 9999 - $(ver_cut 1) * 100 - $(ver_cut 2) )) # 1.6 -> 106 + newenvd - "99${MY_PN}${revord}" <<-EOF PATH="${EROOT}/usr/$(get_libdir)/${MY_P}/bin" EOF - doenvd 99julia-bin } |