Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/typescript/
Date: Thu, 22 Sep 2022 13:18:32
Message-Id: 1663852707.d2db2a52517cd974644c04fea991131457661f1d.xgqt@gentoo
1 commit: d2db2a52517cd974644c04fea991131457661f1d
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Thu Sep 22 13:17:28 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 22 13:18:27 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2db2a52
7
8 dev-lang/typescript: update to EAPI 8; misc tweaks
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 ...ipt-4.8.3.ebuild => typescript-4.5.4-r1.ebuild} | 38 ++++++++++-----------
13 dev-lang/typescript/typescript-4.5.4.ebuild | 39 ----------------------
14 ...ipt-4.8.3.ebuild => typescript-4.8.3-r1.ebuild} | 38 ++++++++++-----------
15 3 files changed, 38 insertions(+), 77 deletions(-)
16
17 diff --git a/dev-lang/typescript/typescript-4.8.3.ebuild b/dev-lang/typescript/typescript-4.5.4-r1.ebuild
18 similarity index 50%
19 copy from dev-lang/typescript/typescript-4.8.3.ebuild
20 copy to dev-lang/typescript/typescript-4.5.4-r1.ebuild
21 index 647f4a120aee..02196457057b 100644
22 --- a/dev-lang/typescript/typescript-4.8.3.ebuild
23 +++ b/dev-lang/typescript/typescript-4.5.4-r1.ebuild
24 @@ -1,39 +1,39 @@
25 # Copyright 2021-2022 Gentoo Authors
26 # Distributed under the terms of the GNU General Public License v2
27
28 -EAPI=7
29 +EAPI=8
30
31 DESCRIPTION="Superset of JavaScript with optional static typing, classes and interfaces"
32 -HOMEPAGE="https://www.typescriptlang.org"
33 +HOMEPAGE="https://www.typescriptlang.org/
34 + https://github.com/microsoft/TypeScript/"
35 SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
36 +S="${WORKDIR}"/package
37
38 LICENSE="Apache-2.0"
39 SLOT="0"
40 KEYWORDS="~amd64 ~arm64 ~ppc64"
41
42 -DEPEND=""
43 RDEPEND="net-libs/nodejs"
44 BDEPEND=">=net-libs/nodejs-16[npm]"
45
46 -S="${WORKDIR}/package"
47 -
48 src_compile() {
49 - # nothing to compile here
50 + # Skip, nothing to compile here.
51 :
52 }
53
54 src_install() {
55 - npm \
56 - --audit false \
57 - --color false \
58 - --foreground-scripts \
59 - --global \
60 - --offline \
61 - --omit dev \
62 - --prefix "${ED}"/usr \
63 - --progress false \
64 - --verbose \
65 - install "${DISTDIR}/${P}".tgz || die "npm install failed"
66 -
67 - einstalldocs
68 + local myopts=(
69 + --audit false
70 + --color false
71 + --foreground-scripts
72 + --global
73 + --offline
74 + --omit dev
75 + --prefix "${ED}"/usr
76 + --progress false
77 + --verbose
78 + )
79 + npm ${myopts[@]} install "${DISTDIR}"/${P}.tgz || die "npm install failed"
80 +
81 + dodoc *.md *.txt
82 }
83
84 diff --git a/dev-lang/typescript/typescript-4.5.4.ebuild b/dev-lang/typescript/typescript-4.5.4.ebuild
85 deleted file mode 100644
86 index dcbc71b38d89..000000000000
87 --- a/dev-lang/typescript/typescript-4.5.4.ebuild
88 +++ /dev/null
89 @@ -1,39 +0,0 @@
90 -# Copyright 2021 Gentoo Authors
91 -# Distributed under the terms of the GNU General Public License v2
92 -
93 -EAPI=7
94 -
95 -DESCRIPTION="Superset of JavaScript with optional static typing, classes and interfaces"
96 -HOMEPAGE="https://www.typescriptlang.org"
97 -SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
98 -
99 -LICENSE="Apache-2.0"
100 -SLOT="0"
101 -KEYWORDS="~amd64 ~arm64 ~ppc64"
102 -
103 -DEPEND=""
104 -RDEPEND="net-libs/nodejs"
105 -BDEPEND=">=net-libs/nodejs-16[npm]"
106 -
107 -S="${WORKDIR}/package"
108 -
109 -src_compile() {
110 - # nothing to compile here
111 - :
112 -}
113 -
114 -src_install() {
115 - npm \
116 - --audit false \
117 - --color false \
118 - --foreground-scripts \
119 - --global \
120 - --offline \
121 - --omit dev \
122 - --prefix "${ED}"/usr \
123 - --progress false \
124 - --verbose \
125 - install "${DISTDIR}/${P}".tgz || die "npm install failed"
126 -
127 - einstalldocs
128 -}
129
130 diff --git a/dev-lang/typescript/typescript-4.8.3.ebuild b/dev-lang/typescript/typescript-4.8.3-r1.ebuild
131 similarity index 50%
132 rename from dev-lang/typescript/typescript-4.8.3.ebuild
133 rename to dev-lang/typescript/typescript-4.8.3-r1.ebuild
134 index 647f4a120aee..02196457057b 100644
135 --- a/dev-lang/typescript/typescript-4.8.3.ebuild
136 +++ b/dev-lang/typescript/typescript-4.8.3-r1.ebuild
137 @@ -1,39 +1,39 @@
138 # Copyright 2021-2022 Gentoo Authors
139 # Distributed under the terms of the GNU General Public License v2
140
141 -EAPI=7
142 +EAPI=8
143
144 DESCRIPTION="Superset of JavaScript with optional static typing, classes and interfaces"
145 -HOMEPAGE="https://www.typescriptlang.org"
146 +HOMEPAGE="https://www.typescriptlang.org/
147 + https://github.com/microsoft/TypeScript/"
148 SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz"
149 +S="${WORKDIR}"/package
150
151 LICENSE="Apache-2.0"
152 SLOT="0"
153 KEYWORDS="~amd64 ~arm64 ~ppc64"
154
155 -DEPEND=""
156 RDEPEND="net-libs/nodejs"
157 BDEPEND=">=net-libs/nodejs-16[npm]"
158
159 -S="${WORKDIR}/package"
160 -
161 src_compile() {
162 - # nothing to compile here
163 + # Skip, nothing to compile here.
164 :
165 }
166
167 src_install() {
168 - npm \
169 - --audit false \
170 - --color false \
171 - --foreground-scripts \
172 - --global \
173 - --offline \
174 - --omit dev \
175 - --prefix "${ED}"/usr \
176 - --progress false \
177 - --verbose \
178 - install "${DISTDIR}/${P}".tgz || die "npm install failed"
179 -
180 - einstalldocs
181 + local myopts=(
182 + --audit false
183 + --color false
184 + --foreground-scripts
185 + --global
186 + --offline
187 + --omit dev
188 + --prefix "${ED}"/usr
189 + --progress false
190 + --verbose
191 + )
192 + npm ${myopts[@]} install "${DISTDIR}"/${P}.tgz || die "npm install failed"
193 +
194 + dodoc *.md *.txt
195 }