debian: package HTML docs

This is particularly useful for the docs for the notmuch2 python
bindings, which are otherwise not packaged.
This commit is contained in:
David Bremner 2022-01-26 09:30:46 -04:00
parent 5c183d814b
commit 11f03c87a2
2 changed files with 19 additions and 3 deletions

18
debian/control vendored
View file

@ -56,7 +56,8 @@ Recommends:
gnupg-agent, gnupg-agent,
gpgsm, gpgsm,
Suggests: Suggests:
mailscripts mailscripts,
notmuch-doc,
Description: thread-based email index, search and tagging Description: thread-based email index, search and tagging
Notmuch is a system for indexing, searching, reading, and tagging Notmuch is a system for indexing, searching, reading, and tagging
large collections of email messages in maildir or mh format. It uses large collections of email messages in maildir or mh format. It uses
@ -65,6 +66,21 @@ Description: thread-based email index, search and tagging
. .
This package contains the notmuch command-line interface This package contains the notmuch command-line interface
Package: notmuch-doc
Architecture: all
Depends:
${misc:Depends},
${sphinxdoc:Depends},
Suggests:
notmuch
Description: thread-based email index, search and tagging
Notmuch is a system for indexing, searching, reading, and tagging
large collections of email messages in maildir or mh format. It uses
the Xapian library to provide fast, full-text search with a very
convenient search syntax.
.
This package contains the HTML documentation
Package: libnotmuch5 Package: libnotmuch5
Section: libs Section: libs
Architecture: any Architecture: any

4
debian/rules vendored
View file

@ -3,7 +3,7 @@
export DEB_BUILD_MAINT_OPTIONS = hardening=+all export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%: %:
dh $@ --with python3,elpa dh $@ --with python3,elpa,sphinxdoc
override_dh_auto_configure: override_dh_auto_configure:
BASHCMD=/bin/bash ./configure --prefix=/usr \ BASHCMD=/bin/bash ./configure --prefix=/usr \
@ -19,7 +19,7 @@ override_dh_auto_test:
dh_auto_test -- V=1 dh_auto_test -- V=1
override_dh_auto_build: override_dh_auto_build:
dh_auto_build -- V=1 dh_auto_build -- V=1 all sphinx-html
PYBUILD_NAME=notmuch dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python PYBUILD_NAME=notmuch dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python
PYBUILD_NAME=notmuch2 dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python-cffi PYBUILD_NAME=notmuch2 dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python-cffi
$(MAKE) -C contrib/notmuch-mutt $(MAKE) -C contrib/notmuch-mutt