[Pkg-javascript-commits] [node-srs] 04/27: rules fixups, dfsg-exclude lib/srs_data only. Build using node-gyp
Jérémy Lal
kapouer at alioth.debian.org
Fri Aug 30 15:12:34 UTC 2013
This is an automated email from the git hooks/post-receive script.
kapouer pushed a commit to branch master
in repository node-srs.
commit d53b27010806452e5723bd3a1e646fb4e2868cff
Author: Jérémy Lal <kapouer at melix.org>
Date: Fri Aug 30 16:45:29 2013 +0200
rules fixups, dfsg-exclude lib/srs_data only. Build using node-gyp
---
debian/rules | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/debian/rules b/debian/rules
index e738940..d4d8cba 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,9 +5,12 @@
#export DH_VERBOSE=1
ifndef UPVER
-UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\ -f2 | cut -d- -f1 | cut -d+ -f1)
+UPVER := $(shell dpkg-parsechangelog -SVersion | cut -d- -f1 | cut -d+ -f1)
endif
+TARDIR := node-srs-$(UPVER)
+TARNAME := node-srs_$(UPVER)+ds1.orig.tar
+
%:
dh $@
@@ -16,16 +19,13 @@ override_dh_install:
dh_buildinfo
override_dh_auto_configure:
- node-waf configure
+ node-gyp configure --libzip=shared
override_dh_auto_build:
- node-waf build
+ node-gyp build
override_dh_auto_test:
-override_dh_auto_install:
- node-waf install --destdir=$(CURDIR)/debian/tmp/
-
override_dh_shlibdeps:
dpkg-shlibdeps \
-T$(CURDIR)/debian/node-srs.substvars \
@@ -39,17 +39,18 @@ override_dh_strip:
$(CURDIR)/debian/node-srs/usr/lib/nodejs/srs/_srs.node
get-orig-source:
+ mkdir -p ../tarballs
uscan \
--verbose \
--download-version $(UPVER) \
--force-download \
- --destdir . \
+ --destdir ../tarballs \
--rename
- tar xvf node-srs_$(UPVER).orig.tar.gz
- # removing embedded SCons
- rm -rf package/tools/scons/
- # removing embedded OGR library
- rm -rf package/deps/ package/GDAL_LICENSE/
- tar cf node-srs_$(UPVER)+ds1.orig.tar package/
- gzip -9 node-srs_$(UPVER)+ds1.orig.tar
- rm -rf package/ node-srs_$(UPVER).orig.tar.gz
+ tar xvf ../tarballs/node-srs_$(UPVER).orig.tar.gz
+ @echo Repackaging
+ rm -rf $(TARDIR)/lib/srs_data
+ tar cf $(TARNAME) $(TARDIR)/
+ rm -rf $(TARDIR)/
+ gzip -9 $(TARNAME)
+ mv $(TARNAME).gz ../tarballs/
+
--
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