File: 0002-use-nodejs-and-node-modules-from-Debian.patch

package info (click to toggle)
python-mpld3 0.3git%2B20140910dfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,808 kB
  • ctags: 1,095
  • sloc: python: 3,595; makefile: 187
file content (36 lines) | stat: -rw-r--r-- 1,110 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From 8e7d3191c376a0bff5df3871a0249081d81e0389 Mon Sep 17 00:00:00 2001
From: "W. Martin Borgert" <debacle@debian.org>
Date: Mon, 12 Oct 2015 00:07:40 +0200
Subject: use nodejs and node modules from Debian

Origin: vendor
Last-Update: 2014-09-30
---
 Makefile | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Makefile b/Makefile
index 1bbe494..c7f3671 100644
--- a/Makefile
+++ b/Makefile
@@ -13,16 +13,16 @@ test:
 	@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: