File: rules

package info (click to toggle)
libxml-libxslt-perl 2.003000-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: xml: 2,181; perl: 1,227; ansic: 402; makefile: 15
file content (25 lines) | stat: -rwxr-xr-x 638 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
#!/usr/bin/make -f

include /usr/share/dpkg/buildtools.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip)
TEST_FILES = $(filter-out $(SKIP_TESTS),$(wildcard t/*.t))

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)

# also in libxml-libxml-perl
XML_VER_MIN        = 2.15
XML_BIN            = $(shell grep -Po 'libxml2[\w-]*' $(TMP).substvars)
XML_VER_SUBST      = -Vlibxml:Depends="$(XML_BIN) (>= $(XML_VER_MIN))"

%:
	dh $@

override_dh_auto_test:
	dh_auto_test -- TEST_FILES="$(TEST_FILES)"

override_dh_gencontrol:
	dh_gencontrol -- $(XML_VER_SUBST)