Description: use nodejs and node modules from Debian
Author: W. Martin Borgert <debacle@debian.org>
Origin: vendor
Last-Update: 2014-09-30
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/Makefile
+++ b/Makefile
@@ -13,16 +13,16 @@
 	@npm test
 
 src/version.js: mpld3/__about__.py
-	@node bin/version $(VERSION) > $@
+	@nodejs bin/version $(VERSION) > $@
 
-mpld3/js/mpld3.v$(VERSION).js: $(shell node_modules/.bin/smash --ignore-missing --list src/mpld3.js) package.json
+mpld3/js/mpld3.v$(VERSION).js: $(shell smash --ignore-missing --list src/mpld3.js) package.json
 	@rm -f $@
-	node_modules/.bin/smash src/mpld3.js | node_modules/.bin/uglifyjs - -b indent-level=2 -o $@
+	smash src/mpld3.js | uglifyjs -b --indent 2 -o $@
 	@chmod a-w $@
 
 mpld3/js/mpld3.v$(VERSION).min.js: mpld3/js/mpld3.v$(VERSION).js bin/uglify
 	@rm -f $@
-	bin/uglify $< > $@
+	uglifyjs $< > $@
 	@chmod a-w $@
 
 clean:
