From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7120C158091 for ; Thu, 2 Jun 2022 16:49:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 440A2E0898; Thu, 2 Jun 2022 16:49:03 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1A67AE0898 for ; Thu, 2 Jun 2022 16:49:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AAA13341E2B for ; Thu, 2 Jun 2022 16:49:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 048DB471 for ; Thu, 2 Jun 2022 16:48:59 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1654187824.bf0753d42d7e135f0cf3de9594812ea1b9b8f745.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-shells/pwsh-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-shells/pwsh-bin/pwsh-bin-7.2.1-r1.ebuild app-shells/pwsh-bin/pwsh-bin-7.2.1.ebuild X-VCS-Directories: app-shells/pwsh-bin/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: bf0753d42d7e135f0cf3de9594812ea1b9b8f745 X-VCS-Branch: master Date: Thu, 2 Jun 2022 16:48:59 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 52994452-7583-432b-a50d-e8b07a8ed6d4 X-Archives-Hash: 3e100945148e8f657c1739ff905270f4 commit: bf0753d42d7e135f0cf3de9594812ea1b9b8f745 Author: Maciej Barć gentoo org> AuthorDate: Thu Jun 2 16:37:04 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu Jun 2 16:37:04 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf0753d4 app-shells/pwsh-bin: bump to EAPI 8; minor changes Signed-off-by: Maciej Barć gentoo.org> app-shells/pwsh-bin/pwsh-bin-7.2.1-r1.ebuild | 51 ++++++++++++++++++++++++++++ app-shells/pwsh-bin/pwsh-bin-7.2.1.ebuild | 43 ----------------------- 2 files changed, 51 insertions(+), 43 deletions(-) diff --git a/app-shells/pwsh-bin/pwsh-bin-7.2.1-r1.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.2.1-r1.ebuild new file mode 100644 index 000000000000..c78be49848d4 --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.2.1-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="PowerShell - binary precompiled for glibc" +HOMEPAGE="https://powershell.org/" +BASE_URI="https://github.com/PowerShell/PowerShell/releases/download" +SRC_URI=" + amd64? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-x64.tar.gz ) + arm? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm32.tar.gz ) + arm64? ( ${BASE_URI}/v${PV}/powershell-${PV}-linux-arm64.tar.gz ) +" +S=${WORKDIR} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64" +IUSE="+pwsh-symlink" +REQUIRED_USE="elibc_glibc" + +RDEPEND=" + app-crypt/mit-krb5:0/0 + dev-util/lttng-ust:0 + sys-libs/pam:0/0 + sys-libs/zlib:0/1 + || ( + dev-libs/openssl-compat:1.0.0 + =dev-libs/openssl-1.0*:0/0 + ) + pwsh-symlink? ( !app-shells/pwsh ) +" + +QA_PREBUILT="*" + +src_install() { + local dest=opt/pwsh + dodir ${dest} + + local broken_symlinks=( libcrypto.so.1.0.0 libssl.so.1.0.0 ) + local symlink + for symlink in "${broken_symlinks[@]}" ; do + [[ -L ${symlink} ]] && { rm "${symlink}" || die ; } + done + + mv "${S}/"* "${ED}"/${dest}/ || die + fperms 0755 /${dest}/pwsh + + dosym ../../${dest}/pwsh /usr/bin/pwsh-bin + use pwsh-symlink && dosym ../../${dest}/pwsh /usr/bin/pwsh +} diff --git a/app-shells/pwsh-bin/pwsh-bin-7.2.1.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.2.1.ebuild deleted file mode 100644 index b3bb0706496a..000000000000 --- a/app-shells/pwsh-bin/pwsh-bin-7.2.1.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2021 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" -QA_PREBUILT="*" -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" -RDEPEND=" - app-crypt/mit-krb5:0/0 - dev-util/lttng-ust:0 - || ( dev-libs/openssl-compat:1.0.0 =dev-libs/openssl-1.0*:0/0 ) - sys-libs/pam:0/0 - sys-libs/zlib:0/1 - pwsh-symlink? ( !app-shells/pwsh ) -" -IUSE="+pwsh-symlink" -REQUIRED_USE="elibc_glibc" - -S=${WORKDIR} - -src_install() { - local dest=opt/pwsh broken_symlinks=(libcrypto.so.1.0.0 libssl.so.1.0.0) symlink - dodir "${dest}" - - for symlink in "${broken_symlinks[@]}"; do - [[ -L ${symlink} ]] && { rm "${symlink}" || die; } - done - - mv "${S}/"* "${ED}/${dest}/" || die - fperms 0755 "/${dest}/pwsh" - - dosym "../../${dest}/pwsh" "/usr/bin/pwsh-bin" - use pwsh-symlink && dosym "../../${dest}/pwsh" "/usr/bin/pwsh" -}