r12836 - in /trunk/libbit-vector-perl/debian: changelog rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Wed Jan 16 20:58:48 UTC 2008
Author: dmn
Date: Wed Jan 16 20:58:48 2008
New Revision: 12836
URL: http://svn.debian.org/wsvn/?sc=1&rev=12836
Log:
* debian/rules:
+ convert to plain debhelper
+ install more docs and examples
Modified:
trunk/libbit-vector-perl/debian/changelog
trunk/libbit-vector-perl/debian/rules
Modified: trunk/libbit-vector-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libbit-vector-perl/debian/changelog?rev=12836&op=diff
==============================================================================
--- trunk/libbit-vector-perl/debian/changelog (original)
+++ trunk/libbit-vector-perl/debian/changelog Wed Jan 16 20:58:48 2008
@@ -1,8 +1,13 @@
libbit-vector-perl (6.4-7) UNRELEASED; urgency=low
+ [ gregor herrmann ]
* Use dist-based URL in debian/watch.
- * Don't install empty /usr/share/perl5 directory.
* debian/rules: delete /usr/share/perl5 only if it exists.
+
+ [ Damyan Ivanov ]
+ * debian/rules:
+ + convert to plain debhelper
+ + install more docs and examples
-- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 01 Dec 2007 22:51:35 +0100
Modified: trunk/libbit-vector-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libbit-vector-perl/debian/rules?rev=12836&op=diff
==============================================================================
--- trunk/libbit-vector-perl/debian/rules (original)
+++ trunk/libbit-vector-perl/debian/rules Wed Jan 16 20:58:48 2008
@@ -1,9 +1,89 @@
#!/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.
-# Put perlmodule.mk last to dh_clean temporary files not in MANIFEST
-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
-binary-install/libbit-vector-perl::
- [ ! -d $(CURDIR)/debian/libbit-vector-perl/usr/share/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(CURDIR)/debian/libbit-vector-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_installexamples examples/*
+ dh_installdocs README.txt CREDITS.txt
+ dh_installchangelogs CHANGES.txt
+ 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