File: rules

package info (click to toggle)
libanyevent-perl 7.130-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,004 kB
  • ctags: 758
  • sloc: perl: 6,610; sh: 112; makefile: 10
file content (18 lines) | stat: -rwxr-xr-x 547 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

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

%:
# ensure we build only arch:any packages
# safeguard against converting the package again to arch:all
# cf. #596257 and #708730
	dh $@ -a

override_dh_auto_test:
	PERL_ANYEVENT_LOOP_TESTS=1 xvfb-run -a dh_auto_test

override_dh_installexamples:
	dh_installexamples
	sed -i '1s|^#!/opt/perl/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
	sed -i '1s|^#!/opt/bin/perl|#!/usr/bin/perl|' $(TMP)/usr/share/doc/$(PACKAGE)/examples/*