diff options
3 files changed, 46 insertions, 0 deletions
diff --git a/dev-perl/JavaScript-Minifier-XS/JavaScript-Minifier-XS-0.11-r1.ebuild b/dev-perl/JavaScript-Minifier-XS/JavaScript-Minifier-XS-0.11-r1.ebuild new file mode 100644 index 0000000..940f645 --- /dev/null +++ b/dev-perl/JavaScript-Minifier-XS/JavaScript-Minifier-XS-0.11-r1.ebuild @@ -0,0 +1,25 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# This ebuild generated by g-cpan 0.16.6 + +EAPI=5 + +MODULE_AUTHOR="GTERMARS" +MODULE_VERSION="0.11" + + +inherit perl-module + +DESCRIPTION="XS based JavaScript minifier" + +LICENSE="|| ( Artistic GPL-1 GPL-2 GPL-3 )" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="dev-lang/perl" + +src_prepare() { + epatch "${FILESDIR}/copyright-only-functions.patch" +} + diff --git a/dev-perl/JavaScript-Minifier-XS/Manifest b/dev-perl/JavaScript-Minifier-XS/Manifest index b70bdcb..fe11835 100644 --- a/dev-perl/JavaScript-Minifier-XS/Manifest +++ b/dev-perl/JavaScript-Minifier-XS/Manifest @@ -1,4 +1,6 @@ +AUX copyright-only-functions.patch 946 SHA256 dc388d1b3e0dd52676fc2c633bae5e082b9180abec7f73facfbe04ac50b166ad SHA512 e0e79668b69d2aee48945a82292c67712928c6174750e1a76df38ccaed9201db4ee6cf02ca8bd60afd45b813e9a520beef4b90927eb0dcb36d8c538b28b74004 WHIRLPOOL d2255323fc511269c98040c84591ccd8171b459393c9b54f0f9e58e8e4bb26e974f2653649fde8ea2389d96ffb3789fc39736c602ec8e171531d8eb682c2c687 DIST JavaScript-Minifier-XS-0.09.tar.gz 14509 SHA256 6eefcdf9a802787e728c01e4af33e97055054203c99a9c688eff6e0f1f7b56ca SHA512 b46e5e0fc70d6a28829f9e6878c0a8285b6b4ba680de85ffa6d567ca00d8aaced66d4e8bf800c96b923fb261095fe0722648ce930925bb55c47e549c8ef574c8 WHIRLPOOL 0f1cf1f3da4641500164a77f6e6ee8c74b2bf59866a0a1f4413a67f9252d181755260dc904c62cab1e6076941b6baf555afce9e9c050255a8a8d0346c4fd6ee5 DIST JavaScript-Minifier-XS-0.11.tar.gz 17517 SHA256 151212ca4bd50b2f5e1de6d01e3cb08460407bd75f27dfc8162f2f7927839eee SHA512 736294c898d7806eae509b0d0c14cfcbb783ac335fe6c08bed9c00a52643b3e6d0ade124735d7de8d2203bf404448889e0e84b3097e316d0ef444f1603cbbdef WHIRLPOOL fd0a991a770a8e3436da4de9b01c0c68b65e76a7a69c3d0d84627db4fe1f34233f8f68b5da1cac1b7bc601d28e8221f1c2bd60d5ed93a6591bd3c17a049331ea EBUILD JavaScript-Minifier-XS-0.09-r1.ebuild 447 SHA256 f677cc810132fb978f91978fe77640c0f7eae255fe8ec2d125c55e51092a3de7 SHA512 4be0f9a44e20f7d7181536b698745488bf00f141d269786413a642b2bd4d658cd89ebf39c8e2dede32fdea6c1c322fb20fd2c4cace04b5c9dc213b324b9d2c59 WHIRLPOOL 835d177c28136a42bc1a141b3c9825a0c122e43ce0afbb85d8444179d55f77af916d40cb2f3d3ee397cea306ad87242066fb11e56bc47a1b467f118825456070 +EBUILD JavaScript-Minifier-XS-0.11-r1.ebuild 450 SHA256 4ea7957ed1f838b17bda1b57c08e86c66657d25c1ba561da1e44180662b58905 SHA512 c346dd0eefe0bc8a2fb0cb3793afafac1064d2a0ba2673ae232655dd408a9be88c0f7c7eaeda1ccb022368d5c124c8e8f0bea43bc717fb1b213792b27d65a151 WHIRLPOOL 6563a403d1cdbc85aeae54af63b2d9b9286d17fd31cf1cf067c41139b350f558187634fbb89d7ab09adb835b5e7d65d254c2074de6edb5c9d3decb04cd1564b1 EBUILD JavaScript-Minifier-XS-0.11.ebuild 377 SHA256 35165cd67d19d5623d61b47c4ebbb2d3070d77773b7442bc763ea0f8f2095bf0 SHA512 22720df2cdf1725eef2a668240880c7270b5ba59b33fd3416f611ed724a8e5b51bc10ae5488f16fdd9a466f022075d8cb6d8f2b01d754597595d9ff1e0dfd02c WHIRLPOOL a366830bfef79baeeec631207a46bebf2f5a1b613c9e3ec0ce47ce7b1afd16d47de456c5a90002d8f78bfb9b34ab48bb767d01b97a0fb0e23a0ef776c42e213e diff --git a/dev-perl/JavaScript-Minifier-XS/files/copyright-only-functions.patch b/dev-perl/JavaScript-Minifier-XS/files/copyright-only-functions.patch new file mode 100644 index 0000000..762c39b --- /dev/null +++ b/dev-perl/JavaScript-Minifier-XS/files/copyright-only-functions.patch @@ -0,0 +1,19 @@ +--- XS.xs.orig 2015-11-10 21:30:27.751894189 +0000 ++++ XS.xs 2015-11-10 21:30:34.653899658 +0000 +@@ -554,6 +554,7 @@ + }; + int JsCanPrune(Node* node) { + Node* prev = node->prev; ++ Node* prev2 = prev ? prev->prev : NULL; + Node* next = node->next; + + switch (node->type) { +@@ -608,7 +609,7 @@ + if (nodeIsPREFIXSIGIL(node) && next && nodeIsWHITESPACE(next)) + return PRUNE_NEXT; + /* remove whitespace before "postfix" sigils */ +- if (nodeIsPOSTFIXSIGIL(node) && prev && nodeIsWHITESPACE(prev)) ++ if (nodeIsPOSTFIXSIGIL(node) && prev && nodeIsWHITESPACE(prev) && (!prev2 || prev2->type != NODE_LINECOMMENT)) + return PRUNE_PREVIOUS; + /* remove whitespace (but NOT endspace) after closing brackets */ + if (next && nodeIsWHITESPACE(next) && !nodeIsENDSPACE(next) && (nodeIsCHAR(node,')') || nodeIsCHAR(node,'}') || nodeIsCHAR(node,']'))) |