[DRE-commits] [ruby-fix-trinity-output] 01/01: fix man page building

Michael Crusoe misterc-guest at moszumanska.debian.org
Fri Oct 16 23:27:16 UTC 2015


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

misterc-guest pushed a commit to branch master
in repository ruby-fix-trinity-output.

commit 7ee76044213c05e6774df28b95f1df1f8b49986c
Author: Michael R. Crusoe <crusoe at ucdavis.edu>
Date:   Fri Oct 16 16:20:26 2015 -0700

    fix man page building
---
 debian/control | 3 ++-
 debian/rules   | 9 ++++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index cfd05d9..ffe6309 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,8 @@ Build-Depends: debhelper (>= 9~),
                gem2deb,
                rake,
                ruby-trollop (>= 2.0),
-               help2man
+               help2man,
+               ruby-shoulda-context
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-fix-trinity-output.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-fix-trinity-output.git
diff --git a/debian/rules b/debian/rules
index 0af6586..2cf5b24 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,14 +14,17 @@
 # Uncomment to check dependencies during build:
 # export GEM2DEB_TEST_RUNNER = --check-dependencies
 
+version=$(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d-)
+
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
 override_dh_auto_build:
 	dh_auto_build
-	help2man --name "Fix output fastq files from Trinity" \
-		--version-string="1.0.0" bin/fix-trinity-output > \
-		debian/fix-trinity-output.1
+	RUBYLIB=lib/fix-trinity-output help2man --no-info \
+		--name "Fix output fastq files from Trinity" \
+		--version-string=$version bin/fix-trinity-output \
+		> debian/fix-trinity-output.1
 
 override_dh_auto_clean:
 	dh_auto_clean

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-fix-trinity-output.git



More information about the Pkg-ruby-extras-commits mailing list