debian: use pybuild and dh_sphinxdoc
Use pybuild because it's kind of standard nowadays.
Use sphinxdoc debhelper to have a Depends: libjs-sphinxdoc and common
files (JS/CSS) symlinked.
--- a/debian/changelog Tue Oct 15 11:41:22 2019 +0200
+++ b/debian/changelog Fri Oct 11 17:05:37 2019 +0200
@@ -1,3 +1,9 @@
+mercurial-evolve (9.2.1-1.1) UNRELEASED; urgency=medium
+
+ * build with pybuild and sphinxdoc
+
+ -- Denis Laxalde <denis.laxalde@logilab.fr> Tue, 15 Oct 2019 11:41:40 +0200
+
mercurial-evolve (9.2.1-1) unstable; urgency=medium
* new upstream release
--- a/debian/control Tue Oct 15 11:41:22 2019 +0200
+++ b/debian/control Fri Oct 11 17:05:37 2019 +0200
@@ -10,10 +10,12 @@
mercurial (>= 4.5),
python,
debhelper (>= 8),
+ dh-python,
python-sphinx (>= 1.0.8),
imagemagick,
librsvg2-bin,
wget,
+ sphinx-common,
X-Python-Version: >= 2.7
Homepage: https://www.mercurial-scm.org/doc/evolution/
@@ -22,7 +24,9 @@
Depends:
${python:Depends},
${misc:Depends},
+ ${sphinxdoc:Depends},
mercurial (>= 4.5),
+Built-Using: ${sphinxdoc:Built-Using}
Description: evolve extension for Mercurial
This package provides the experimental "evolve" extension for the Mercurial
DVCS.
--- a/debian/rules Tue Oct 15 11:41:22 2019 +0200
+++ b/debian/rules Fri Oct 11 17:05:37 2019 +0200
@@ -2,7 +2,7 @@
#export DH_VERBOSE=1
%:
- dh $@ --with python2 --buildsystem=python_distutils
+ dh $@ --with python2,sphinxdoc --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build