From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1425306-garchives=archives.gentoo.org@lists.gentoo.org> 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 C0D0D158094 for <garchives@archives.gentoo.org>; Fri, 5 Aug 2022 03:19:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 41EE4E0DBA; Fri, 5 Aug 2022 03:19:52 +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 E65B4E0D7A for <gentoo-commits@lists.gentoo.org>; Fri, 5 Aug 2022 03:19:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 D1E743411BA for <gentoo-commits@lists.gentoo.org>; Fri, 5 Aug 2022 03:19:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1F1B9551 for <gentoo-commits@lists.gentoo.org>; Fri, 5 Aug 2022 03:19:49 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1659664356.0b896cd6c8f7e38f3c7e4c18f4a133cf6f591bed.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/sh/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/sh/sh-3.5.1.ebuild dev-util/sh/sh-9999.ebuild X-VCS-Directories: dev-util/sh/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 0b896cd6c8f7e38f3c7e4c18f4a133cf6f591bed X-VCS-Branch: master Date: Fri, 5 Aug 2022 03:19:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f8e4fc23-0c2e-46a7-8a72-4f567ea9d684 X-Archives-Hash: c20e0ac2263380c77fe4f673a454ae86 commit: 0b896cd6c8f7e38f3c7e4c18f4a133cf6f591bed Author: Randall T. Vasquez <ran.dall <AT> icloud <DOT> com> AuthorDate: Thu Aug 4 18:33:48 2022 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Aug 5 01:52:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b896cd6 dev-util/sh: add live build Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com> Signed-off-by: Sam James <sam <AT> gentoo.org> dev-util/sh/sh-3.5.1.ebuild | 14 ++++++++++---- dev-util/sh/{sh-3.5.1.ebuild => sh-9999.ebuild} | 14 ++++++++++---- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/dev-util/sh/sh-3.5.1.ebuild b/dev-util/sh/sh-3.5.1.ebuild index 7da56df5263e..ea48ab9e9b7d 100644 --- a/dev-util/sh/sh-3.5.1.ebuild +++ b/dev-util/sh/sh-3.5.1.ebuild @@ -7,12 +7,19 @@ inherit go-module DESCRIPTION="A shell parser, formatter, and interpreter with bash support" HOMEPAGE="https://github.com/mvdan/sh" -SRC_URI="https://github.com/mvdan/sh/archive/v${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/mvdan/sh.git" + inherit git-r3 +else + SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + KEYWORDS="~amd64 ~arm64 ~x86" + S="${WORKDIR}/${PN//fmt/}-${PV}" +fi LICENSE="Apache-2.0 BSD" SLOT="0" -KEYWORDS="~amd64" IUSE="+man" BDEPEND="man? ( app-text/scdoc )" @@ -44,5 +51,4 @@ src_install() { if use man; then doman shfmt.1 fi - } diff --git a/dev-util/sh/sh-3.5.1.ebuild b/dev-util/sh/sh-9999.ebuild similarity index 69% copy from dev-util/sh/sh-3.5.1.ebuild copy to dev-util/sh/sh-9999.ebuild index 7da56df5263e..ea48ab9e9b7d 100644 --- a/dev-util/sh/sh-3.5.1.ebuild +++ b/dev-util/sh/sh-9999.ebuild @@ -7,12 +7,19 @@ inherit go-module DESCRIPTION="A shell parser, formatter, and interpreter with bash support" HOMEPAGE="https://github.com/mvdan/sh" -SRC_URI="https://github.com/mvdan/sh/archive/v${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +if [[ ${PV} == *9999 ]]; then + EGIT_REPO_URI="https://github.com/mvdan/sh.git" + inherit git-r3 +else + SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + KEYWORDS="~amd64 ~arm64 ~x86" + S="${WORKDIR}/${PN//fmt/}-${PV}" +fi LICENSE="Apache-2.0 BSD" SLOT="0" -KEYWORDS="~amd64" IUSE="+man" BDEPEND="man? ( app-text/scdoc )" @@ -44,5 +51,4 @@ src_install() { if use man; then doman shfmt.1 fi - }