r10621 - in /trunk/libalzabo-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Dec 1 19:07:30 UTC 2007


Author: gregoa-guest
Date: Sat Dec  1 19:07:30 2007
New Revision: 10621

URL: http://svn.debian.org/wsvn/?sc=1&rev=10621
Log:
debian/rules rewritten with the help of dh-make-perl.

Modified:
    trunk/libalzabo-perl/debian/changelog
    trunk/libalzabo-perl/debian/rules

Modified: trunk/libalzabo-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libalzabo-perl/debian/changelog?rev=10621&op=diff
==============================================================================
--- trunk/libalzabo-perl/debian/changelog (original)
+++ trunk/libalzabo-perl/debian/changelog Sat Dec  1 19:07:30 2007
@@ -9,6 +9,7 @@
   * Set Standards-Version to 3.7.2 (no changes).
   * Move debhelper and libmodule-build-perl from Build-Depends-Indep to
     Build-Depends as required by policy.
+  * debian/rules rewritten with the help of dh-make-perl.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Dec 2007 18:54:43 +0100
 

Modified: trunk/libalzabo-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libalzabo-perl/debian/rules?rev=10621&op=diff
==============================================================================
--- trunk/libalzabo-perl/debian/rules (original)
+++ trunk/libalzabo-perl/debian/rules Sat Dec  1 19:07:30 2007
@@ -1,61 +1,74 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# 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.
+#
+# It was later modified by Jason Kohles <email at jasonkohles.com>
+# http://www.jasonkohles.com/ to support Module::Build installed modules
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-PACKAGE=`pwd | sed -e "s/.*\/\\(.*\\)-.*/\\1/"`
-ROOTDIR=$(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
+# 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
 
-build:
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
 	dh_testdir
-	# Add here commands to compile the package.
-	env \
-	ALZABO_ROOT=$ROOTDIR \
-	ALZABO_FEATURE_MYSQL=1 \
-	ALZABO_FEATURE_PG=1 \
-	ALZABO_SKIP_TEST_MYSQL=1 \
-	ALZABO_SKIP_TEST_PG=1 \
-	perl Build.PL installdirs=vendor
+
+	$(PERL) Build.PL --automated --mysql --pg installdirs=vendor
+	$(PERL) Build
+	$(PERL) Build test
+
+	touch build-stamp
+
 clean:
 	dh_testdir
 	dh_testroot
 
-	-./Build clean
-	rm -rf ./Build _build
-	dh_clean
+	dh_clean build-stamp install-stamp
 
-install:
+	[ ! -f Build ] || $(PERL) Build distclean
+
+install: build install-stamp
+install-stamp:
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-	
-	./Build test
-	/usr/bin/install -d $(ROOTDIR)/mason/widgets
-	/usr/bin/install $(CURDIR)/mason/widgets/* $(ROOTDIR)/mason/widgets -m644
-	./Build install destdir=$(CURDIR)/debian/$(PACKAGE)
 
-	-find $(CURDIR)/debian -type d | xargs rmdir -p --ignore-fail-on-non-empty
+	$(PERL) Build install destdir=$(TMP) create_packlist=0
 
-binary-arch:;
+	touch install-stamp
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
+	dh_installdocs TODO README
 	dh_installexamples
-	dh_installdocs
-	dh_installman
 	dh_installchangelogs Changes
-	dh_link
-	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl
 	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 install configure
+.PHONY: build clean binary-indep binary-arch binary




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