[Pkg-javascript-commits] [node-lexical-scope] 80/83: Finalize debian package

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:45:53 UTC 2017


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

rouca pushed a commit to branch master
in repository node-lexical-scope.

commit 97fc8266caa2b35a703bfd5b533df4649f3b4d27
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Thu Nov 30 16:58:00 2017 +0100

    Finalize debian package
---
 debian/changelog          |  6 +++---
 debian/control            | 27 ++++++++++++++-------------
 debian/copyright          |  2 +-
 debian/rules              | 12 ++++++++++++
 debian/tests/control      |  6 +++++-
 debian/tests/require      |  2 +-
 debian/tests/runtestsuite | 16 ++++++++++++++++
 debian/watch              |  2 +-
 8 files changed, 53 insertions(+), 20 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index bcf9388..023c166 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
-node-lexical-scope (1.2.0-1) UNRELEASED; urgency=low
+node-lexical-scope (1.2.0-1) unstable; urgency=low
 
-  * Initial release (Closes: #nnnn)
+  * Initial release (Closes: #883195)
 
- -- FIX_ME debian author  Thu, 30 Nov 2017 16:23:10 +0100
+ -- Bastien Roucariès <rouca at debian.org>  Thu, 30 Nov 2017 16:37:38 +0100
 
diff --git a/debian/control b/debian/control
index 20addaf..ff3047b 100644
--- a/debian/control
+++ b/debian/control
@@ -2,11 +2,15 @@ Source: node-lexical-scope
 Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
-Uploaders: FIX_ME debian author
+Uploaders: Bastien Roucariès <rouca at debian.org>
 Build-Depends:
- debhelper (>= 9)
+ debhelper (>= 10)
  , dh-buildinfo
- , nodejs
+ , nodejs (>= 6) <!nocheck>
+ , node-astw (>= 2.0.0) <!nocheck>
+ , node-brfs (>= 0.0.3) <!nocheck>
+ , node-tape (>= 2.4.1) <!nocheck>
+ , node-tap (>= 10) <!nocheck>
 Standards-Version: 4.1.1
 Homepage: https://github.com/substack/lexical-scope
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-lexical-scope.git
@@ -18,15 +22,12 @@ Depends:
  ${misc:Depends}
  , nodejs
  , node-astw (>= 2.0.0)
-Description: FIX_ME write the Debian package description
- Write the short and long descriptions for the Debian package as
- explained in the Developer's Reference, §6.2.1 – §6.2.3.
- .
- You can start with the short upstream package description,
- “detect global and local lexical identifiers from javascript source code”.
+Description: detect global and local lexical identifiers in javascript
+ This package detects wether  an indentifier is global scope
+ or lexical scope.
  .
- Be aware that most upstream package descriptions are not written to
- conform with Debian package guidelines. You need to explain the role
- of this package for a Debian audience.
+ This a dependency of Browserify. 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.
+ Node.js is an event-based server-side JavaScript engine.
\ No newline at end of file
diff --git a/debian/copyright b/debian/copyright
index 2dae872..caed590 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -8,7 +8,7 @@ Copyright: 2017 James Halliday <mail at substack.net> (http://substack.net)
 License: Expat
 
 Files: debian/*
-Copyright: 2017 FIX_ME debian author
+Copyright: 2017 Bastien Roucariès <rouca at debian.org>
 License: Expat
 
 License: Expat
diff --git a/debian/rules b/debian/rules
index de57af0..b7d6008 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,4 +12,16 @@
 #override_dh_auto_test:
 
 
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+	tap -R spec test/*.js
+else
+	@echo '**********************************************************'
+	@echo 'Skip test suite                                           '
+	@echo '**********************************************************'
+endif
 
+override_dh_installexamples:
+	dh_installexamples
+	find $(CURDIR)/debian/node-lexical-scope/usr/share/doc/node-lexical-scope/examples/ -name '*.js' -exec \
+                sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('lexical-scope'),g" {} \;
diff --git a/debian/tests/control b/debian/tests/control
index dce93c8..570d40f 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,6 @@
 Tests: require
-Depends: node-lexical-scope
+Depends: node-lexical-scope, nodejs (>= 6)
+
+Tests: runtestsuite
+Depends: node-lexical-scope, nodejs (>= 6), 
+ node-tap (>= 10), node-tape (>= 2.4.1), node-brfs (>= 0.0.3)
diff --git a/debian/tests/require b/debian/tests/require
old mode 100644
new mode 100755
index 1337ed4..d70a12f
--- a/debian/tests/require
+++ b/debian/tests/require
@@ -1,3 +1,3 @@
 #!/bin/sh
 set -e
-nodejs -e "require('lexical-scope');"
+node -e "require('lexical-scope');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..bc97a4d
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,16 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='lexical-scope'
+SEDCMD="s,require\s*[(]\s*'[.][.],require('$PACKAGE,g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test $tmpdir/test
+find test/ -maxdepth 1 -name '*.js' -print0 | \
+    xargs -0 -n1  \
+	  sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+
+cd $tmpdir 
+tap -R spec test/*.js
diff --git a/debian/watch b/debian/watch
index 7b2ff8d..40e1506 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,4 +1,4 @@
-version=3
+version=4
 opts=\
 dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
 filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-lexical-scope-$1.tar.gz/ \

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



More information about the Pkg-javascript-commits mailing list