[libwwwbrowser-perl] 04/09: Switch to short-form debian/rules
Florian Schlichting
fsfs at moszumanska.debian.org
Mon Nov 13 21:39:40 UTC 2017
This is an automated email from the git hooks/post-receive script.
fsfs pushed a commit to branch master
in repository libwwwbrowser-perl.
commit bc789f337d4997ba11945628b33813accdbdb926
Author: Florian Schlichting <fsfs at debian.org>
Date: Mon Nov 13 22:27:51 2017 +0100
Switch to short-form debian/rules
---
debian/libwwwbrowser-perl.examples | 1 +
debian/rules | 84 +++-----------------------------------
2 files changed, 7 insertions(+), 78 deletions(-)
diff --git a/debian/libwwwbrowser-perl.examples b/debian/libwwwbrowser-perl.examples
new file mode 100644
index 0000000..887df33
--- /dev/null
+++ b/debian/libwwwbrowser-perl.examples
@@ -0,0 +1 @@
+anybrowser
diff --git a/debian/rules b/debian/rules
index 947ac60..312a06f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,83 +1,11 @@
#!/usr/bin/make -f
-# This debian/rules file is provided as a template for normal perl
-# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
-# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
-# be used freely wherever it is useful.
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+ dh $@
-include /usr/share/quilt/quilt.make
-
-# If set to a true value then MakeMaker's prompt function will
-# always return the default without waiting for user input.
-export PERL_MM_USE_DEFAULT=1
-
-PACKAGE=$(shell dh_listpackages)
-
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-TMP =$(CURDIR)/debian/$(PACKAGE)
-
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
- dh_testdir
-
- # Add commands to compile the package here
- $(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE)
+override_dh_auto_test:
xvfb-run -a $(MAKE) test
- touch $@
-
-clean: unpatch
- dh_testdir
- dh_testroot
-
- dh_clean build-stamp install-stamp
-
- # Add commands to clean up after the build process here
- [ ! -f Makefile ] || $(MAKE) realclean
-
-install: install-stamp
-install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
-
- # Add commands to install the package into debian/PACKAGE_NAME here
- $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
- # anybrowser should be an example script
- rm -f $(TMP)/usr/bin/anybrowser
-
- # remove empty dirs if they exist
- [ ! -d $(TMP)/usr/bin ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/bin
- [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/lib/perl5
-
-
- touch $@
-
-binary-arch:
-# We have nothing to do here for an architecture-dependent package
-
-binary-indep: build install
- dh_testdir
- dh_testroot
- dh_installexamples anybrowser
- dh_installdocs README
- dh_installchangelogs Changes
- dh_perl
- dh_compress
- dh_fixperms
- dh_installdeb
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+override_dh_auto_install:
+ dh_auto_install
+ rm -r debian/libwwwbrowser-perl/usr/bin
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libwwwbrowser-perl.git
More information about the Pkg-perl-cvs-commits
mailing list