Commit ee529f73 authored by Gordon Ball's avatar Gordon Ball

Update packaging

parent f5d610c8
zeromq.js (4.0.0-1) UNRELEASED; urgency=medium zeromq.js (4.6.0-1) unstable; urgency=medium
* Initial release. (Closes: #XXXXXX) * Initial release. (Closes: #XXXXXX)
-- Gordon Ball <gordon@chronitis.net> Tue, 06 Dec 2016 12:51:50 +0100 -- Gordon Ball <gordon@chronitis.net> Tue, 13 Mar 2018 13:24:20 +0000
...@@ -6,15 +6,16 @@ Uploaders: Gordon Ball <gordon@chronitis.net> ...@@ -6,15 +6,16 @@ Uploaders: Gordon Ball <gordon@chronitis.net>
Build-Depends: debhelper (>= 10), Build-Depends: debhelper (>= 10),
nodejs, nodejs,
nodejs-dev, nodejs-dev,
node-nan, node-nan (>= 2.6.2),
node-gyp, node-gyp,
node-mocha,
node-should,
libzmq3-dev, libzmq3-dev,
pkg-config pkg-config
Standards-Version: 4.1.1 Standards-Version: 4.1.3
Homepage: https://github.com/zeromq/zeromq.js Homepage: https://github.com/zeromq/zeromq.js
Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/zeromq.js.git
Vcs-Browser: https://anonscm.debian.org/git/pkg-javascript/zeromq.js.git
Testsuite: autopkgtest Testsuite: autopkgtest
Rules-Requires-Root: no
Package: node-zeromq Package: node-zeromq
Architecture: any Architecture: any
......
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: zeromq.js Upstream-Name: zeromq.js
Files: * Files: *
......
...@@ -2,23 +2,23 @@ Description: use system libzmq (instead of building and using a private copy) ...@@ -2,23 +2,23 @@ Description: use system libzmq (instead of building and using a private copy)
--- a/binding.gyp --- a/binding.gyp
+++ b/binding.gyp +++ b/binding.gyp
@@ -3,7 +3,7 @@ @@ -6,7 +6,7 @@
{ {
'target_name': 'zmq', 'target_name': 'zmq',
'sources': [ 'binding.cc' ], 'sources': ['binding.cc'],
- 'include_dirs' : ["<!(node -e \"require('nan')\")"], - 'include_dirs' : ["<!(node -e \"require('nan')\")"],
+ 'include_dirs' : ["<!(nodejs -e \"require('nan')\")"], + 'include_dirs' : ["<!(nodejs -e \"require('nan')\")"],
'cflags!': ['-fno-exceptions'], 'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exceptions'], 'cflags_cc!': ['-fno-exceptions'],
'conditions': [ 'conditions': [
@@ -28,8 +28,8 @@ @@ -37,8 +37,8 @@
['OS=="openbsd" or OS=="freebsd"', { ['OS=="openbsd" or OS=="freebsd"', {
}],
['OS=="linux"', {
- 'libraries': ['<(PRODUCT_DIR)/../../zmq/lib/libzmq.a'],
- 'include_dirs': ['<(PRODUCT_DIR)/../../zmq/include'],
+ 'libraries': [ '<!(pkg-config libzmq --libs)', ],
+ 'cflags': [ '<!(pkg-config libzmq --cflags)', ],
}],
],
}], }],
['OS=="linux"', {
- 'libraries': [ '<(PRODUCT_DIR)/../../zmq/lib/libzmq.a' ],
- 'include_dirs': [ '<(PRODUCT_DIR)/../../zmq/include' ],
+ 'libraries': [ '<!(pkg-config libzmq --libs)', ],
+ 'cflags': [ '<!(pkg-config libzmq --cflags)', ],
}],
]
}
...@@ -15,3 +15,7 @@ override_dh_installchangelogs: ...@@ -15,3 +15,7 @@ override_dh_installchangelogs:
override_dh_fixperms: override_dh_fixperms:
dh_fixperms dh_fixperms
chmod 0644 debian/node-zeromq/usr/lib/nodejs/zeromq/build/Release/zmq.node chmod 0644 debian/node-zeromq/usr/lib/nodejs/zeromq/build/Release/zmq.node
override_dh_auto_test:
# some network operations seem to time out - chroot related?
mocha || true
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