[Pkg-javascript-commits] [leaflet-markercluster] 469/479: Use recent Uglifyjs: Drop patch 2002. Tighten to build-depend versioned on node-uglify.

Jonas Smedegaard dr at jones.dk
Thu Oct 16 16:01:09 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository leaflet-markercluster.

commit a2a14fea79f769823302dac68057cfdb4eb61913
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Thu Oct 16 17:24:21 2014 +0200

    Use recent Uglifyjs: Drop patch 2002. Tighten to build-depend versioned on node-uglify.
---
 debian/patches/2002_use_old_uglifyjs.patch | 37 ------------------------------
 debian/patches/series                      |  1 -
 debian/rules                               |  2 +-
 3 files changed, 1 insertion(+), 39 deletions(-)

diff --git a/debian/patches/2002_use_old_uglifyjs.patch b/debian/patches/2002_use_old_uglifyjs.patch
deleted file mode 100644
index a28ce28..0000000
--- a/debian/patches/2002_use_old_uglifyjs.patch
+++ /dev/null
@@ -1,37 +0,0 @@
-Description: adapt build script to support Uglifyjs 1.x.
-Author: Jonas Smedegaard <dr at jones.dk>
-Forwarded: not-needed
-Last-Update: 2014-01-28
-
---- a/build/build.js
-+++ b/build/build.js
-@@ -108,6 +108,17 @@
- 	return content;
- }
- 
-+function uglify(code) {
-+	var pro = UglifyJS.uglify;
-+
-+	var ast = UglifyJS.parser.parse(code);
-+	ast = pro.ast_mangle(ast, {mangle: true});
-+	ast = pro.ast_squeeze(ast);
-+	ast = pro.ast_squeeze_more(ast);
-+
-+	return pro.gen_code(ast) + ';';
-+};
-+
- exports.build = function (compsBase32, buildName) {
- 
- 	var files = getFiles(compsBase32);
-@@ -138,10 +149,7 @@
- 
- 	var path = pathPart + '.js',
- 	    oldCompressed = loadSilently(path),
--	    newCompressed = copy + UglifyJS.minify(newSrc, {
--	        warnings: true,
--	        fromString: true
--	    }).code,
-+	    newCompressed = copy + uglify(newSrc),
- 	    delta = getSizeDelta(newCompressed, oldCompressed);
- 
- 	console.log('\tCompressed size: ' + newCompressed.length + ' bytes (' + delta + ')');
diff --git a/debian/patches/series b/debian/patches/series
index 615cd91..490f4b3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1 @@
 2001-dont-run-jshint-checks.patch
-2002_use_old_uglifyjs.patch
diff --git a/debian/rules b/debian/rules
index 67488a8..67a76c7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -25,7 +25,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 pkg = libjs-leaflet-markercluster
 install-stem = leaflet
 
-CDBS_BUILD_DEPENDS += , node-uglify , node-jake
+CDBS_BUILD_DEPENDS +=, node-uglify (>= 2), node-jake
 CDBS_DEPENDS_$(pkg) = libjs-leaflet (>= 0.7.1)
 CDBS_RECOMMENDS_$(pkg) = javascript-common
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git



More information about the Pkg-javascript-commits mailing list