diff options
Diffstat (limited to 'dev-lang/julia-bin/julia-bin-1.3.0.ebuild')
-rw-r--r-- | dev-lang/julia-bin/julia-bin-1.3.0.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/dev-lang/julia-bin/julia-bin-1.3.0.ebuild b/dev-lang/julia-bin/julia-bin-1.3.0.ebuild new file mode 100644 index 000000000000..3cd38e7454ea --- /dev/null +++ b/dev-lang/julia-bin/julia-bin-1.3.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +MY_PN=${PN/-bin/} +MY_P=${MY_PN}-${PV} +MY_PV=$(ver_cut 1-2) + +DESCRIPTION="High-performance programming language for technical computing" +HOMEPAGE="https://julialang.org/" +SRC_URI=" + x86? ( https://julialang-s3.julialang.org/bin/linux/x86/${MY_PV}/${MY_P}-linux-i686.tar.gz ) + amd64? ( https://julialang-s3.julialang.org/bin/linux/x64/${MY_PV}/${MY_P}-linux-x86_64.tar.gz ) + amd64-fbsd? ( https://julialang-s3.julialang.org/bin/freebsd/x64/${MY_PV}/${MY_P}-freebsd-x86_64.tar.gz ) + arm? ( https://julialang-s3.julialang.org/bin/linux/armv7l/${MY_PV}/${MY_P}-linux-armv7l.tar.gz ) + arm64? ( https://julialang-s3.julialang.org/bin/linux/aarch64/${MY_PV}/${MY_P}-linux-aarch64.tar.gz ) +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~amd64 ~arm ~arm64 ~x86" +IUSE="elibc_glibc elibc_FreeBSD" + +RDEPEND="!dev-lang/julia" +DEPEND="${RDEPEND}" + +RESTRICT="strip" + +S="${WORKDIR}/${MY_P}" + +src_install() { + insinto "/usr/$(get_libdir)/${MY_P}/" + doins -r ./etc + doins -r ./include + doins -r ./lib + doins -r ./share + + exeinto "/usr/$(get_libdir)/${MY_P}/bin" + doexe bin/julia + + cat > 99julia-bin <<-EOF + PATH="${EROOT}/usr/$(get_libdir)/${MY_P}/bin" + EOF + doenvd 99julia-bin +} |