r21009 - in /trunk/libdate-pcalc-perl: Makefile blib/ debian/changelog debian/rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Jun 14 14:26:22 UTC 2008
Author: gregoa
Date: Sat Jun 14 14:26:21 2008
New Revision: 21009
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=21009
Log:
* Refresh debian/rules; install upstream changelog and mini-FAQ; add tools
to examples.
* Remove created Makefile and blib/ directory from source package.
Removed:
trunk/libdate-pcalc-perl/Makefile
trunk/libdate-pcalc-perl/blib/
Modified:
trunk/libdate-pcalc-perl/debian/changelog
trunk/libdate-pcalc-perl/debian/rules
Modified: trunk/libdate-pcalc-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-pcalc-perl/debian/changelog?rev=21009&op=diff
==============================================================================
--- trunk/libdate-pcalc-perl/debian/changelog (original)
+++ trunk/libdate-pcalc-perl/debian/changelog Sat Jun 14 14:26:21 2008
@@ -12,6 +12,9 @@
* Set Standards-Version to 3.7.3 (no changes).
* Set debhelper compatibility level to 5.
* debian/copyright: add upstream source location.
+ * Refresh debian/rules; install upstream changelog and mini-FAQ; add tools
+ to examples.
+ * Remove created Makefile and blib/ directory from source package.
-- gregor herrmann <gregoa at debian.org> Sat, 14 Jun 2008 16:03:27 +0200
Modified: trunk/libdate-pcalc-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libdate-pcalc-perl/debian/rules?rev=21009&op=diff
==============================================================================
--- trunk/libdate-pcalc-perl/debian/rules (original)
+++ trunk/libdate-pcalc-perl/debian/rules Sat Jun 14 14:26:21 2008
@@ -1,88 +1,61 @@
#!/usr/bin/make -f
-#-*- makefile -*-
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Christoph Lameter.
+# 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
-export DH_COMPAT=3
-PACKAGE=$(shell dh_listpackages)
+# 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
-ifndef PERL
-PERL = /usr/bin/perl
-endif
-
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP =`pwd`/debian/$(PACKAGE)
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
dh_testdir
-
-
- # Add here commands to compile the package.
$(PERL) Makefile.PL INSTALLDIRS=vendor
- $(MAKE) OPTIMIZE="-O2 -g -Wall"
-
- touch build-stamp
+ $(MAKE)
+ $(MAKE) test
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
- # Add here commands to clean up after the build process.
- -$(MAKE) realclean
-
- dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/lib/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/lib/perl5
+ touch $@
- # Add here commands to install the package into debian/tmp.
- #$(MAKE) install DESTDIR=`pwd`/debian/tmp
- $(MAKE) install PREFIX=$(TMP)/usr
+binary-arch:
+# We have nothing to do here for an architecture-independent package
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-# Build architecture-independent files here.
binary-indep: build install
-# dh_testversion
dh_testdir
dh_testroot
- dh_installdocs README.txt
- dh_installexamples
- dh_installmenu
-# dh_installemacsen
-# dh_installinit
- dh_installcron
- dh_installman
-# dh_undocumented
- dh_installchangelogs
- dh_link
- dh_strip
+ dh_installexamples -Xconvert.bat examples/* tools
+ dh_installdocs README.txt pcalc.html
+ dh_installchangelogs CHANGES.txt
+ dh_perl
dh_compress
dh_fixperms
-# dh_makeshlibs
dh_installdeb
- dh_perl
- dh_shlibdeps
dh_gencontrol
dh_md5sums
- dh_builddeb --destdir=$(DESTDIR)
-
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+ dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list