Commit eaf99194 authored by Xavier Guimard's avatar Xavier Guimard

Install components using pkg-js-tools 0.8.2

parent 0018e13d
...@@ -12,7 +12,8 @@ Build-Depends: debhelper (>= 12~), ...@@ -12,7 +12,8 @@ Build-Depends: debhelper (>= 12~),
node-safe-buffer, node-safe-buffer,
node-semver (>= 5.1.0), node-semver (>= 5.1.0),
nodejs, nodejs,
nodeunit nodeunit,
pkg-js-tools (>= 0.8.2)
Standards-Version: 4.4.0 Standards-Version: 4.4.0
Vcs-Browser: https://salsa.debian.org/js-team/node-mongodb Vcs-Browser: https://salsa.debian.org/js-team/node-mongodb
Vcs-Git: https://salsa.debian.org/js-team/node-mongodb.git Vcs-Git: https://salsa.debian.org/js-team/node-mongodb.git
...@@ -25,9 +26,6 @@ Depends: ${misc:Depends}, ...@@ -25,9 +26,6 @@ Depends: ${misc:Depends},
node-resolve-from, node-resolve-from,
node-safe-buffer, node-safe-buffer,
node-semver (>= 5.1.0) node-semver (>= 5.1.0)
Provides: node-mongodb-core (= 3.1.9),
node-bson (= 1.1.0),
node-require-optional (= 1.0.1)
Description: official MongoDB driver for Node.js Description: official MongoDB driver for Node.js
MongoDB is a high-performance, open source, schema-free document-oriented MongoDB is a high-performance, open source, schema-free document-oriented
data store. data store.
......
bson/index.js usr/share/nodejs/bson/
bson/package.json usr/share/nodejs/bson/
bson/lib usr/share/nodejs/bson/
mongodb-core/index.js usr/share/nodejs/mongodb-core/
mongodb-core/package.json usr/share/nodejs/mongodb-core/
mongodb-core/lib usr/share/nodejs/mongodb-core/
requireoptional/index.js usr/share/nodejs/require_optional/
requireoptional/package.json usr/share/nodejs/require_optional/
index.js usr/share/nodejs/mongodb/ index.js usr/share/nodejs/mongodb/
package.json usr/share/nodejs/mongodb/ package.json usr/share/nodejs/mongodb/
lib usr/share/nodejs/mongodb/ lib usr/share/nodejs/mongodb/
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#export DH_VERBOSE=1 #export DH_VERBOSE=1
%: %:
dh $@ dh $@ --with nodejs
override_dh_auto_build: override_dh_auto_build:
for m in bson mongodb-core requireoptional; do \ for m in bson mongodb-core requireoptional; do \
...@@ -18,11 +18,9 @@ override_dh_install: ...@@ -18,11 +18,9 @@ override_dh_install:
override_dh_auto_test: override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
cd requireoptional && mkdir node_modules && cd node_modules && ln -s ../../bson && cd - && mocha cd requireoptional && mocha
rm -rf requireoptional/node_modules rm -rf requireoptional/node_modules
mkdir node_modules && cd node_modules && ln -s ../requireoptional require_optional && ln -s ../bson && ln -s ../mongodb-core
node index.js node index.js
rm -rf node_modules
endif endif
override_dh_installchangelogs: override_dh_installchangelogs:
......
#!/bin/sh #!/bin/sh
set -e set -e
nodejs -e "require('bson');" nodejs -e "require('mongodb/node_modules/bson');"
nodejs -e "require('mongodb');" nodejs -e "require('mongodb');"
...@@ -7,8 +7,8 @@ PDIR=`pwd` ...@@ -7,8 +7,8 @@ PDIR=`pwd`
cp -a requireoptional/test $TDIR cp -a requireoptional/test $TDIR
cd $TDIR cd $TDIR
ln -s /usr/share/nodejs/require_optional/index.js . ln -s /usr/share/nodejs/mongodb/node_modules/require_optional/index.js .
cp /usr/share/nodejs/require_optional/package.json . cp /usr/share/nodejs/mongodb/node_modules/require_optional/package.json .
# Disable one failing test (unknown reason) # Disable one failing test (unknown reason)
perl -i -pe 's#^#//# if($.==20)' test/require_optional_tests.js perl -i -pe 's#^#//# if($.==20)' test/require_optional_tests.js
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment