#!/usr/bin/make -f

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

%:
	dh $@

override_dh_auto_test:
	http_proxy= dh_auto_test

override_dh_auto_install:
	dh_auto_install

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

	sed -i '1,2 d' $(TMP)/usr/share/perl5/Net/Twitter.pod
