[libatombus-perl] 07/14: Tidy rules file: Reorganize CDBS-related variables.

Jonas Smedegaard dr at jones.dk
Sun Nov 22 10:32:59 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository libatombus-perl.

commit bf2338d4c1d330fc867cc61126cf1ab6f6374571
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Nov 22 10:52:46 2015 +0100

    Tidy rules file: Reorganize CDBS-related variables.
---
 debian/rules | 18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/debian/rules b/debian/rules
index 26abbb1..ca72c76 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,8 @@ 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 = AtomBus
 #DEB_UPSTREAM_URL = http://www.cpan.org/modules/by-module/AtomBus
 DEB_UPSTREAM_URL = http://search.cpan.org/CPAN/authors/id/I/IR/IRONCAMEL
@@ -30,16 +32,16 @@ DEB_UPSTREAM_TARBALL_MD5 = e9e059e5b5187d777ac91064ed718b78
 #  TODO: Drop when adopted in cdbs
 CDBS_BUILD_DEPENDS_rules_debhelper_v9 = debhelper
 
-# Needed both by upstream build process and at runtime
-common-depends = libatompub-perl, libcapture-tiny-perl, libdancer-perl, libdancer-plugin-dbic-perl
-common-depends += , libdbd-sqlite3-perl, libdbix-class-perl, libsql-translator-perl, libuuid-tiny-perl
-common-depends += , libxml-atom-perl, libxml-xpath-perl
+# Needed by upstream build and (always) at runtime
+perl-deps = atompub capture-tiny dancer dancer-plugin-dbic dbd-sqlite3
+perl-deps += dbix-class sql-translator uuid-tiny xml-atom xml-xpath
+deps = $(patsubst %,$(comma) lib%-perl,$(perl-deps))
 
-CDBS_BUILD_DEPENDS += , $(common-depends)
-CDBS_DEPENDS_ALL = $(common-depends)
+# Needed by upstream testsuite
+deps-test +=, libcapture-tiny-perl
 
-# Needed by upstream tests
-CDBS_BUILD_DEPENDS += , libcapture-tiny-perl
+CDBS_BUILD_DEPENDS +=, $(deps), $(deps-test)
+CDBS_DEPENDS_$(pkg) = $(deps)
 
 DEB_INSTALL_EXAMPLES_ALL = config.yml environments public
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libatombus-perl.git



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