File: rules

package info (click to toggle)
libintl-perl 1.33-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,736 kB
  • sloc: perl: 156,229; makefile: 113; sh: 3
file content (26 lines) | stat: -rwxr-xr-x 932 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

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

%:
	dh $@

override_dh_install-indep:
	dh_install -i --exclude=gettext_xs

override_dh_installexamples:
	dh_installexamples
	find $(TMP)/usr/share/doc/$(PACKAGE)/examples -type f -print0 | \
		xargs -r0 sed -E -i -e '1s|^#!\s*/usr/local/bin/perl|#!/usr/bin/perl|'

	$(RM) --verbose $(TMP)/usr/share/doc/$(PACKAGE)/examples/simplecal/.gitignore

override_dh_auto_test:
	# tests/03language_xs.t has issues with Februar vs. Feber in de_AT;
	# cf. https://github.com/gflohr/libintl-perl/issues/3
	[ ! -f $(CURDIR)/tests/03language_xs.t ] || mv -v $(CURDIR)/tests/03language_xs.t $(CURDIR)/tests/03language_xs.skip
	TEST_LIBINTL_PERL_XS_VERSION=1 dh_auto_test
	[ ! -f $(CURDIR)/tests/03language_xs.skip ] || mv -v $(CURDIR)/tests/03language_xs.skip $(CURDIR)/tests/03language_xs.t