[Pkg-javascript-commits] [node-sprintf-js] 05/08: Some changes
matthew pideil
mpideil-guest at moszumanska.debian.org
Mon Mar 16 12:19:07 UTC 2015
This is an automated email from the git hooks/post-receive script.
mpideil-guest pushed a commit to branch master
in repository node-sprintf-js.
commit ee49cc327222e64f5746330d8555ed616b7705f0
Author: Matthew Pideil <matthewp_debian at teledetection.fr>
Date: Mon Mar 16 11:18:48 2015 +0100
Some changes
---
debian/control | 13 ++++++++++++-
debian/install | 1 -
debian/{docs => libjs-sprintf-js.docs} | 0
debian/libjs-sprintf-js.install | 2 ++
debian/{docs => node-sprintf-js.docs} | 0
debian/node-sprintf-js.install | 2 ++
debian/rules | 28 +++++++++++++++++++++++++---
7 files changed, 41 insertions(+), 5 deletions(-)
diff --git a/debian/control b/debian/control
index e859e28..7b9ede3 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends:
debhelper (>= 8)
, dh-buildinfo
, nodejs
+ , node-uglify | yui-compressor
Standards-Version: 3.9.6
Homepage: https://github.com/alexei/sprintf.js
Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-sprintf-js.git
@@ -19,6 +20,16 @@ Depends:
${misc:Depends}
, nodejs
Description: JavaScript sprintf implementation
- FIX_ME long description
+ sprintf.js is a complete open source JavaScript sprintf implementation
+ for the browser and node.js.
.
Node.js is an event-based server-side JavaScript engine.
+
+Package: libjs-sprintf-js
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: JavaScript sprintf implementation
+ sprintf.js is a complete open source JavaScript sprintf implementation
+ for the browser and node.js.
+
diff --git a/debian/install b/debian/install
deleted file mode 100644
index 88c8ff7..0000000
--- a/debian/install
+++ /dev/null
@@ -1 +0,0 @@
-package.json usr/lib/nodejs/sprintf-js/
diff --git a/debian/docs b/debian/libjs-sprintf-js.docs
similarity index 100%
copy from debian/docs
copy to debian/libjs-sprintf-js.docs
diff --git a/debian/libjs-sprintf-js.install b/debian/libjs-sprintf-js.install
new file mode 100644
index 0000000..ae25e35
--- /dev/null
+++ b/debian/libjs-sprintf-js.install
@@ -0,0 +1,2 @@
+debian/build/sprintf.js usr/share/javascript/
+debian/build/sprintf.min.js usr/share/javascript/
diff --git a/debian/docs b/debian/node-sprintf-js.docs
similarity index 100%
rename from debian/docs
rename to debian/node-sprintf-js.docs
diff --git a/debian/node-sprintf-js.install b/debian/node-sprintf-js.install
new file mode 100644
index 0000000..fdf72b8
--- /dev/null
+++ b/debian/node-sprintf-js.install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/sprintf-js/
+debian/build/sprintf.js usr/lib/nodejs/sprintf-js/
diff --git a/debian/rules b/debian/rules
old mode 100755
new mode 100644
index de57af0..0019a56
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,34 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+
%:
- dh $@
+ dh $@
-#override_dh_auto_build:
+override_dh_auto_clean:
+ rm -rf debian/build
-#override_dh_auto_test:
+override_dh_auto_build:
+ dh_auto_build
+ if [ ! -d debian/build ]; \
+ then mkdir debian/build; \
+ fi; \
+ for _FILE in src/*.js ; \
+ do \
+ cp $${_FILE} debian/build/; \
+ $(js-compressor) -o debian/build/$$(basename $${_FILE} .js).min.js $${_FILE}; \
+ done
+# Uscan will read debian/watch, grab the correct version, repack and leave
+# it in the current directory
+get-orig-source:
+ uscan --no-conf --force-download --rename --repack --download-current-version --destdir=.
+override_dh_auto_test:
+ nodejs test/test.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-sprintf-js.git
More information about the Pkg-javascript-commits
mailing list