Description: use packaged nodejs binaries
 .
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2013-12-28

---

--- d3-3.3.13.orig/Makefile
+++ d3-3.3.13/Makefile
@@ -24,14 +24,14 @@ src/time/format-localized.js: bin/locale
 src/start.js: package.json bin/start
 	bin/start > $@
 
-d3.js: $(shell node_modules/.bin/smash --ignore-missing --list src/d3.js) package.json
+d3.js: $(shell smash --ignore-missing --list src/d3.js) package.json
 	@rm -f $@
-	node_modules/.bin/smash src/d3.js | node_modules/.bin/uglifyjs - -b indent-level=2 -o $@
+	smash src/d3.js | uglifyjs -b --indent 2 -o $@
 	@chmod a-w $@
 
 d3.min.js: d3.js bin/uglify
 	@rm -f $@
-	bin/uglify $< > $@
+	uglifyjs $< > $@
 
 %.json: bin/% package.json
 	@rm -f $@
--- d3-3.3.13.orig/package.json
+++ d3-3.3.13/package.json
@@ -56,7 +56,7 @@
     "vows": "0.7.0"
   },
   "scripts": {
-    "test": "node_modules/.bin/vows"
+    "test": "vows"
   },
   "licenses": [
     {
