r21067 - in /trunk/libfont-ttf-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Sat Jun 14 19:56:51 UTC 2008


Author: gregoa
Date: Sat Jun 14 19:56:51 2008
New Revision: 21067

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=21067
Log:
Refresh debian/rules. Install new "real" upstream changelog. Move
lib/ttfmod.pl to examples. Fix permissions of Manual.pod.

Modified:
    trunk/libfont-ttf-perl/debian/changelog
    trunk/libfont-ttf-perl/debian/rules

Modified: trunk/libfont-ttf-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-ttf-perl/debian/changelog?rev=21067&op=diff
==============================================================================
--- trunk/libfont-ttf-perl/debian/changelog (original)
+++ trunk/libfont-ttf-perl/debian/changelog Sat Jun 14 19:56:51 2008
@@ -9,6 +9,8 @@
   * Make dependency on quilt versioned.
   * debian/copyright: update years of packaging copyright; change order of
     stanzas.
+  * Refresh debian/rules. Install new "real" upstream changelog. Move
+    lib/ttfmod.pl to examples. Fix permissions of Manual.pod.
 
  -- gregor herrmann <gregoa at debian.org>  Sat, 14 Jun 2008 21:32:29 +0200
 

Modified: trunk/libfont-ttf-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libfont-ttf-perl/debian/rules?rev=21067&op=diff
==============================================================================
--- trunk/libfont-ttf-perl/debian/rules (original)
+++ trunk/libfont-ttf-perl/debian/rules Sat Jun 14 19:56:51 2008
@@ -1,6 +1,8 @@
 #!/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.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
@@ -9,21 +11,16 @@
 # 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
 include /usr/share/quilt/quilt.make
 
-TMP = $(CURDIR)/debian/$(PACKAGE)
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor \
-		INSTALLVENDORARCH=/usr/share/perl5/ \
-		VENDORARCHEXP=/usr/share/perl5/
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
 	touch $@
@@ -32,7 +29,7 @@
 	dh_testdir
 	dh_testroot
 	dh_clean build-stamp install-stamp
-	[ ! -f Makefile ] || $(MAKE) distclean
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
 install-stamp: build-stamp
@@ -40,17 +37,23 @@
 	dh_testroot
 	dh_clean -k
 	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
-	rm $(TMP)/usr/share/perl5/Font/TTF/Changes
-	touch install-stamp
+	$(RM) $(TMP)/usr/share/perl5/Font/TTF/Changes
+	$(RM) $(TMP)/usr/share/perl5/ttfmod.pl
+	chmod 644 $(TMP)/usr/share/perl5/Font/TTF/Manual.pod
+	[ ! -d $(TMP)/usr/lib/perl5 ] || \
+		rmdir --ignore-fail-on-non-empty --parents --verbose \
+		$(TMP)/usr/lib/perl5
+	touch $@
 
 binary-arch:
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-independent package
 
 binary-indep: build install
 	dh_testdir
 	dh_testroot
+	dh_installexamples lib/ttfmod.pl
 	dh_installdocs README.TXT
-	dh_installchangelogs lib/Font/TTF/Changes
+	dh_installchangelogs Changes
 	dh_perl
 	dh_compress
 	dh_fixperms
@@ -60,4 +63,4 @@
 	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