diff options
Diffstat (limited to 'dev-util/uglifyjs')
-rw-r--r-- | dev-util/uglifyjs/Manifest | 3 | ||||
-rw-r--r-- | dev-util/uglifyjs/metadata.xml | 11 | ||||
-rw-r--r-- | dev-util/uglifyjs/uglifyjs-3.14.1.ebuild | 40 |
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-util/uglifyjs/Manifest b/dev-util/uglifyjs/Manifest new file mode 100644 index 000000000000..486ee19951da --- /dev/null +++ b/dev-util/uglifyjs/Manifest @@ -0,0 +1,3 @@ +DIST uglifyjs-3.14.1.tar.gz 484510 BLAKE2B 4386bd5469f2a8877fb8b47957c8d5128726293919e741d0f0401074e37efaffbdbbe6cb7217122222cdddd431cd632ce69f7b934bbb4c91e47a1a5076166137 SHA512 e297e9744f017ae27ddab8cb264d5d7594141dd48ce65b932ed56b70618047f91ecad008dfa5a37251a048fdf7e95b5340ad8710f67db9c45373dc8b9150fad1 +EBUILD uglifyjs-3.14.1.ebuild 776 BLAKE2B d1ab3cca46fcd56f33af01636cb74dfc6d08323982a1a1443a7e3af6692d70a5ad9be4cb1506c935da5d250431707ee6ebeec6b3bea9820811cdf9abba3b312e SHA512 9e16abbd07e58895790de78149b18675e79bbd04d3ab6ad295f7e41a08336d5c396739ff7d9318f8fb58804267814c0aead92694f667ff0210339bd5f13a6f4a +MISC metadata.xml 327 BLAKE2B 82daf83d58a38b486042207c1f242dd94cc47df1d61ef6cd613db856bee2bcbd7024f6dcecba4eb08a51ead0cfa99613cda304f3b99082743a12ef809c146e43 SHA512 6fe019fea117b03b123f4e3f6afb06251bb1e24fc4e916abfcb64b3a5c24855396069b5e43a0b7a892f0667cf6d6eb91aa56078e674dcb12034fa740297ad360 diff --git a/dev-util/uglifyjs/metadata.xml b/dev-util/uglifyjs/metadata.xml new file mode 100644 index 000000000000..c0857c78749d --- /dev/null +++ b/dev-util/uglifyjs/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>chewi@gentoo.org</email> + <name>James Le Cuirot</name> + </maintainer> + <upstream> + <remote-id type="github">mishoo/UglifyJS</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-util/uglifyjs/uglifyjs-3.14.1.ebuild b/dev-util/uglifyjs/uglifyjs-3.14.1.ebuild new file mode 100644 index 000000000000..66d57eae5391 --- /dev/null +++ b/dev-util/uglifyjs/uglifyjs-3.14.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PN="UglifyJS" +DESCRIPTION="JavaScript parser, minifier, compressor and beautifier toolkit" +HOMEPAGE="https://lisperator.net/uglifyjs/" +SRC_URI="https://github.com/mishoo/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND="net-libs/nodejs[npm]" +RDEPEND="net-libs/nodejs" + +S="${WORKDIR}/${MY_PN}-${PV}" + +NPM_FLAGS=( + --audit false + --color false + --foreground-scripts + --global + --offline + --progress false + --save false + --verbose +) + +src_compile() { + npm "${NPM_FLAGS[@]}" pack || die +} + +src_install() { + npm "${NPM_FLAGS[@]}" \ + --prefix "${ED}"/usr \ + install \ + uglify-js-${PV}.tgz || die +} |