File: rules

package info (click to toggle)
node-expat 2.4.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,768 kB
  • sloc: xml: 42,159; javascript: 569; cpp: 377; makefile: 17; sh: 1
file content (27 lines) | stat: -rwxr-xr-x 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# try resolve from shlibdep of libnodeXX, or use full nodejs version
NODEJS_VERSION = $(shell \
 grep -Po '^shlibs:Depends=.*libnode\d+ \(>= \K\S+(?=\))' \
  debian/node-node-expat.substvars \
 || dpkg-query --showformat='$${source:Version}' --show nodejs)

override_dh_auto_configure:
	node-gyp configure

override_dh_auto_build:
	node-gyp rebuild

override_dh_auto_test:
	NODE_PATH=lib vows --spec ./test/**/*.js

execute_after_dh_install:
	find debian/node-node-expat/usr/lib -name *.node -exec chmod 644 '{}' \;

override_dh_gencontrol:
	dh_gencontrol -- -V"nodejs:Depends=$(NODEJS_VERSION)"

%:
	dh $@