[libalien-wxwidgets-perl] 04/06: d/rules: change order of targets

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


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

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

commit 27d3d6ea94b6c78aa6f0b25a981e8978bf02b4a2
Author: gregor herrmann <gregoa at debian.org>
Date:   Wed Aug 13 19:17:41 2014 +0200

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

diff --git a/debian/rules b/debian/rules
index 111d2ad..5b38589 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,18 +10,18 @@ NEXTPATCH:=$(shell expr $(VPATCH) + 1 2>/dev/null || expr `echo $(VPATCH) | cut
 
 PERLAPI := $(shell perl -MConfig -e 'print ($$Config{debian_abi} || $$Config{version})')
 
+_DETECTION_CMD := PERL5LIB=$(CURDIR)/blib/lib:$(CURDIR)/blib/arch perl -MAlien::wxWidgets -e '$$key = Alien::wxWidgets->key; $$key =~ s/_/-/g; print "$$key";'
+
 %:
 	dh $@
 
+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'samewx:Depends=libwxgtk$(WXVER)-dev (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxgtk$(WXVER)-dev (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~), libwxgtk-media$(WXVER)-dev (>= $(VMAJOR).$(VMINOR).$(VPATCH)), libwxgtk-media$(WXVER)-dev (<< $(VMAJOR).$(VMINOR).$(NEXTPATCH)~)' \
 		-V'perlapi:Depends=perlapi-$(PERLAPI)' \
 		-V'wxperl:Provides=wxperl-$(PERL_WX_VERSION)'
 
-_DETECTION_CMD := PERL5LIB=$(CURDIR)/blib/lib:$(CURDIR)/blib/arch 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)
-
 .PHONY: get_perl_wx_version

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



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