[Pkg-javascript-commits] [node-browser-pack] 05/07: First debianization

Bastien Roucariès rouca at moszumanska.debian.org
Thu Nov 9 12:25:00 UTC 2017


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

rouca pushed a commit to tag debian-6.0.2+ds-1
in repository node-browser-pack.

commit b5897a873891439634783732b376e9941e83d9c1
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Sep 15 11:59:24 2017 +0200

    First debianization
---
 debian/changelog |  6 +++---
 debian/control   | 17 ++++++++++++++++-
 debian/examples  |  1 +
 debian/manpages  |  1 +
 debian/rules     | 23 ++++++++++++++++++++++-
 5 files changed, 43 insertions(+), 5 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 76dbe2f..8fb8e6a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
-node-browser-pack (6.0.2+ds-1) UNRELEASED; urgency=low
+node-browser-pack (6.0.2+ds-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #860330)
 
- -- Bastien Roucariès <rouca at debian.org>  Sat, 15 Apr 2017 16:16:10 +0200
+ -- Bastien Roucariès <rouca at debian.org>  Fri, 15 Sep 2017 11:38:36 +0200
 
diff --git a/debian/control b/debian/control
index 1ee4cd3..8d5b041 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,18 @@ Uploaders: Bastien Roucariès <rouca at debian.org>
 Build-Depends:
  debhelper (>= 10)
  , dh-buildinfo
+ , dpkg-dev (>= 1.17.14)
  , nodejs (>= 6)
+ , node-through2 (>= 2.0.0) <!nocheck>
+ , node-umd (>= 3.0.0) <!nocheck>
+ , node-combine-source-map (>= 0.7.1) <!nocheck>
+ , node-defined (>= 1.0.0) <!nocheck>
+ , node-jsonstream (>= 1.0.3) <!nocheck>
+ , node-tap (>= 2.2.0) <!nocheck>
+ , node-uglify (>= 1.3.5)
+ , node-concat-stream (>= 1.5.1) <!nocheck>
+ , node-convert-source-map (>= 1.1.0) <!nocheck>
+ , node-parse-base64vlq-mappings (>= 0.1.1) <!nocheck>
 Standards-Version: 4.1.0
 Homepage: https://github.com/substack/browser-pack
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-browser-pack.git
@@ -23,6 +34,10 @@ Depends:
  , node-defined (>= 1.0.0)
  , node-jsonstream (>= 1.0.3)
 Description: pack node-style source files from a json stream into a browser bundle
- FIX_ME long description
+ This module takes a JSON files as input describing a set of javascript files
+ and outputs a javascript function descripting source code and dependencies.
+ .
+ This modules is part of Browserify is a JavaScript tool that allows developers
+ to write Node.js-style modules that compile for use in the browser.
  .
  Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..0cb63f3
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+example/*.*
\ No newline at end of file
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..6831376
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/browser-pack.1
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index d68bdf8..59478ca 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,14 +7,35 @@
 %:
 	dh $@
 
+# this is quite fragile here --ie8 is needed
 _prelude.js: prelude.js
 	uglifyjs -c side_effects=false --ie8 --verbose --passes=5 -m --source-map -o _prelude.js -- prelude.js
 	sed -i 's/;[[:space:]]*$$//g' _prelude.js
 
 override_dh_auto_build: _prelude.js
 
-#override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+override_dh_auto_test:
+	tap -R spec test/*.js
+else
+override_dh_auto_test:
+	@echo '**********************************************************'
+	@echo 'Skip test                  '
+	@echo '**********************************************************'
+endif
+
+override_dh_fixperms:
+	dh_fixperms
+	chmod a+x debian/node-browser-pack/usr/lib/nodejs/browser-pack/bin/cmd.js
+
+example/output.js: _prelude.js
+	./bin/cmd.js < example/input.json > example/output.js
+
+override_dh_installexamples: example/output.js
+	dh_installexamples
+
 
 override_dh_auto_clean:
 	dh_auto_clean
 	rm -f _prelude.js
+	rm -f example/*.js

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



More information about the Pkg-javascript-commits mailing list