[Pkg-javascript-commits] [node-deps-sort] 76/79: Improve debianization
Bastien Roucariès
rouca at moszumanska.debian.org
Wed Sep 6 09:41:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-deps-sort.
commit 6a37759860133f1007f2781f6b07e7223bc95f9c
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sun Aug 27 16:01:30 2017 +0200
Improve debianization
---
debian/control | 8 +++++++-
debian/copyright | 5 ++++-
debian/examples | 1 +
debian/install | 1 +
debian/rules | 17 +++++++++++++++--
5 files changed, 28 insertions(+), 4 deletions(-)
diff --git a/debian/control b/debian/control
index 352692b..f5c768d 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,13 @@ Uploaders: Bastien Roucariès <rouca at debian.org>
Build-Depends:
debhelper (>= 10)
, dh-buildinfo
- , nodejs
+ , dpkg-dev (>= 1.17.14)
+ , nodejs (>= 6)
+ , node-through2 (>= 2.0.0) <!nocheck>
+ , node-subarg (>= 1.0.0) <!nocheck>
+ , node-jsonstream (>= 1.0.3) <!nocheck>
+ , node-shasum (>= 1.0.0) <!nocheck>
+ , node-tap (>= 2.2) <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/substack/deps-sort
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-deps-sort.git
diff --git a/debian/copyright b/debian/copyright
index 6965a99..7706da3 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -4,7 +4,10 @@ Upstream-Contact: https://github.com/substack/deps-sort/issues
Source: https://github.com/substack/deps-sort
Files: *
-Copyright: 2017 James Halliday <mail at substack.net> (http://substack.net)
+Copyright: 2013-2017 ,James Halliday <mail at substack.net> (http://substack.net)
+ 2015-2017, Andres Suarez <zertosh at gmail.com>
+ 2014, Maximilian Antoni <mail at maxantoni.de>
+ 2014, Ben Ng <me at benng.me>
License: Expat
Files: debian/*
diff --git a/debian/examples b/debian/examples
new file mode 100644
index 0000000..e5a7b8d
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+example/*
\ No newline at end of file
diff --git a/debian/install b/debian/install
index cf423c1..b9369a6 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,3 @@
index.js usr/lib/nodejs/deps-sort/
package.json usr/lib/nodejs/deps-sort/
+bin usr/lib/nodejs/deps-sort/
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index de57af0..936217e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,20 @@
#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_fixperms:
+ dh_fixperms
+ chmod a+x debian/node-deps-sort/usr/lib/nodejs/deps-sort/bin/cmd.js
+override_dh_installexamples:
+ dh_installexamples
+ find debian/node-deps-sort/usr/share/doc/node-deps-sort/examples -name '*.js' \
+ -exec sed -i "s,require('../'),require('deps-sort'),g" {} \;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-deps-sort.git
More information about the Pkg-javascript-commits
mailing list