diff options
author | Gergely Nagy <ngg@ngg.hu> | 2020-09-15 18:36:03 +0200 |
---|---|---|
committer | Gergely Nagy <ngg@ngg.hu> | 2020-09-15 18:43:57 +0200 |
commit | df485c2d214e0bbf753c82c5b522ef09825b0813 (patch) | |
tree | d0f9cf37addc4155e9ffb155b7fec190b081f973 /app-shells/pwsh-bin/pwsh-bin-7.0.3.ebuild | |
parent | dev-dotnet/dotnetcore-runtime-bin: Allow openssl-compat (diff) | |
download | dotnet-df485c2d214e0bbf753c82c5b522ef09825b0813.tar.gz dotnet-df485c2d214e0bbf753c82c5b522ef09825b0813.tar.bz2 dotnet-df485c2d214e0bbf753c82c5b522ef09825b0813.zip |
app-shells/pwsh-bin: bump to 7.0.3, dep fixes
Dependency fixes are taken from the Pentoo Overlay.
https://github.com/pentoo/pentoo-overlay/
Closes: https://github.com/gentoo/dotnet/issues/475
Signed-off-by: Gergely Nagy <ngg@ngg.hu>
Diffstat (limited to 'app-shells/pwsh-bin/pwsh-bin-7.0.3.ebuild')
-rw-r--r-- | app-shells/pwsh-bin/pwsh-bin-7.0.3.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-shells/pwsh-bin/pwsh-bin-7.0.3.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.0.3.ebuild new file mode 100644 index 0000000..b610cd2 --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.0.3.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +DESCRIPTION="PowerShell - binary precompiled for glibc" +HOMEPAGE="https://powershell.org/" +LICENSE="MIT" + +SRC_URI=" + amd64? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-linux-x64.tar.gz ) + arm? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-linux-arm32.tar.gz ) + arm64? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-linux-arm64.tar.gz ) +" + +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" + +QA_PREBUILT="*" + +DEPEND="" +RDEPEND="${DEPEND} + >=sys-apps/lsb-release-1.4 + sys-libs/libcxx + dev-util/lttng-ust + >=dev-libs/icu-57.1 + >=dev-util/lttng-ust-2.8.1 + || ( dev-libs/openssl-compat:1.0.0 =dev-libs/openssl-1.0*:0 ) + >=net-misc/curl-7.49.0 + >=app-crypt/mit-krb5-1.14.2 + sys-libs/pam + >=sys-libs/zlib-1.2.8-r1" +BDEPEND="" + +S=${WORKDIR} + +src_prepare() { + default + #there are no these symlinks in arm bins + use amd64 && rm libcrypto.so.1.0.0 libssl.so.1.0.0 || die +} + +src_install() { + local dest="opt/pwsh" + dodir "${dest}" + local ddest="${D}/${dest}" + cp -a "${S}"/* "${ddest}/" || die + fperms 0755 "/${dest}/pwsh" + dosym "/${dest}/pwsh" "/usr/bin/pwsh" +} |