[Pkg-javascript-commits] [node-mocha] 02/02: initial debian commit

Leo Iannacone l3on-guest at moszumanska.debian.org
Thu May 8 18:32:53 UTC 2014


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

l3on-guest pushed a commit to branch master
in repository node-mocha.

commit 51df4b780c0a6f6f2494424190c1c023ec3061a3
Author: Leo Iannacone <l3on at ubuntu.com>
Date:   Thu May 8 20:32:38 2014 +0200

    initial debian commit
---
 debian/README.Source                          |  11 +++
 debian/changelog                              |   6 ++
 debian/compat                                 |   1 +
 debian/control                                |  62 +++++++++++++++
 debian/copyright                              |  34 +++++++++
 debian/libjs-mocha.docs                       |   1 +
 debian/libjs-mocha.install                    |   3 +
 debian/mocha.1                                | 104 ++++++++++++++++++++++++++
 debian/mocha.dirs                             |   1 +
 debian/mocha.docs                             |   1 +
 debian/mocha.install                          |   5 ++
 debian/mocha.links                            |   1 +
 debian/mocha.manpages                         |   1 +
 debian/patches/0001_makefile.patch            |  37 +++++++++
 debian/patches/0002_fix_node_shebang.patch    |  25 +++++++
 debian/patches/0003_images_in_usr_share.patch |  46 ++++++++++++
 debian/patches/series                         |   3 +
 debian/rules                                  |  17 +++++
 debian/source/format                          |   1 +
 debian/watch                                  |   3 +
 20 files changed, 363 insertions(+)

