[med-svn] [plip] 11/14: d/rules: Don't forget to install all other files, tweak help2man options

Alex Mestiashvili malex-guest at moszumanska.debian.org
Thu Mar 24 16:43:57 UTC 2016


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

malex-guest pushed a commit to branch master
in repository plip.

commit c77c7b774b6000a72458153a006ac430cea19494
Author: Alexandre Mestiashvili <alex at biotec.tu-dresden.de>
Date:   Thu Mar 24 14:56:57 2016 +0100

    d/rules: Don't forget to install all other files, tweak help2man options
---
 debian/rules | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/rules b/debian/rules
index de66563..dd3ff74 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,12 +4,17 @@ export PYBUILD_NAME=plip
 %:
 	dh $@ --with python2 --buildsystem=pybuild
 
-override_dh_auto_test:
-	debian/tests/special-cases
-
-HELP2MAN = help2man --no-info --help-option="-h" --no-discard-stderr
 mandir := $(CURDIR)/debian/$(PYBUILD_NAME)/usr/share/man/man1
+version := $(shell dpkg-parsechangelog --show-field=Version)
+HELP2MAN := help2man --no-info --no-discard-stderr --version-string="$(version)"
+PYTHON_DEFAULT_VERSION := $(shell pyversions -d)
 
 override_dh_auto_install:
+	dh_auto_install
 	mkdir -p $(mandir)
-	$(HELP2MAN)  --name='Protein-Ligand Interaction Profiler (PLIP)' plip/plipcmd > $(mandir)/plipcmd.1
+	export PYTHONPATH=$(CURDIR)/debian/$(PYBUILD_NAME)/usr/lib/$(PYTHON_DEFAULT_VERSION)/dist-packages/; \
+    $(HELP2MAN)  --name='Protein-Ligand Interaction Profiler (PLIP)' \
+    $(CURDIR)/debian/$(PYBUILD_NAME)/usr/bin/plipcmd > $(mandir)/plipcmd.1
+
+override_dh_auto_test:
+	debian/tests/special-cases

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



More information about the debian-med-commit mailing list