1 |
commit: 220267aff07a79aa16a220233edfc4d738be93b8 |
2 |
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 18 22:59:26 2022 +0000 |
4 |
Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 18 22:59:26 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=220267af |
7 |
|
8 |
dev-util/uglifyjs: Add missing 3.17.0 ebuild |
9 |
|
10 |
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org> |
11 |
|
12 |
dev-util/uglifyjs/uglifyjs-3.17.0.ebuild | 40 ++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 40 insertions(+) |
14 |
|
15 |
diff --git a/dev-util/uglifyjs/uglifyjs-3.17.0.ebuild b/dev-util/uglifyjs/uglifyjs-3.17.0.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..1a44c1a32320 |
18 |
--- /dev/null |
19 |
+++ b/dev-util/uglifyjs/uglifyjs-3.17.0.ebuild |
20 |
@@ -0,0 +1,40 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+MY_PN="UglifyJS" |
27 |
+DESCRIPTION="JavaScript parser, minifier, compressor and beautifier toolkit" |
28 |
+HOMEPAGE="https://lisperator.net/uglifyjs/" |
29 |
+SRC_URI="https://github.com/mishoo/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
30 |
+ |
31 |
+LICENSE="BSD-2" |
32 |
+SLOT="0" |
33 |
+KEYWORDS="~amd64 ~x86" |
34 |
+ |
35 |
+BDEPEND="net-libs/nodejs[npm]" |
36 |
+RDEPEND="net-libs/nodejs" |
37 |
+ |
38 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
39 |
+ |
40 |
+NPM_FLAGS=( |
41 |
+ --audit false |
42 |
+ --color false |
43 |
+ --foreground-scripts |
44 |
+ --global |
45 |
+ --offline |
46 |
+ --progress false |
47 |
+ --save false |
48 |
+ --verbose |
49 |
+) |
50 |
+ |
51 |
+src_compile() { |
52 |
+ npm "${NPM_FLAGS[@]}" pack || die |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ npm "${NPM_FLAGS[@]}" \ |
57 |
+ --prefix "${ED}"/usr \ |
58 |
+ install \ |
59 |
+ uglify-js-${PV}.tgz || die |
60 |
+} |