1 |
commit: 0b896cd6c8f7e38f3c7e4c18f4a133cf6f591bed |
2 |
Author: Randall T. Vasquez <ran.dall <AT> icloud <DOT> com> |
3 |
AuthorDate: Thu Aug 4 18:33:48 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 5 01:52:36 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b896cd6 |
7 |
|
8 |
dev-util/sh: add live build |
9 |
|
10 |
Signed-off-by: Randall T. Vasquez <ran.dall <AT> icloud.com> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
dev-util/sh/sh-3.5.1.ebuild | 14 ++++++++++---- |
14 |
dev-util/sh/{sh-3.5.1.ebuild => sh-9999.ebuild} | 14 ++++++++++---- |
15 |
2 files changed, 20 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/dev-util/sh/sh-3.5.1.ebuild b/dev-util/sh/sh-3.5.1.ebuild |
18 |
index 7da56df5263e..ea48ab9e9b7d 100644 |
19 |
--- a/dev-util/sh/sh-3.5.1.ebuild |
20 |
+++ b/dev-util/sh/sh-3.5.1.ebuild |
21 |
@@ -7,12 +7,19 @@ inherit go-module |
22 |
|
23 |
DESCRIPTION="A shell parser, formatter, and interpreter with bash support" |
24 |
HOMEPAGE="https://github.com/mvdan/sh" |
25 |
-SRC_URI="https://github.com/mvdan/sh/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
26 |
-SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
27 |
+ |
28 |
+if [[ ${PV} == *9999 ]]; then |
29 |
+ EGIT_REPO_URI="https://github.com/mvdan/sh.git" |
30 |
+ inherit git-r3 |
31 |
+else |
32 |
+ SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+ SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
34 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
35 |
+ S="${WORKDIR}/${PN//fmt/}-${PV}" |
36 |
+fi |
37 |
|
38 |
LICENSE="Apache-2.0 BSD" |
39 |
SLOT="0" |
40 |
-KEYWORDS="~amd64" |
41 |
IUSE="+man" |
42 |
|
43 |
BDEPEND="man? ( app-text/scdoc )" |
44 |
@@ -44,5 +51,4 @@ src_install() { |
45 |
if use man; then |
46 |
doman shfmt.1 |
47 |
fi |
48 |
- |
49 |
} |
50 |
|
51 |
diff --git a/dev-util/sh/sh-3.5.1.ebuild b/dev-util/sh/sh-9999.ebuild |
52 |
similarity index 69% |
53 |
copy from dev-util/sh/sh-3.5.1.ebuild |
54 |
copy to dev-util/sh/sh-9999.ebuild |
55 |
index 7da56df5263e..ea48ab9e9b7d 100644 |
56 |
--- a/dev-util/sh/sh-3.5.1.ebuild |
57 |
+++ b/dev-util/sh/sh-9999.ebuild |
58 |
@@ -7,12 +7,19 @@ inherit go-module |
59 |
|
60 |
DESCRIPTION="A shell parser, formatter, and interpreter with bash support" |
61 |
HOMEPAGE="https://github.com/mvdan/sh" |
62 |
-SRC_URI="https://github.com/mvdan/sh/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
63 |
-SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
64 |
+ |
65 |
+if [[ ${PV} == *9999 ]]; then |
66 |
+ EGIT_REPO_URI="https://github.com/mvdan/sh.git" |
67 |
+ inherit git-r3 |
68 |
+else |
69 |
+ SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
70 |
+ SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
71 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
72 |
+ S="${WORKDIR}/${PN//fmt/}-${PV}" |
73 |
+fi |
74 |
|
75 |
LICENSE="Apache-2.0 BSD" |
76 |
SLOT="0" |
77 |
-KEYWORDS="~amd64" |
78 |
IUSE="+man" |
79 |
|
80 |
BDEPEND="man? ( app-text/scdoc )" |
81 |
@@ -44,5 +51,4 @@ src_install() { |
82 |
if use man; then |
83 |
doman shfmt.1 |
84 |
fi |
85 |
- |
86 |
} |