[Pkg-javascript-commits] [uglifyjs] 12/18: Enable testsuite. Build-depend (not only depend) on node-async and node-optimist.

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 20:30:01 UTC 2014


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

js pushed a commit to branch master-experimental
in repository uglifyjs.

commit a28dddbee6f5db8b51debd188e97629d55050835
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Fri May 2 13:49:20 2014 +0200

    Enable testsuite. Build-depend (not only depend) on node-async and node-optimist.
---
 debian/rules | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 8ab6301..54bfccb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,9 @@ debian/stamp-build:
 	cp tools/node.js lib/index.js
 	ln -s . lib/uglify-js
 	NODE_PATH=lib help2man --no-info bin/uglifyjs > debian/uglifyjs.1
+	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),\
+		,\
+		NODE_PATH=lib nodejs test/run-tests.js)
 	touch $@
 common-post-build-indep::
 	rm -f lib/uglify-js
@@ -22,7 +25,11 @@ clean::
 	rm -f debian/stamp-build lib/index.js
 	rm -f debian/stamp-build lib/index.js debian/uglifyjs.1
 
-CDBS_DEPENDS_$(pkg) = nodejs, node-async (>= 0.2.6), node-optimist
+# Needed by upstream build process and (always) at runtime
+deps = node-async (>= 0.2.6), node-optimist
+
+CDBS_BUILD_DEPENDS +=, $(deps)
+CDBS_DEPENDS_$(pkg) = nodejs, $(deps)
 # TODO: recommend node-source-map when available in Debian
 CDBS_SUGGESTS_$(pkg) = node-source-map, node-uglify-to-browserify
 

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



More information about the Pkg-javascript-commits mailing list