File: rules

package info (click to toggle)
libpdf-table-perl 1%3A1.003-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 548 kB
  • sloc: perl: 3,469; makefile: 14
file content (23 lines) | stat: -rwxr-xr-x 744 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
#!/usr/bin/make -f

PACKAGE = $(shell dh_listpackages)
TMP     = $(CURDIR)/debian/$(PACKAGE)
MAN3    = $(TMP)/usr/share/man/man3

%:
	dh $@

override_dh_install:
	dh_install
	sed -i '1s|^#!/usr/bin/env perl|#!/usr/bin/perl|' $(TMP)/usr/share/perl5/PDF/Table.pm

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

execute_before_dh_installman:
	# Documentation reorganisation seems to have lead to manpages mismatch.
	# PDF::Table.3pm is mostly empty at this point.  The resulting content
	# of PDF::Table::Table.3pm should be the one of PDF::Table.3pm.
	mv -v $(MAN3)/PDF::Table::Table.3pm $(MAN3)/PDF::Table.3pm