[Pkg-javascript-commits] [node-srs] 09/22: Use flags for bindings.gyp, install binary
Jérémy Lal
kapouer at moszumanska.debian.org
Sun Jun 21 19:38:03 UTC 2015
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-srs.
commit f1bb1905771118ac5039cc4174fbbca0628e21b3
Author: Jérémy Lal <kapouer at melix.org>
Date: Sun Jun 21 20:27:17 2015 +0200
Use flags for bindings.gyp, install binary
---
debian/install | 3 ++-
debian/rules | 10 ++++++----
2 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/debian/install b/debian/install
index 0de56a7..13a7a04 100644
--- a/debian/install
+++ b/debian/install
@@ -1,2 +1,3 @@
-lib/* usr/lib/nodejs/srs
+lib usr/lib/nodejs/srs
+build/lib/binding usr/lib/nodejs/srs/lib
package.json usr/lib/nodejs/srs
diff --git a/debian/rules b/debian/rules
index 7f2694a..373f6d2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,16 +4,18 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+MODULE_PATH=/usr/lib/nodejs/srs/lib/binding/srs.node
+
%:
dh $@
override_dh_install:
dh_install
dh_buildinfo
- chmod 644 $(CURDIR)/debian/node-srs/usr/lib/nodejs/srs/_srs.node
+ chmod 644 $(CURDIR)/debian/node-srs$(MODULE_PATH)
override_dh_auto_configure:
- node-gyp configure
+ node-gyp configure -module_name=srs -module_path=lib/binding/ -shared_gdal=1
override_dh_auto_build:
node-gyp build
@@ -23,12 +25,12 @@ override_dh_auto_test:
override_dh_shlibdeps:
dpkg-shlibdeps \
-T$(CURDIR)/debian/node-srs.substvars \
- $(CURDIR)/debian/node-srs/usr/lib/nodejs/srs/_srs.node
+ $(CURDIR)/debian/node-srs$(MODULE_PATH)
override_dh_strip:
strip \
--remove-section=.comment \
--remove-section=.note \
--strip-unneeded \
- $(CURDIR)/debian/node-srs/usr/lib/nodejs/srs/_srs.node
+ $(CURDIR)/debian/node-srs$(MODULE_PATH)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/node-srs.git
More information about the Pkg-javascript-commits
mailing list