r12066 - in /trunk/libalien-wxwidgets-perl/debian: control rules

roberto at users.alioth.debian.org roberto at users.alioth.debian.org
Sat Jan 5 18:40:03 UTC 2008


Author: roberto
Date: Sat Jan  5 18:40:02 2008
New Revision: 12066

URL: http://svn.debian.org/wsvn/?sc=1&rev=12066
Log:
Compute better dependency

Modified:
    trunk/libalien-wxwidgets-perl/debian/control
    trunk/libalien-wxwidgets-perl/debian/rules

Modified: trunk/libalien-wxwidgets-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libalien-wxwidgets-perl/debian/control?rev=12066&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/debian/control (original)
+++ trunk/libalien-wxwidgets-perl/debian/control Sat Jan  5 18:40:02 2008
@@ -11,7 +11,7 @@
 
 Package: libalien-wxwidgets-perl
 Architecture: any
-Depends: ${misc:Depends}, libwxgtk2.6-dev
+Depends: ${misc:Depends}, libwxgtk2.6-dev (>= ${wx:current}), libwxgtk2.6-dev (<< ${wx:next})
 Description: building, finding and using wxWidgets binaries
  Detects configuration settings of an installed wxWidgets.  Can be used in
  order to help in the process of building modules which require wxWidgets.

Modified: trunk/libalien-wxwidgets-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libalien-wxwidgets-perl/debian/rules?rev=12066&op=diff
==============================================================================
--- trunk/libalien-wxwidgets-perl/debian/rules (original)
+++ trunk/libalien-wxwidgets-perl/debian/rules Sat Jan  5 18:40:02 2008
@@ -6,6 +6,13 @@
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+# wxWidgets version
+export V=`dpkg -s libwxgtk2.6-dev | grep ^Version |cut -f2 -d' '`
+VMAJOR:=$(shell echo $(V) |cut -f 1 -d .)
+VMINOR:=$(shell echo $(V) |cut -f 2 -d .)
+VPATCH:=$(shell echo $(V) |cut -f 3 -d .)
+NEXTPATCH:=$(shell expr $(VPATCH) + 1 2>/dev/null || expr `echo $(VPATCH) | cut -f 1 -d - ` + 1)
 
 # If set to a true value then MakeMaker's prompt function will
 # always return the default without waiting for user input.
@@ -40,6 +47,7 @@
 clean:
 	dh_testdir
 	dh_testroot
+	rm -f debian/libalien-wxwidgets-perl.substvars
 
 	# Add commands to clean up after the build process here
 	[ ! -f Makefile ] || $(MAKE) realclean
@@ -72,6 +80,10 @@
 binary-arch: build install
 	dh_testdir
 	dh_testroot
+	echo 'wx:current=$(VMAJOR).$(VMINOR).$(VPATCH)~' \
+		>> debian/libalien-wxwidgets-perl.substvars
+	echo 'wx:next=$(VMAJOR).$(VMINOR).$(NEXTPATCH)~' \
+		>> debian/libalien-wxwidgets-perl.substvars
 	dh_installdocs
 	dh_installman
 	dh_installchangelogs Changes




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