logo

overlay

My (experimental) gentoo overlay
commit: 1a982a692e7771e295baec923415d79e741c8457
parent: ca743e4c52495a369211b8105d8a586f52327da1
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed, 13 Jun 2018 21:18:31 +0200

dev-javascript/uglify-js: New package

Diffstat:

Adev-javascript/uglify-js/Manifest1+
Adev-javascript/uglify-js/uglify-js-3.4.0.ebuild29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/dev-javascript/uglify-js/Manifest b/dev-javascript/uglify-js/Manifest @@ -0,0 +1 @@ +DIST uglify-js-3.4.0.tgz 142064 BLAKE2B 32d10c1175740f49716bd60002e6595a9bf565afe51f8547af6e0928478cba1dda9ae50dd53aedad6a8778f5441b34adf5cac050124e52ced611c629284febf7 SHA512 25c7f99da3e45f7ad53d2429467f559ba46be7bd88d604ed47d2e7a8a8178e63a07d843f412d15d96452b45479dc1763e76d0ceba68266ab7dbb361782d1ab25 diff --git a/dev-javascript/uglify-js/uglify-js-3.4.0.ebuild b/dev-javascript/uglify-js/uglify-js-3.4.0.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="JavaScript parser, mangler/compressor and beautifier toolkit" +HOMEPAGE="http://lisperator.net/uglifyjs" +SRC_URI="https://registry.npmjs.org/${PN}/-/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="net-libs/nodejs[npm]" +RDEPEND="${DEPEND}" + +S="${WORKDIR}" + +src_unpack() { + :; +} + +src_install() { + npm install -g --user root --prefix "${D}/usr" "${DISTDIR}/${P}.tgz" || die "npm install failed" + + # fix npm derp + find "${D}/usr" -type d -exec chmod 755 '{}' + +}