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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F19CD139335 for ; Sun, 27 Jun 2021 18:15:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1E0B6E08F9; Sun, 27 Jun 2021 18:15:06 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7B24FE08F9 for ; Sun, 27 Jun 2021 18:15:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 225B8335CC1 for ; Sun, 27 Jun 2021 18:15:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D15B97AC for ; Sun, 27 Jun 2021 18:15:02 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1624817699.c85c5ac0b722d174bf80171beb8eaf3c16045f56.zmedico@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/Manifest app-shells/pwsh-bin/metadata.xml app-shells/pwsh-bin/pwsh-bin-7.1.3.ebuild X-VCS-Directories: app-shells/pwsh-bin/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: c85c5ac0b722d174bf80171beb8eaf3c16045f56 X-VCS-Branch: master Date: Sun, 27 Jun 2021 18:15:02 +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: fa3ba38d-b10b-4048-a211-a96f8709cc87 X-Archives-Hash: a0869e9815b53904b99445764123e516 commit: c85c5ac0b722d174bf80171beb8eaf3c16045f56 Author: Zac Medico gentoo org> AuthorDate: Sun Jun 27 17:33:07 2021 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Jun 27 18:14:59 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c85c5ac0 app-shells/pwsh-bin: Import from dotnet repo + 7.1.3 version bump Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico gentoo.org> app-shells/pwsh-bin/Manifest | 3 +++ app-shells/pwsh-bin/metadata.xml | 18 +++++++++++++ app-shells/pwsh-bin/pwsh-bin-7.1.3.ebuild | 43 +++++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+) diff --git a/app-shells/pwsh-bin/Manifest b/app-shells/pwsh-bin/Manifest new file mode 100644 index 00000000000..85bd78acf7c --- /dev/null +++ b/app-shells/pwsh-bin/Manifest @@ -0,0 +1,3 @@ +DIST powershell-7.1.3-linux-arm32.tar.gz 64921375 BLAKE2B d4d5eb64bbb88d1e52a10fb95e36005774f3cfb8ed3383702872c0c5fd02b6057615149d00d2410a3a1f7f2f85e99a7329fdb74dbba08c080747905abae66d3f SHA512 3aa77f8f93bf61a8aac9f46c701bcc24822474c42527b4948c7187841d9a94adeb9159e8a35ea156e40d1a7626c813e3364311af87ff2717889cb9544b4ff958 +DIST powershell-7.1.3-linux-arm64.tar.gz 63765497 BLAKE2B e42164e80a7576547bca5304181ccf31f43fed971bc02403e0adc400234523d5ee4529367488ad3526594e43d8fbd21b2a804536ea2b21073d8e174280b96dd4 SHA512 8fba0cba90a2f8fa073e6a40d69617388b65650e7eea1756962ecb75a14df06dd19d0107d32d94ed53ad9ab79199fbc04b53038303c24f30c286c2f9fcced6b5 +DIST powershell-7.1.3-linux-x64.tar.gz 68289291 BLAKE2B 6d3f1f61b632728ef0868a82b09f9c33f364b4c4c5869b2d700cdd051109d52f73bfba787be70b6acf53c227eb035786d47ec994a50db8e0a43e17b002a5d478 SHA512 7a33c01f8a9de33205c08f7c6833272bb3f33052b8020c0a794e47ec6f6ec971dc41251e4eb7e8d21382099ea127f363242d0d93f4d31aaa6ea87ce955ed0718 diff --git a/app-shells/pwsh-bin/metadata.xml b/app-shells/pwsh-bin/metadata.xml new file mode 100644 index 00000000000..a5e3c68d397 --- /dev/null +++ b/app-shells/pwsh-bin/metadata.xml @@ -0,0 +1,18 @@ + + + + + dotnet@gentoo.org + + + https://github.com/PowerShell/PowerShell/blob/master/CHANGELOG/7.1.md + https://powershell.org/free-resources/ + https://github.com/PowerShell/PowerShell/issues + PowerShell/PowerShell + + + + Install a pwsh symlink that points to pwsh-bin. + + + diff --git a/app-shells/pwsh-bin/pwsh-bin-7.1.3.ebuild b/app-shells/pwsh-bin/pwsh-bin-7.1.3.ebuild new file mode 100644 index 00000000000..b3bb0706496 --- /dev/null +++ b/app-shells/pwsh-bin/pwsh-bin-7.1.3.ebuild @@ -0,0 +1,43 @@ +# 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" +}