This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository libtk-gbarr-perl.

commit 01615a88b0cfad423b5c59f6a4608f2c2362495b
Author: gregor herrmann <gre...@debian.org>
Date:   Sat Jun 28 21:08:03 2014 +0200

    Modernize debian/rules. And use $Config{vendorarch}
    
    as a preparation for the multi-arched perl 5.20.
    
    Closes: #753049
---
 debian/rules | 41 ++++++++++++++---------------------------
 1 file changed, 14 insertions(+), 27 deletions(-)

diff --git a/debian/rules b/debian/rules
index 8c8fcd9..1206c82 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,37 +3,24 @@
 PACKAGE=$(shell dh_listpackages)
 TMP    =$(CURDIR)/debian/$(PACKAGE)
 
-include /usr/share/quilt/quilt.make
+ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
 
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-       dh build --before test
-       # Use xvfp-run
-       xvfb-run -a $(MAKE) test
-       dh build --after test
-       touch $@
-
-clean: unpatch
+%:
        dh $@
 
-install: install-stamp
-install-stamp: build-stamp
-       dh install --until dh_auto_install
+override_dh_auto_test:
+       xvfb-run -a dh_auto_test
+
+override_dh_auto_install:
+       dh_auto_install
        mkdir -p $(TMP)/usr/share/perl5
-       mv $(TMP)/usr/lib/perl5/Tk $(TMP)/usr/share/perl5/Tk
-       # make sure all demo programs are not executable ...
-       chmod 0644 examples/*
-       # ... and remove /usr/share/perl5/Tk/demos, we install them to examples/
+       mv $(TMP)$(ARCHLIB)/Tk $(TMP)/usr/share/perl5/Tk
+       # remove /usr/share/perl5/Tk/demos, we install them to examples/
        [ ! -d $(TMP)/usr/share/perl5/Tk/demos ] || rm -rvf 
$(TMP)/usr/share/perl5/Tk/demos
-       [ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty 
--parents --verbose $(TMP)/usr/lib/perl5
-       dh install --after dh_auto_install
-       touch $@
-
-binary-arch:
-
-binary-indep: install
-       dh $@
+       [ ! -d $(TMP)$(ARCHLIB) ] || rmdir --ignore-fail-on-non-empty --parents 
--verbose $(TMP)$(ARCHLIB)
 
-binary: binary-arch binary-indep
+override_dh_installexamples:
+       # make sure all demo programs are not executable
+       chmod 0644 $(CURDIR)/examples/*
+       dh_installexamples
 
-.PHONY: binary binary-arch binary-indep install clean build

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libtk-gbarr-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to