diff --git a/debian/README.Source b/debian/README.Source
new file mode 100644
index 0000000..1cb95a9
--- /dev/null
+++ b/debian/README.Source
@@ -0,0 +1,11 @@
+ASK BEFORE.
+
+jscoverage is going to be removed from Debian as 
+discontinued developing.
+
+Should consider to replace it with:
+ https://github.com/fishbar/jscoverage
+
+which seems to be the tool originally used by upstream.
+
+ -- Leo Iannacone <l3on at ubuntu.com>  Thu, 08 May 2014 20:31:11 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..067f7d2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-mocha (1.18.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #747416)
+
+ -- Leo Iannacone <l3on at ubuntu.com>  Thu, 08 May 2014 10:17:48 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..ebf4577
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: node-mocha
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Leo Iannacone <l3on at ubuntu.com>
+Build-Depends:
+ debhelper (>= 8)
+ , dh-buildinfo
+ , nodejs
+ , node-should
+ , jscoverage
+ , node-diff
+ , node-growl
+ , node-mkdirp
+ , node-commander
+ , node-debug
+ , node-diff
+ , node-glob
+ , uglifyjs
+Standards-Version: 3.9.5
+Homepage: http://visionmedia.github.io/mocha
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-mocha.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-mocha.git
+
+Package: mocha
+Provides: node-mocha
+Architecture: all
+Suggests: node-jscoverage
+Depends:
+ ${misc:Depends}
+ , nodejs
+ , node-growl
+ , node-jade
+ , node-mkdirp
+ , node-commander
+ , node-debug
+ , node-diff
+ , node-glob
+Description: simple, flexible, fun test framework - Node.js module
+ Mocha is a feature-rich JavaScript test framework running
+ on Node.js and browser, making asynchronous testing
+ simple and fun.
+ .
+ Mocha tests run serially, allowing for flexible and accurate
+ reporting, while mapping uncaught exceptions to the correct
+ test cases.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
+Package: libjs-mocha
+Architecture: all
+Recommends: javascript-common
+Depends:
+ ${misc:Depends}
+Description: simple, flexible, fun test framework - JavaScript library
+ Mocha is a feature-rich JavaScript test framework running
+ on Node.js and browser, making asynchronous testing
+ simple and fun.
+ .
+ Mocha tests run serially, allowing for flexible and accurate
+ reporting, while mapping uncaught exceptions to the correct
+ test cases.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c4c3d57
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: mocha
+Upstream-Contact: https://github.com/visionmedia/mocha/issues
+Source: https://github.com/visionmedia/mocha
+
+Files: *
+Copyright: 2011-2014 TJ Holowaychuk <tj at vision-media.ca>
+License: Expat
+
+Files: debian/*
+Copyright: 2014 Leo Iannacone <l3on at ubuntu.com>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
diff --git a/debian/libjs-mocha.docs b/debian/libjs-mocha.docs
new file mode 120000
index 0000000..9dc14f6
--- /dev/null
+++ b/debian/libjs-mocha.docs
@@ -0,0 +1 @@
+mocha.docs
\ No newline at end of file
diff --git a/debian/libjs-mocha.install b/debian/libjs-mocha.install
new file mode 100644
index 0000000..28cdeba
--- /dev/null
+++ b/debian/libjs-mocha.install
@@ -0,0 +1,3 @@
+mocha.js usr/share/javascript/mocha/
+mocha.min.js usr/share/javascript/mocha/
+mocha.css usr/share/javascript/mocha/
diff --git a/debian/mocha.1 b/debian/mocha.1
new file mode 100644
index 0000000..40b5804
--- /dev/null
+++ b/debian/mocha.1
@@ -0,0 +1,104 @@
+.TH MOCHA "1" "mocha" "User Commands"
+.SH NAME
+mocha \- simple, flexible, fun test framework
+.SH SYNOPSYS
+Usage: mocha [debug] [options] [files]
+.SH DESCRIPTION
+Mocha is a feature-rich JavaScript test framework running
+on Node.js and browser, making asynchronous testing
+simple and fun. Mocha tests run serially, allowing for flexible and accurate
+reporting, while mapping uncaught exceptions to the correct
+test cases.
+.IP
+.SH COMMANDS
+.TP
+\fBinit\fR <path>
+initialize a client\-side mocha setup at <path>
+.IP
+.SH OPTIONS
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+output usage information
+.TP
+\fB\-V\fR, \fB\-\-version\fR
+output the version number
+.TP
+\fB\-r\fR, \fB\-\-require\fR <name>
+require the given module
+.TP
+\fB\-R\fR, \fB\-\-reporter\fR <name>
+specify the reporter to use
+.TP
+\fB\-u\fR, \fB\-\-ui\fR <name>
+specify user\-interface (bdd|tdd|exports)
+.TP
+\fB\-g\fR, \fB\-\-grep\fR <pattern>
+only run tests matching <pattern>
+.TP
+\fB\-i\fR, \fB\-\-invert\fR
+inverts \fB\-\-grep\fR matches
+.TP
+\fB\-t\fR, \fB\-\-timeout\fR <ms>
+set test\-case timeout in milliseconds [2000]
+.TP
+\fB\-s\fR, \fB\-\-slow\fR <ms>
+"slow" test threshold in milliseconds [75]
+.TP
+\fB\-w\fR, \fB\-\-watch\fR
+watch files for changes
+.TP
+\fB\-c\fR, \fB\-\-colors\fR
+force enabling of colors
+.TP
+\fB\-C\fR, \fB\-\-no\-colors\fR
+force disabling of colors
+.TP
+\fB\-G\fR, \fB\-\-growl\fR
+enable growl notification support
+.TP
+\fB\-d\fR, \fB\-\-debug\fR
+enable node's debugger, synonym for node \fB\-\-debug\fR
+.TP
+\fB\-b\fR, \fB\-\-bail\fR
+bail after first test failure
+.TP
+\fB\-A\fR, \fB\-\-async\-only\fR
+force all tests to take a callback (async)
+.TP
+\fB\-S\fR, \fB\-\-sort\fR
+sort test files
+.TP
+\fB\-\-recursive\fR
+include sub directories
+.TP
+\fB\-\-debug\-brk\fR
+enable node's debugger breaking on the first line
+.TP
+\fB\-\-globals\fR <names>
+allow the given comma\-delimited global [names]
+.TP
+\fB\-\-check\-leaks\fR
+check for global variable leaks
+.TP
+\fB\-\-interfaces\fR
+display available interfaces
+.TP
+\fB\-\-reporters\fR
+display available reporters
+.TP
+\fB\-\-compilers\fR <ext>:<module>,...
+use the given module(s) to compile files
+.TP
+\fB\-\-inline\-diffs\fR
+display actual/expected differences inline within each string
+.TP
+\fB\-\-no\-exit\fR
+require a clean shutdown of the event loop: mocha will not call process.exit
+.SH "SEE ALSO"
+More info about mocha can be found in /usr/share/doc/node-mocha/Readme.md.gz
+
+.SH AUTHOR
+This man page was created by Leo Iannacone <l3on at ubuntu.com>
+
+License   GPLv3+:   GNU  GPL  version  3  or  later
+   <http://gnu.org/licenses/gpl.html>.
diff --git a/debian/mocha.dirs b/debian/mocha.dirs
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/mocha.dirs
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/mocha.docs b/debian/mocha.docs
new file mode 100644
index 0000000..ad1245d
--- /dev/null
+++ b/debian/mocha.docs
@@ -0,0 +1 @@
+Readme.md
diff --git a/debian/mocha.install b/debian/mocha.install
new file mode 100644
index 0000000..75c688c
--- /dev/null
+++ b/debian/mocha.install
@@ -0,0 +1,5 @@
+package.json usr/lib/nodejs/mocha/
+bin usr/lib/nodejs/mocha/
+lib usr/lib/nodejs/mocha/
+index.js usr/lib/nodejs/mocha/
+images usr/share/javascript/mocha/
diff --git a/debian/mocha.links b/debian/mocha.links
new file mode 100644
index 0000000..d271cbe
--- /dev/null
+++ b/debian/mocha.links
@@ -0,0 +1 @@
+usr/lib/nodejs/mocha/bin/mocha usr/bin/mocha
diff --git a/debian/mocha.manpages b/debian/mocha.manpages
new file mode 100644
index 0000000..3dd1a9b
--- /dev/null
+++ b/debian/mocha.manpages
@@ -0,0 +1 @@
+debian/mocha.1
diff --git a/debian/patches/0001_makefile.patch b/debian/patches/0001_makefile.patch
new file mode 100644
index 0000000..dff284e
--- /dev/null
+++ b/debian/patches/0001_makefile.patch
@@ -0,0 +1,37 @@
+Description: Fix Makefile issues:
+ * Do not copy diff.js from local module installation,
+   use to node-diff module file instead
+ * Fix node binary call to nodejs
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+
+---
+ Makefile |    8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+--- a/Makefile
++++ b/Makefile
+@@ -6,11 +6,11 @@
+
+ all: mocha.js
+
+-lib/browser/diff.js: node_modules/diff/diff.js
+-	cp node_modules/diff/diff.js lib/browser/diff.js
++lib/browser/diff.js: /usr/lib/nodejs/diff.js
++	ln -s /usr/lib/nodejs/diff.js lib/browser/diff.js
+
+ mocha.js: $(SRC) $(SUPPORT) lib/browser/diff.js
+-	@node support/compile $(SRC)
++	@nodejs support/compile $(SRC)
+ 	@cat \
+ 	  support/head.js \
+ 	  _mocha.js \
+@@ -35,7 +35,7 @@
+ test-all: test-bdd test-tdd test-qunit test-exports test-unit test-grep test-jsapi test-compilers test-sort test-glob test-requires test-reporters test-only
+
+ test-jsapi:
+-	@node test/jsapi
++	@nodejs test/jsapi
+
+ test-unit:
+ 	@./bin/mocha \
diff --git a/debian/patches/0002_fix_node_shebang.patch b/debian/patches/0002_fix_node_shebang.patch
new file mode 100644
index 0000000..935a56a
--- /dev/null
+++ b/debian/patches/0002_fix_node_shebang.patch
@@ -0,0 +1,25 @@
+Description: Fix nodejs shebang
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+
+---
+ bin/_mocha |    2 +-
+ bin/mocha  |    2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+--- a/bin/_mocha
++++ b/bin/_mocha
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/env nodejs
+
+ /**
+  * Module dependencies.
+--- a/bin/mocha
++++ b/bin/mocha
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env node
++#!/usr/bin/env nodejs
+
+ /**
+  * This tiny wrapper file checks for known node flags and appends them
diff --git a/debian/patches/0003_images_in_usr_share.patch b/debian/patches/0003_images_in_usr_share.patch
new file mode 100644
index 0000000..54d2ea1
--- /dev/null
+++ b/debian/patches/0003_images_in_usr_share.patch
@@ -0,0 +1,46 @@
+Description: Install images in usr/share directory
+ Fix lintian warning: image-file-in-usr-lib
+ More info: http://lintian.debian.org/tags/image-file-in-usr-lib.html
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+---
+ bin/_mocha   |    4 ++--
+ lib/mocha.js |    2 +-
+ mocha.js     |    2 +-
+ 3 files changed, 4 insertions(+), 4 deletions(-)
+
+--- a/bin/_mocha
++++ b/bin/_mocha
+@@ -52,8 +52,8 @@
+  */
+
+ var images = {
+-    fail: __dirname + '/../images/error.png'
+-  , pass: __dirname + '/../images/ok.png'
++    fail: '/usr/share/javascript/mocha/images/error.png'
++  , pass: '/usr/share/javascript/mocha/images/ok.png'
+ };
+
+ // options
+--- a/lib/mocha.js
++++ b/lib/mocha.js
+@@ -40,7 +40,7 @@
+  */
+
+ function image(name) {
+-  return __dirname + '/../images/' + name + '.png';
++  return '/usr/share/javascript/mocha/images/' + name + '.png';
+ }
+
+ /**
+--- a/mocha.js
++++ b/mocha.js
+@@ -1404,7 +1404,7 @@
+  */
+
+ function image(name) {
+-  return __dirname + '/../images/' + name + '.png';
++  return '/usr/share/javascript/mocha/images/' + name + '.png';
+ }
+
+ /**
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6c8e993
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+0001_makefile.patch
+0002_fix_node_shebang.patch
+0003_images_in_usr_share.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7838adf
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_auto_build:
+	dh_auto_build
+	uglifyjs -o mocha.min.js mocha.js
+
+#override_dh_auto_test:
+
+override_dh_installchangelogs:
+	dh_installchangelogs -k History.md
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..29e62b6
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-mocha-$1.tar.gz/ \
+ https://github.com/visionmedia/mocha/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list