Сравнение julia-bin-1.9.0 с julia-bin-9999

/usr/portage/dev-lang/julia-bin/julia-bin-9999.ebuild 2023-10-09 14:52:29.464368349 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=8
4
EAPI=7
5 5

  
6 6
MY_PN=${PN/-bin/}
7
MY_P=${MY_PN}-${PV/_/-}
8
MY_PV=$(ver_cut 1-2)
9
BASE_SRC_URI="https://julialang-s3.julialang.org/bin"
10 7

  
11 8
DESCRIPTION="High-performance programming language for technical computing"
12 9
HOMEPAGE="https://julialang.org/"
13
SRC_URI="
14
	x86? ( ${BASE_SRC_URI}/linux/x86/${MY_PV}/${MY_P}-linux-i686.tar.gz )
15
	amd64? (
16
		elibc_glibc? ( ${BASE_SRC_URI}/linux/x64/${MY_PV}/${MY_P}-linux-x86_64.tar.gz )
17
		elibc_musl? ( ${BASE_SRC_URI}/musl/x64/${MY_PV}/${MY_P}-musl-x86_64.tar.gz )
18
	)
19
	arm64? ( ${BASE_SRC_URI}/linux/aarch64/${MY_PV}/${MY_P}-linux-aarch64.tar.gz )
20
"
21
S="${WORKDIR}/${MY_P}"
10
S="${WORKDIR}/"
22 11

  
23
LICENSE="MIT"
24
SLOT="${MY_PV}"
25
KEYWORDS="-* ~amd64 ~arm64 ~x86"
12
PROPERTIES="live"
13
MY_P=${MY_PN}-latest
14
SRC_URI=""
26 15

  
16
LICENSE="MIT"
17
SLOT="9999"
27 18
RESTRICT="strip"
28 19

  
29 20
RDEPEND="app-arch/p7zip"
30 21
DEPEND="${RDEPEND}"
31 22

  
32 23
QA_PREBUILT="*"
33
QA_SONAME="*"
34 24

  
35
# the following libs require libblastrampoline.so, which is however generated
36
# at runtime...
37
QA_DT_NEEDED="*"
25
src_unpack() {
26
	NIGHTLIES_S3="https://julialangnightlies-s3.julialang.org/bin"
27
	if use x86; then
28
		URI="${NIGHTLIES_S3}/linux/x86/${MY_P}-linux32.tar.gz"
29
	elif use amd64; then
30
		URI="${NIGHTLIES_S3}/linux/x64/${MY_P}-linux64.tar.gz"
31
	elif use arm64; then
32
		URI="${NIGHTLIES_S3}/linux/aarch64/${MY_P}-linuxaarch64.tar.gz"
33
	else
34
		die "arch not supported"
35
	fi
36

  
37
	wget -O "${T}/julia.tar.gz" "${URI}"
38
	unpack "${T}/julia.tar.gz"
39
}
38 40

  
39 41
src_install() {
40 42
	insinto "/usr/$(get_libdir)/${MY_P}/"
41
	doins -r ./etc
42
	doins -r ./include
43
	doins -r ./lib
44
	doins -r ./share
43
	doins -r ./julia-*/etc
44
	doins -r ./julia-*/include
45
	doins -r ./julia-*/lib
46
	doins -r ./julia-*/share
45 47

  
46 48
	exeinto "/usr/$(get_libdir)/${MY_P}/bin"
47
	doexe "bin/${MY_PN}"
48
	dosym "../$(get_libdir)/${MY_P}/bin/${MY_PN}" "/usr/bin/${MY_PN}${SLOT}"
49

  
50
	local revord=$(( 9999 - $(ver_cut 1) * 100 - $(ver_cut 2) )) # 1.6 -> 106
51
	newenvd - 99${MY_PN}${revord} <<-EOF
52
		PATH="${EPREFIX}/usr/$(get_libdir)/${MY_P}/bin"
53
	EOF
54

  
55
	elog "QA warnings about unresolved SONAME dependencies can be safely ignored."
49
	doexe ./julia-*/bin/julia
50
	dosym "../$(get_libdir)/${MY_P}/bin/julia" "/usr/bin/julia${PV}"
56 51
}
Спасибо!