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 | |
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')
-rw-r--r-- | dev-lang/julia-bin/julia-bin-1.5.2.ebuild | 16 | ||||
-rw-r--r-- | dev-lang/julia-bin/julia-bin-1.5.3.ebuild | 16 | ||||
-rw-r--r-- | dev-lang/julia-bin/julia-bin-9999.ebuild | 55 |
3 files changed, 75 insertions, 12 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 } diff --git a/dev-lang/julia-bin/julia-bin-1.5.3.ebuild b/dev-lang/julia-bin/julia-bin-1.5.3.ebuild index 61861f476e93..08f329907e4f 100644 --- a/dev-lang/julia-bin/julia-bin-1.5.3.ebuild +++ b/dev-lang/julia-bin/julia-bin-1.5.3.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 } diff --git a/dev-lang/julia-bin/julia-bin-9999.ebuild b/dev-lang/julia-bin/julia-bin-9999.ebuild new file mode 100644 index 000000000000..4076300d1b29 --- /dev/null +++ b/dev-lang/julia-bin/julia-bin-9999.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +MY_PN=${PN/-bin/} + +DESCRIPTION="High-performance programming language for technical computing" +HOMEPAGE="https://julialang.org/" + +PROPERTIES="live" +MY_P=${MY_PN}-latest +SRC_URI="" + +LICENSE="MIT" +SLOT="9999" +IUSE="elibc_glibc elibc_FreeBSD" + +RDEPEND="!dev-lang/julia + app-arch/p7zip +" +DEPEND="${RDEPEND}" + +RESTRICT="strip" + +QA_PREBUILT="*" + +S="${WORKDIR}/" + +src_unpack() { + NIGHTLIES_S3="https://julialangnightlies-s3.julialang.org/bin" + if use x86; then + URI="${NIGHTLIES_S3}/linux/x86/${MY_P}-linux32.tar.gz" + elif use amd64; then + URI="${NIGHTLIES_S3}/linux/x64/${MY_P}-linux64.tar.gz" + elif use arm64; then + URI="${NIGHTLIES_S3}/linux/aarch64/${MY_P}-linuxaarch64.tar.gz" + else + die "arch not supported" + fi + + wget -O "${T}/julia.tar.gz" "${URI}" + unpack "${T}/julia.tar.gz" +} + +src_install() { + insinto "/usr/$(get_libdir)/${MY_P}/" + doins -r ./julia-*/etc + doins -r ./julia-*/include + doins -r ./julia-*/lib + doins -r ./julia-*/share + + exeinto "/usr/$(get_libdir)/${MY_P}/bin" + doexe ./julia-*/bin/julia + dosym "../$(get_libdir)/${MY_P}/bin/julia" "/usr/bin/julia${PV}" +} |