[libwx-perl] 02/03: d/rules: change order of variables/targets

gregor herrmann gregoa at debian.org
Wed Aug 13 17:40:48 UTC 2014


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

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

commit e8490995d17d1c7f599d46c051cc5397a6c09589
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Aug 13 19:25:29 2014 +0200

    d/rules: change order of variables/targets
    
    Git-Dch: Ignore
---
 debian/rules | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index 0056c41..11f1555 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,8 @@ DEBIAN_TARGETS := clean binary binary-arch binary-indep build build-arch build-i
 
 ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}')
 
+_DETECTION_CMD := perl -MAlien::wxWidgets -e '$$key = Alien::wxWidgets->key; $$key =~ s/_/-/g; print "$$key";'
+
 $(DEBIAN_TARGETS):
 	dh $@ --parallel
 
@@ -22,18 +24,16 @@ override_dh_auto_install:
 	# remove bogus man page
 	rm -vf "$(TMP)/usr/share/man/man3/Wx::build::MakeMaker::Win32_MSVC.3pm"
 
-override_dh_gencontrol: get_perl_wx_version
-	dh_gencontrol -- -V'wxperl:Depends=wxperl-$(PERL_WX_VERSION)'
-
 override_dh_installexamples:
 	dh_installexamples
 	chmod 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/README.txt
 	find $(TMP)/usr/share/doc/$(PACKAGE)/examples -name '*.pl' -exec chmod 0755 {} \;
 
-_DETECTION_CMD := perl -MAlien::wxWidgets -e '$$key = Alien::wxWidgets->key; $$key =~ s/_/-/g; print "$$key";'
-
 get_perl_wx_version: blib
 	: $(eval PERL_WX_VERSION := $(shell $(_DETECTION_CMD)))
 	@echo PERL_WX_VERSION detected as $(PERL_WX_VERSION)
 
+override_dh_gencontrol: get_perl_wx_version
+	dh_gencontrol -- -V'wxperl:Depends=wxperl-$(PERL_WX_VERSION)'
+
 .PHONY: $(DEBIAN_TARGETS) get_perl_wx_version

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



More information about the Pkg-perl-cvs-commits mailing list