[med-svn] [spades] 02/03: build manpages

Sascha Steinbiss sascha at steinbiss.name
Thu Feb 11 16:01:55 UTC 2016


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

sascha-guest pushed a commit to branch master
in repository spades.

commit 77b7d4f78bf8f9e6632d2b1c56b2476e1e8ea9be
Author: Sascha Steinbiss <sascha at steinbiss.name>
Date:   Thu Feb 11 15:58:59 2016 +0000

    build manpages
---
 debian/control  |  1 +
 debian/links    |  3 +++
 debian/manpages |  2 +-
 debian/rules    | 10 ++++++++++
 4 files changed, 15 insertions(+), 1 deletion(-)

diff --git a/debian/control b/debian/control
index 6f1c609..2500a99 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Build-Depends: debhelper (>= 9),
                libhts-dev,
                python-yaml,
                python-joblib,
+               ruby-ronn,
                bwa,
                lynx
 Standards-Version: 3.9.6
diff --git a/debian/links b/debian/links
index d22e7e6..0f2d0a6 100644
--- a/debian/links
+++ b/debian/links
@@ -5,3 +5,6 @@ usr/bin/spades  usr/bin/dipspades
 usr/bin/spades  usr/bin/truspades.py
 usr/bin/spades  usr/bin/truspades
 usr/bin/bwa     usr/lib/spades/bin/bwa-spades
+usr/share/man/man1/spades.1.gz /usr/share/man/man1/spades.py.1.gz
+usr/share/man/man1/dipspades.1.gz /usr/share/man/man1/dipspades.py.1.gz
+usr/share/man/man1/truspades.1.gz /usr/share/man/man1/truspades.py.1.gz
diff --git a/debian/manpages b/debian/manpages
index 63ab24a..19f429f 100644
--- a/debian/manpages
+++ b/debian/manpages
@@ -1 +1 @@
-debian/mans/*
+debian/man/*
diff --git a/debian/rules b/debian/rules
index 6a156b9..a6eb2f1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,6 +9,8 @@ LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
 DEBPKGNAME := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 TMPDIR     := $(CURDIR)/install_spades
 LIBDIR     := debian/$(DEBPKGNAME)/usr/lib/spades
+mandir     := $(CURDIR)/debian/man
+debfolder  := $(CURDIR)/debian
 
 PREFIX:=/usr
 BUILD_DIR:=$(CURDIR)/build_spades
@@ -27,6 +29,8 @@ override_dh_auto_clean:
 	rm -rf install_spades
 	rm -rf spades_test
 	find . -name "*.pyc" -delete
+	rm -rf $(debfolder)/man_src/*.html $(debfolder)/man_src/*.?
+	rm -rf $(mandir)
 
 override_dh_auto_configure:
 	echo "Simply use spades_compile.sh in auto_build"
@@ -34,6 +38,12 @@ override_dh_auto_configure:
 override_dh_auto_build:
 	PREFIX=$(TMPDIR) ./spades_compile.sh
 
+override_dh_installman:
+	mkdir -p $(mandir)
+	ronn $(debfolder)/man_src/*.ronn
+	cp $(debfolder)/man_src/*.? $(mandir)
+	dh_installman --
+
 override_dh_auto_test:
 	$(TMPDIR)/bin/spades.py --test
 	$(TMPDIR)/bin/dipspades.py --test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/spades.git



More information about the debian-med-commit mailing list