[SCM] librdf-vcard-perl Debian packaging branch, master, updated. debian/0.008-1-16-ge71aa0c

Jonas Smedegaard dr at jones.dk
Sat Jun 23 02:40:22 UTC 2012


The following commit has been merged in the master branch:
commit 509b27331a191ed270cefe8f9cde4d5e6afbeb50
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sat Jun 23 04:06:56 2012 +0200

    Tidy rules file.

diff --git a/debian/rules b/debian/rules
index 41826e6..7e400a1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,23 +21,25 @@ include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/class/perl-makemaker.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
+pkg = $(DEB_SOURCE_PACKAGE)
+
 DEB_UPSTREAM_PACKAGE = RDF-vCard
 DEB_UPSTREAM_URL = http://www.cpan.org/modules/by-module/RDF
 #DEB_UPSTREAM_URL = http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK
 DEB_UPSTREAM_TARBALL_MD5 = 2bc84c6cb43c4fc15fba1f991ca48fa3
 
-# Needed (always/often) at runtime, and also for build process
-common-depends = libcommon-sense-perl, libnamespace-clean-perl, librdf-trine-perl
-common-depends += , librdf-trineshortcuts-perl, libtext-vfile-asdata-perl
-common-recommends = libxml-libxml-perl
+# Needed both by upstream build and (always/often) at runtime
+perl-deps = common-sense namespace-clean rdf-trine rdf-trineshortcuts text-vfile-asdata
+deps = $(patsubst %,$(comma) lib%-perl,$(perl-deps))
+deps-recommend = libxml-libxml-perl
 
-CDBS_BUILD_DEPENDS += , $(common-depends), $(common-recommends)
-CDBS_DEPENDS_ALL = $(common-depends)
-CDBS_RECOMMENDS_ALL = $(common-recommends)
+CDBS_BUILD_DEPENDS += , $(deps), $(deps-recommend)
+CDBS_DEPENDS_$(pkg) = $(deps)
+CDBS_RECOMMENDS_ALL = $(deps-recommend)
 
-DEB_INSTALL_EXAMPLES_ALL += bin/*
+DEB_INSTALL_EXAMPLES_$(pkg) = bin/*
 
 # make sure scripts aren't shipped in /usr/bin *in addition* to examples
-install/librdf-vcard-perl::
-	rm debian/librdf-vcard-perl/usr/bin/vcard2*
-	rmdir debian/librdf-vcard-perl/usr/bin
+install/$(pkg)::
+	rm $(cdbs_curdestdir)usr/bin/vcard2*
+	rmdir $(cdbs_curdestdir)usr/bin

-- 
librdf-vcard-perl Debian packaging



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