[med-svn] [dcm2niix] 06/07: Build and install the manpages with Sphinx
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu May 11 18:39:08 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/experimental
in repository dcm2niix.
commit 3a9a64d7c03be6bbea9826c06b390a67a93d2cf0
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Thu May 11 18:36:03 2017 +0100
Build and install the manpages with Sphinx
---
debian/control | 1 +
debian/lintian-overrides | 3 ---
debian/manpages | 1 +
debian/rules | 8 ++++++++
4 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/debian/control b/debian/control
index e23d36d..e1c20c3 100644
--- a/debian/control
+++ b/debian/control
@@ -7,6 +7,7 @@ Build-Depends: cmake,
debhelper (>= 10),
libopenjp2-7-dev,
libyaml-cpp-dev,
+ python3-sphinx,
zlib1g-dev
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/dcm2niix.git
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
deleted file mode 100644
index 998cb48..0000000
--- a/debian/lintian-overrides
+++ /dev/null
@@ -1,3 +0,0 @@
-# Upstream does not provide manpages yet.
-# https://github.com/rordenlab/dcm2niix/issues/64
-binary-without-manpage
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..b19f8c8
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+build/man/*
diff --git a/debian/rules b/debian/rules
index aaadbfe..08677c4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,8 +11,16 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@ --sourcedirectory=console --buildsystem=cmake
+override_dh_auto_clean:
+ dh_auto_clean
+ $(RM) -rf build/man
+
override_dh_auto_configure:
dh_auto_configure -- -DBATCH_VERSION=ON \
-DUSE_STATIC_RUNTIME=OFF \
-DUSE_SYSTEM_ZLIB=ON \
-DUSE_OPENJPEG=ON
+
+override_dh_auto_build:
+ dh_auto_build
+ sphinx-build -N -b man docs/source build/man
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/dcm2niix.git
More information about the debian-med-commit
mailing list