File: rules

package info (click to toggle)
libnet-twitter-lite-perl 0.12008-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 536 kB
  • sloc: perl: 4,190; makefile: 14
file content (21 lines) | stat: -rwxr-xr-x 715 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_install:
	dh_auto_install

	# remove empty manpage and install .pod as manpage
	# cf. #712006 and #788647 and #788682
	$(RM) -v $(TMP)/usr/share/man/man3/Net::Twitter::Lite.3pm \
	         $(TMP)/usr/share/man/man3/Net::Twitter::Lite::WithAPIv1_1.3pm
	pod2man \
		--section 3pm --name Net::Twitter::Lite \
		$(TMP)/usr/share/perl5/Net/Twitter/Lite.pod > $(TMP)/usr/share/man/man3/Net::Twitter::Lite.3pm
	pod2man \
		--section 3pm --name Net::Twitter::Lite::WithAPIv1_1 \
		$(TMP)/usr/share/perl5/Net/Twitter/Lite/WithAPIv1_1.pod > $(TMP)/usr/share/man/man3/Net::Twitter::Lite::WithAPIv1_1.3pm