r13093 - in /trunk/libdate-simple-perl/debian: changelog control rules

dmn at users.alioth.debian.org dmn at users.alioth.debian.org
Mon Jan 21 11:00:44 UTC 2008


Author: dmn
Date: Mon Jan 21 11:00:43 2008
New Revision: 13093

URL: http://svn.debian.org/wsvn/?sc=1&rev=13093
Log:
Converted to debhelper

Modified:
    trunk/libdate-simple-perl/debian/changelog
    trunk/libdate-simple-perl/debian/control
    trunk/libdate-simple-perl/debian/rules

Modified: trunk/libdate-simple-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libdate-simple-perl/debian/changelog?rev=13093&op=diff
==============================================================================
--- trunk/libdate-simple-perl/debian/changelog (original)
+++ trunk/libdate-simple-perl/debian/changelog Mon Jan 21 11:00:43 2008
@@ -7,8 +7,9 @@
   * debian/rules: delete /usr/share/perl5 only if it exists.
 
   [ Damyan Ivanov ]
-  *  New upstream release
+  * New upstream release
   * debian/watch: use dist-based URL and better patern
+  * debian/rules: converted to debhelper
 
  -- Damyan Ivanov <dmn at debian.org>  Mon, 21 Jan 2008 12:55:34 +0200
 

Modified: trunk/libdate-simple-perl/debian/control
URL: http://svn.debian.org/wsvn/trunk/libdate-simple-perl/debian/control?rev=13093&op=diff
==============================================================================
--- trunk/libdate-simple-perl/debian/control (original)
+++ trunk/libdate-simple-perl/debian/control Mon Jan 21 11:00:43 2008
@@ -1,7 +1,7 @@
 Source: libdate-simple-perl
 Section: perl
 Priority: optional
-Build-Depends: cdbs, debhelper (>= 5), perl (>= 5.8.0-7)
+Build-Depends: debhelper (>= 5), perl (>= 5.8.0-7)
 Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
 Uploaders: Edward Betts <edward at debian.org>, gregor herrmann <gregor+debian at comodo.priv.at>
 Standards-Version: 3.7.2

Modified: trunk/libdate-simple-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libdate-simple-perl/debian/rules?rev=13093&op=diff
==============================================================================
--- trunk/libdate-simple-perl/debian/rules (original)
+++ trunk/libdate-simple-perl/debian/rules Mon Jan 21 11:00:43 2008
@@ -1,8 +1,88 @@
 #!/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.
 
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/perlmodule.mk
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
-install/libdate-simple-perl::
-	[ ! -d $(CURDIR)/debian/libdate-simple-perl/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/libdate-simple-perl/usr/share/perl5
-	
+# 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
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add commands to compile the package here
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+	$(MAKE) test
+
+	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_clean -k
+
+	# 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
+
+	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_testdir
+	dh_testroot
+	dh_installdocs
+	dh_installchangelogs ChangeLog
+	dh_shlibdeps
+	dh_strip
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary




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