[Pkg-javascript-commits] [node-syntax-error] 46/47: Improve debian package
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Aug 25 19:30:04 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-syntax-error.
commit a732f0d7a97b493d8c78d682022373d30648c895
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sat Aug 19 00:04:13 2017 +0200
Improve debian package
---
debian/changelog | 4 ++--
debian/compat | 2 +-
debian/control | 17 ++++++++++++-----
debian/examples | 1 +
debian/rules | 23 +++++++++++++++++++----
debian/watch | 2 +-
6 files changed, 36 insertions(+), 13 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 1d5659e..4b5f712 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
-node-syntax-error (1.3.0-1) UNRELEASED; urgency=low
+node-syntax-error (1.3.0-1) unstable; urgency=low
- * Initial release (Closes: #nnnn)
+ * Initial release (Closes: #872592)
-- Bastien Roucariès <rouca at debian.org> Fri, 18 Aug 2017 23:43:06 +0200
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index 0504724..6d6feb4 100644
--- a/debian/control
+++ b/debian/control
@@ -4,10 +4,13 @@ Priority: optional
Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
Uploaders: Bastien Roucariès <rouca at debian.org>
Build-Depends:
- debhelper (>= 9)
+ debhelper (>= 10)
, dh-buildinfo
, nodejs
-Standards-Version: 3.9.8
+ , dpkg-dev (>= 1.17.14)
+ , node-acorn (>= 4.0.3) <!nocheck>
+ , node-tap (>= 1.1.0)
+Standards-Version: 4.0.1
Homepage: https://github.com/substack/node-syntax-error
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-syntax-error.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-syntax-error.git
@@ -17,8 +20,12 @@ Architecture: all
Depends:
${misc:Depends}
, nodejs
- , acorn (>= 4.0.3)
-Description: detect and report syntax errors in source code strings
- FIX_ME long description
+ , node-acorn (>= 4.0.3)
+Description: detect and report syntax errors for javascript source
+ This module allows ones to emulate in pure javascript the behavior of
+ Node.js for detecting syntax error.
+ .
+ This module detects and prints a friendly error report about exactly
+ where the syntax error is in a javascript file.
.
Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..700b101
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+example/*.js
diff --git a/debian/rules b/debian/rules
index de57af0..8659026 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,9 +7,24 @@
%:
dh $@
-#override_dh_auto_build:
-
-#override_dh_auto_test:
-
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ tap test/*.js
+else
+ @echo '**********************************************************'
+ @echo 'Skip test suite '
+ @echo '**********************************************************'
+endif
+override_dh_installexamples:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ dh_installexamples
+ # patch example
+ find $(CURDIR)/debian/node-syntax-error/usr/share/doc/node-syntax-error/examples/ -name '*.js' -exec \
+ sed -i "s,require\s*[(]\s*'[.][.][^']*'\s*[)],require('syntax-error'),g" {} \;
+else
+ @echo '**********************************************************'
+ @echo 'Skip example '
+ @echo '**********************************************************'
+endif
diff --git a/debian/watch b/debian/watch
index 405bfbd..7399547 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-syntax-error-$1.tar.gz/ \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-syntax-error.git
More information about the Pkg-javascript-commits
mailing list