| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
SKIP_TESTS=$(shell cat debian/tests/pkg-perl/smoke-skip) |
| 7 |
TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t)) |
| 8 |
|
| 9 |
%: |
| 10 |
# ensure we build only arch:any packages |
| 11 |
# safeguard against converting the package again to arch:all |
| 12 |
# cf. #596257 and #708730 |
| 13 |
dh $@ -a |
| 14 |
|
| 15 |
override_dh_auto_test: |
| 16 |
PERL_ANYEVENT_RESOLV_CONF=$(CURDIR)/debian/resolv.conf PERL_ANYEVENT_LOOP_TESTS=1 xvfb-run -a dh_auto_test -- TEST_FILES="$(TEST_FILES)" |
| 17 |
|
| 18 |
override_dh_installexamples: |
| 19 |
dh_installexamples |
| 20 |
sed -i '1s|^#!/opt/perl/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |
| 21 |
sed -i '1s|^#!/opt/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/* |