[Pkg-javascript-commits] [node-function-bind] 05/06: Finalize node-has
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Mar 11 22:05:14 UTC 2018
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-function-bind.
commit 5b8efb4cfd66121abb8b54b1042df762a01dd3f4
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Sat Mar 10 00:14:53 2018 +0100
Finalize node-has
---
debian/{ => components}/docs | 0
debian/components/module-has/control | 32 ++++++++++++++++++++++++++++++++
debian/components/module-has/copyright | 4 ++++
debian/components/module-has/docs | 1 +
debian/components/module-has/install | 2 ++
debian/components/module-has/version | 1 +
debian/components/module-has/watch | 5 +++++
debian/control | 5 +++++
debian/docs | 1 +
debian/install | 2 ++
debian/rules | 32 +++++++++++++++++++++++++++-----
debian/tests/control | 3 +++
debian/tests/require | 0
debian/tests/require-has | 3 +++
14 files changed, 86 insertions(+), 5 deletions(-)
diff --git a/debian/docs b/debian/components/docs
similarity index 100%
copy from debian/docs
copy to debian/components/docs
diff --git a/debian/components/module-has/control b/debian/components/module-has/control
new file mode 100644
index 0000000..01153b8
--- /dev/null
+++ b/debian/components/module-has/control
@@ -0,0 +1,32 @@
+Source: node-has
+Section: javascript
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: FIX_ME debian author
+Build-Depends:
+ debhelper (>= 9)
+ , dh-buildinfo
+ , nodejs
+Standards-Version: 4.1.1
+Homepage: https://github.com/tarruda/has
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-has.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-has.git
+
+Package: node-has
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+ , node-function-bind (>= 1.0.2)
+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,
+ “Object.prototype.hasOwnProperty.call shortcut”.
+ .
+ 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.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/components/module-has/copyright b/debian/components/module-has/copyright
new file mode 100644
index 0000000..41939f6
--- /dev/null
+++ b/debian/components/module-has/copyright
@@ -0,0 +1,4 @@
+Files: module-has/*
+Copyright: 2018 Thiago de Arruda <tpadilha84 at gmail.com>
+License: Expat
+
diff --git a/debian/components/module-has/docs b/debian/components/module-has/docs
new file mode 100644
index 0000000..c2401f7
--- /dev/null
+++ b/debian/components/module-has/docs
@@ -0,0 +1 @@
+README.mkd
diff --git a/debian/components/module-has/install b/debian/components/module-has/install
new file mode 100644
index 0000000..0a744dc
--- /dev/null
+++ b/debian/components/module-has/install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/has/
+src usr/lib/nodejs/has/
diff --git a/debian/components/module-has/version b/debian/components/module-has/version
new file mode 100644
index 0000000..7dea76e
--- /dev/null
+++ b/debian/components/module-has/version
@@ -0,0 +1 @@
+1.0.1
diff --git a/debian/components/module-has/watch b/debian/components/module-has/watch
new file mode 100644
index 0000000..60908c1
--- /dev/null
+++ b/debian/components/module-has/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-has-$1.tar.gz/ \
+ https://github.com/tarruda/has/tags .*/archive/v?([\d\.]+).tar.gz
diff --git a/debian/control b/debian/control
index 6c1feb3..c9b1f80 100644
--- a/debian/control
+++ b/debian/control
@@ -8,6 +8,8 @@ Build-Depends: debhelper (>= 11)
, dpkg-dev (>= 1.17.14)
, node-tap (>= 10.7.2) <!nocheck>
, node-tape (>= 4.6.3) <!nocheck>
+ , chai (>= 1.7.2) <!nocheck>
+ , mocha (>= 1.20) <!nocheck>
Standards-Version: 4.1.1
Homepage: https://github.com/Raynos/function-bind
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-function-bind.git
@@ -23,4 +25,7 @@ Description: Implementation of Function.prototype.bind
Function-bind can be used for unit tests, and is useful for webframeworks
that do not have the function-bind.
.
+ This package includes also the node-has (has) package,
+ Object.prototype.hasOwnProperty.call shortcut.
+ .
Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/docs b/debian/docs
index b43bf86..65c5346 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,2 @@
README.md
+module-has/README.mkd
diff --git a/debian/install b/debian/install
index 2fa15b1..5121d67 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,4 @@
package.json usr/lib/nodejs/function-bind/
*.js usr/lib/nodejs/function-bind/
+module-has/package.json usr/lib/nodejs/has/
+module-has/src usr/lib/nodejs/has/
diff --git a/debian/rules b/debian/rules
index 0dacd20..994d27e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,21 +15,26 @@ define space =
endef
COMPONENTS=$(subst $(newline),$(space),$(shell set -e;cd debian/components && (find . -type d -printf "%f\n" | sed '/^[.]$$/d' )))
-COMPONENTS_FILES=$(foreach component,$(COMPONENTS),debian/components/$(component)/$(1))
+COMPONENTS_FILES_C=$(foreach component,$(COMPONENTS),./debian/components/$(component)/$(1))
COPYRIGHT_COMPONENTS_FILES=$(call COMPONENTS_FILES,copyright)
+DOCS_COMPONENTS_FILES=$(call COMPONENTS_FILES,docs)
INSTALL_COMPONENTS_FILES=$(call COMPONENTS_FILES,install)
MODULES_COMPONENTS=$(foreach component,$(COMPONENTS),$(shell echo $(component) | sed 's/^module[-]//g'))
-
-override_dh_auto_test:
+override_dh_auto_test: module-has/node_modules
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
tap -R spec test/*.js
+ cd module-has && mocha
else
@echo '**********************************************************'
@echo 'Skip test suite '
@echo '**********************************************************'
endif
+module-has/node_modules:
+ mkdir module-has/node_modules
+ ln -s ../.. module-has/node_modules/function-bind
+
debian/copyright: debian/components/copyright $(COPYRIGHT_COMPONENTS_FILES) debian/components/copyright.license
cat debian/components/copyright $(COPYRIGHT_COMPONENTS_FILES) debian/components/copyright.license > debian/copyright
@@ -40,6 +45,23 @@ debian/install: debian/components/install $(INSTALL_COMPONENTS_FILES)
sed -e "/^./ s,^,$$c/,g" < debian/components/$$c/install >> debian/install; \
done;
-maint_rule: debian/copyright debian/install
+debian/docs: debian/components/docs $(DOCS_COMPONENTS_FILES)
+ cp -f debian/components/docs debian/docs
+ set -e; \
+ for c in $(COMPONENTS); do \
+ if test -f debian/components/$$c/docs; then \
+ sed -e "/^./ s,^,$$c/,g" < debian/components/$$c/docs >> debian/docs; \
+ else \
+ true; \
+ fi \
+ done;
+
+override_dh_clean:
+ dh_clean
+ rm -rf module-has/node_modules
+
+maint_rule: debian/copyright debian/install debian/docs
+ $(info $(COMPONENTS))
$(info $(COPYRIGHT_COMPONENTS_FILES))
- $(info run maint rules)
+ $(info $(COPYRIGHT_COMPONENTS_DOCS))
+ $(info run maint rules)
\ No newline at end of file
diff --git a/debian/tests/control b/debian/tests/control
index 023c745..d3818d0 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,6 +1,9 @@
Tests: require
Depends: node-function-bind, nodejs (>= 6)
+Tests: require
+Depends: node-has, nodejs (>= 6)
+
Tests: runtestsuite
Depends: node-function-bind, nodejs (>= 6)
, node-tap (>= 10.7.2)
diff --git a/debian/tests/require b/debian/tests/require
old mode 100644
new mode 100755
diff --git a/debian/tests/require-has b/debian/tests/require-has
new file mode 100755
index 0000000..1aadcdc
--- /dev/null
+++ b/debian/tests/require-has
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+node -e "require('has');"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-function-bind.git
More information about the Pkg-javascript-commits
mailing list