[Pkg-privacy-commits] [monkeysign] 01/01: try to ship the sphinx documentation with the package, untested

Ximin Luo infinity0 at moszumanska.debian.org
Sat Aug 22 13:34:17 UTC 2015


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

infinity0 pushed a commit to branch dev/sphinx-build
in repository monkeysign.

commit 02384323541be4b0ee6260f84cde11dacd21c414
Author: Antoine Beaupré <anarcat at koumbit.org>
Date:   Sat Oct 18 15:00:02 2014 -0400

    try to ship the sphinx documentation with the package, untested
---
 debian/control  | 1 +
 debian/doc-base | 4 ++--
 debian/docs     | 3 +--
 debian/rules    | 6 +++++-
 setup.cfg       | 5 +++++
 5 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index fac8a55..a284f9f 100644
--- a/debian/control
+++ b/debian/control
@@ -10,6 +10,7 @@ Build-Depends: debhelper (>= 9)
              , python-zbar
              , python-zbarpygtk
              , python-docutils
+             , python-sphinx
 Standards-Version: 3.9.6
 Homepage: http://web.monkeysphere.info/monkeysign
 Vcs-Git: git://git.monkeysphere.info/monkeysign
diff --git a/debian/doc-base b/debian/doc-base
index d3edfbb..20e3955 100644
--- a/debian/doc-base
+++ b/debian/doc-base
@@ -8,5 +8,5 @@ Format: text
 Files: /usr/share/doc/monkeysign/presentation.rst
 
 Format: HTML
-Index: /usr/share/doc/monkeysign/presentation.html
-Files: /usr/share/doc/monkeysign/presentation.html
+Index: /usr/share/doc/monkeysign/html/index.html
+Files: /usr/share/doc/monkeysign/html/
diff --git a/debian/docs b/debian/docs
index 693b6e0..b604cf9 100644
--- a/debian/docs
+++ b/debian/docs
@@ -1,4 +1,3 @@
 README.mdwn
 HACKING.mdwn
-doc/presentation*
-doc/ui/
+doc/html/
diff --git a/debian/rules b/debian/rules
index a7baa54..edc9562 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,10 +8,14 @@
 export DH_OPTIONS
 
 %:
-	dh $@  --with=python2
+	dh $@  --with=python2,sphinxdoc
 
 override_dh_auto_install:
 	dh_auto_install
         # workaround a limitation in distutils, see
         # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743150
 	ln -sf monkeysign debian/monkeysign/usr/bin/monkeyscan
+
+override_dh_auto_build:
+	dh_auto_build
+	python setup.py build_sphinx
diff --git a/setup.cfg b/setup.cfg
index b12e400..90530dd 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -5,3 +5,8 @@ parsers=monkeysign:monkeysign.cli:MonkeysignCli.parser
 
 [build_slides]
 file=doc/presentation.rst
+
+[build_sphinx]
+source-dir = doc
+build-dir  = doc
+all_files  = 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/monkeysign.git



More information about the Pkg-privacy-commits mailing list