[libapp-cpants-lint-perl] 07/09: Add new binary package, providing commandline tool.

Jonas Smedegaard dr at jones.dk
Mon May 2 07:28:56 UTC 2016


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

js pushed a commit to branch master
in repository libapp-cpants-lint-perl.

commit 68f629ac1333ecd9a20ee53bf340020effb672dd
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun May 1 17:19:47 2016 +0200

    Add new binary package, providing commandline tool.
---
 debian/control.in | 16 +++++++++++++++-
 debian/rules      | 19 +++++++++++++------
 2 files changed, 28 insertions(+), 7 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index 016ad19..26711d3 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -16,7 +16,21 @@ Depends: ${cdbs:Depends},
  ${perl:Depends}
 Replaces: ${cdbs:Replaces}
 Breaks: ${cdbs:Breaks}
-Description: commandline frontend to Module::CPANTS::Analyse
+Description: commandline frontend to Module::CPANTS::Analyse - library
  cpants_lint checks the Kwalitee of a CPAN distribution.  More exact, it
  checks how a given tarball will be rated on <http://cpants.perl.org>,
  without needing to upload it first.
+ .
+ This package provides the App::CPANTS::Lint library for cpants_lint.
+
+Package: cpants-lint
+Architecture: all
+Depends: ${cdbs:Depends},
+ ${misc:Depends},
+ ${perl:Depends}
+Description: commandline frontend to Module::CPANTS::Analyse - tool
+ cpants_lint checks the Kwalitee of a CPAN distribution.  More exact, it
+ checks how a given tarball will be rated on <http://cpants.perl.org>,
+ without needing to upload it first.
+ .
+ This package provides the cpants_lint commandline tool.
diff --git a/debian/rules b/debian/rules
index 900d5bc..0cbed09 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,6 +21,7 @@ include /usr/share/cdbs/1/class/perl-makemaker.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
 pkg = $(DEB_SOURCE_PACKAGE)
+pkg-bin = cpants-lint
 
 # Build-depend unversioned on debhelper
 #  TODO: Drop when adopted in cdbs
@@ -40,13 +41,19 @@ deps-test = libtest-useallmodules-perl
 
 CDBS_BUILD_DEPENDS +=, $(bdeps), $(deps), $(deps-test)
 CDBS_DEPENDS_$(pkg) = $(deps)
+CDBS_DEPENDS_$(pkg-bin) = $(pkg)
 CDBS_REPLACES_$(pkg) = $(replaces-binary)
 CDBS_BREAKS_$(pkg) = $(replaces-binary)
 
 # Strip extension from executable and its man page
-binary-post-install/$(pkg)::
-	mv $(cdbs_curdestdir)usr/bin/cpants_lint.pl \
-		$(cdbs_curdestdir)usr/bin/cpants_lint
-	mv $(cdbs_curdestdir)usr/share/man/man1/cpants_lint.pl.1p \
-		$(cdbs_curdestdir)usr/share/man/man1/cpants_lint.1p
-
+DEB_INSTALL_DIRS_$(pkg-bin) = /usr/bin /usr/share/man/man1
+$(patsubst %,binary-post-install/%,$(pkg) $(pkg-bin)):: \
+ debian-install-bin
+debian-install-bin:
+	mv debian/$(pkg)/usr/bin/cpants_lint.pl \
+		debian/$(pkg-bin)/usr/bin/cpants_lint
+	mv debian/$(pkg)/usr/share/man/man1/cpants_lint.pl.1p \
+		debian/$(pkg-bin)/usr/share/man/man1/cpants_lint.1p
+	touch $@
+clean::
+	rm -rf debian-install-bin

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



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