Diff pwsh-bin-7.3.1-r1 with a pwsh-bin-7.3.6

/usr/portage/app-shells/pwsh-bin/pwsh-bin-7.3.6.ebuild 2023-10-09 14:52:28.860368334 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
DESCRIPTION="PowerShell - binary precompiled for glibc"
7
HOMEPAGE="https://microsoft.com/powershell"
8
BASE_URI="https://github.com/PowerShell/PowerShell/releases/download"
6
inherit wrapper
7

  
8
DESCRIPTION="Cross-platform automation and configuration tool (binary package)"
9
HOMEPAGE="https://microsoft.com/powershell/
10
	https://github.com/PowerShell/PowerShell/"
11

  
12
BASE_URI="https://github.com/PowerShell/PowerShell/releases/download/"
9 13
SRC_URI="
10 14
	amd64? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-x64.tar.gz )
11
	arm?   ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm32.tar.gz )
12 15
	arm64? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm64.tar.gz )
16
	arm?   ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm32.tar.gz )
13 17
"
14 18
S="${WORKDIR}"
15 19

  
16 20
LICENSE="MIT"
17 21
SLOT="$(ver_cut 1-2)"
18
KEYWORDS="amd64 ~arm ~arm64"
19
IUSE="+pwsh-symlink"
22
KEYWORDS="~amd64 ~arm ~arm64"
20 23
REQUIRED_USE="elibc_glibc"
21 24

  
22 25
RDEPEND="
23 26
	app-crypt/mit-krb5:0/0
27
	dev-libs/icu
24 28
	dev-util/lttng-ust:0/2.12
25 29
	sys-libs/pam:0/0
26 30
	sys-libs/zlib:0/1
......
28 32
		dev-libs/openssl-compat:1.0.0
29 33
		=dev-libs/openssl-1.0*:0/0
30 34
	)
31
	pwsh-symlink? ( !app-shells/pwsh )
32 35
"
36
IDEPEND="app-eselect/eselect-pwsh"
33 37

  
34 38
QA_PREBUILT="*"
35 39

  
36 40
src_install() {
37
	local dest=opt/pwsh
38
	dodir ${dest}
41
	local -a broken_symlinks
42
	broken_symlinks=( libcrypto.so.1.0.0 libssl.so.1.0.0 )
39 43

  
40
	local broken_symlinks=( libcrypto.so.1.0.0 libssl.so.1.0.0 )
41 44
	local symlink
42 45
	for symlink in "${broken_symlinks[@]}" ; do
43
		[[ -L ${symlink} ]] && { rm "${symlink}" || die ; }
46
		if [[ -L "${symlink}" ]] ; then
47
			rm "${symlink}" || die "failed to remove ${symlink}"
48
		fi
44 49
	done
45 50

  
46
	mv "${S}/"* "${ED}"/${dest}/ || die
47
	fperms 0755 /${dest}/pwsh
51
	local dest="opt/${PN}-${SLOT}"
52
	local dest_root="/${dest}"
53

  
54
	insinto "${dest_root}"
55
	doins -r .
56

  
57
	fperms 0755 "${dest_root}/pwsh"
58

  
59
	local gentoo_path='PSModulePath="${PSModulePath}:/usr/share/GentooPowerShell/Modules:"'
60
	make_wrapper "${PN}-${SLOT}" "env ${gentoo_path} ${dest_root}/pwsh"
61
}
62

  
63
pkg_postinst() {
64
	eselect pwsh update ifunset
65
}
48 66

  
49
	dosym ../../${dest}/pwsh /usr/bin/pwsh-bin
50
	use pwsh-symlink && dosym ../../${dest}/pwsh /usr/bin/pwsh
67
pkg_postrm() {
68
	eselect pwsh update ifunset
51 69
}
Thank you!