[med-svn] r7542 - trunk/packages/libtfbs-perl/trunk/debian

Charles Plessy plessy at alioth.debian.org
Thu Aug 25 04:01:37 UTC 2011


Author: plessy
Date: 2011-08-25 04:01:36 +0000 (Thu, 25 Aug 2011)
New Revision: 7542

Modified:
   trunk/packages/libtfbs-perl/trunk/debian/changelog
   trunk/packages/libtfbs-perl/trunk/debian/compat
   trunk/packages/libtfbs-perl/trunk/debian/control
   trunk/packages/libtfbs-perl/trunk/debian/rules
Log:
Switch to Debhelper 8 and dh rules.


Modified: trunk/packages/libtfbs-perl/trunk/debian/changelog
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/changelog	2011-08-25 03:45:08 UTC (rev 7541)
+++ trunk/packages/libtfbs-perl/trunk/debian/changelog	2011-08-25 04:01:36 UTC (rev 7542)
@@ -5,6 +5,7 @@
     of the last upstream commit.
   * Corrected Vcs fields in debian/control. 
   * Conforms with Policy 3.9.2 (debian/control, no other changes needed).
+  * Switch to Debhelper 8 and dh rules.
 
  -- Charles Plessy <plessy at debian.org>  Thu, 25 Aug 2011 12:28:57 +0900
 

Modified: trunk/packages/libtfbs-perl/trunk/debian/compat
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/compat	2011-08-25 03:45:08 UTC (rev 7541)
+++ trunk/packages/libtfbs-perl/trunk/debian/compat	2011-08-25 04:01:36 UTC (rev 7542)
@@ -1 +1 @@
-7
+8

Modified: trunk/packages/libtfbs-perl/trunk/debian/control
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/control	2011-08-25 03:45:08 UTC (rev 7541)
+++ trunk/packages/libtfbs-perl/trunk/debian/control	2011-08-25 04:01:36 UTC (rev 7542)
@@ -1,7 +1,7 @@
 Source: libtfbs-perl
 Section: perl
 Priority: optional
-Build-Depends: debhelper (>= 7), perl, pdl, bioperl, libwww-perl, libdbi-perl
+Build-Depends: debhelper (>= 8), perl, pdl, bioperl, libwww-perl, libdbi-perl
 Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
 DM-Upload-Allowed: yes
 Uploaders: Steffen Moeller <moeller at debian.org>, Charles Plessy <plessy at debian.org>

Modified: trunk/packages/libtfbs-perl/trunk/debian/rules
===================================================================
--- trunk/packages/libtfbs-perl/trunk/debian/rules	2011-08-25 03:45:08 UTC (rev 7541)
+++ trunk/packages/libtfbs-perl/trunk/debian/rules	2011-08-25 04:01:36 UTC (rev 7542)
@@ -1,75 +1,33 @@
 #!/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 $@
 
-# 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
-
-PERL   ?= /usr/bin/perl
-PACKAGE = $(shell dh_listpackages)
-TMP     = $(CURDIR)/debian/$(PACKAGE)
-
-# Do not run network test unless in maintainer mode.
-ifneq (1,$(DEB_MAINTAINER_MODE))
-	TEST_FILES = $(filter-out t/04_DB_TRANSFAC.t,$(shell echo t/*.t))
-else
-	TEST_FILES = $(shell echo t/*.t)
-endif
-
 # Allow disabling build optimisation by setting noopt in
 # $DEB_BUILD_OPTIONS
 CFLAGS = -Wall -g
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-        CFLAGS += -O0
+CFLAGS += -O0
 else
-        CFLAGS += -O2
+CFLAGS += -O2
 endif
 
-build: build-stamp
-build-stamp:
-	dh_testdir
-	# Add commands to compile the package here
-	echo "n" | $(PERL) Makefile.PL INSTALLDIRS=vendor
+override_dh_auto_configure:
+	echo "n" | perl Makefile.PL INSTALLDIRS=vendor
 	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+
+# Do not run network test unless in maintainer mode.
+ifneq (1,$(DEB_MAINTAINER_MODE))
+TEST_FILES := $(filter-out t/04_DB_TRANSFAC.t,$(shell echo t/*.t))
+else
+TEST_FILES := $(shell echo t/*.t)
+endif
+
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
+override_dh_auto_test:
 	prove --blib $(TEST_FILES) Ext/t/*.t
 endif
-	touch $@
 
-clean:
-	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_prep
-	# Add commands to install the package into $(TMP)
-	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	[ ! -d $(TMP)/usr/share/perl5 ] || \
-		rmdir --ignore-fail-on-non-empty --parents --verbose \
-		$(TMP)/usr/share/perl5
-	rm $(TMP)/usr/lib/perl5/pwm_searchPFF.c $(TMP)/usr/lib/perl5/pwm_search.h # This must fail if the files are not there, so that we do not forget to remove the line when the issue is solved. --Charles
-	touch $@
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do here for an architecture-dependent package
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh binary-arch
-
 TMP_DIR          := $(shell mktemp --tmpdir --directory libtfbs-perl-build.XXXXXXXXXX)
 LAST_REV         := $(shell LC_ALL=C svn info http://www.ii.uib.no/svn/lenhard/TFBS/ | grep Date | perl -pe 's/.*(\d\d\d\d)-(\d\d)-(\d\d).*/\1\2\3/')
 UPSTREAM_VERSION := 0.5.svn.$(LAST_REV)
@@ -81,6 +39,3 @@
 	cd $(TMP_DIR); tar -czvf $(TAR) $(REPACK_DIR)
 	mv $(TMP_DIR)/$(TAR) $(CURDIR)/..
 	rm --recursive $(TMP_DIR)
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install




More information about the debian-med-commit mailing list