...
 
Commits (2)
fava (1.9-4) UNRELEASED; urgency=medium
* generate manpage with help2man and ship it
* rules: do not ship __pycache__ dirs as part of help files
-- Stefano Zacchiroli <zack@debian.org> Fri, 11 Jan 2019 10:30:15 +0100
fava (1.9-3) unstable; urgency=medium
* compat: bump debhelper level to 12
......
......@@ -6,6 +6,7 @@ Uploaders: Stefano Zacchiroli <zack@debian.org>,
Pierre-Elliott Bécue <peb@debian.org>
Build-Depends: debhelper (>= 12~),
dh-python,
help2man <!nodoc>,
python3-all,
python3-babel,
python3-beancount,
......
[SEE ALSO]
Beancount documentation: /usr/share/doc/beancount
debian/manpages/fava.1
......@@ -8,5 +8,23 @@ export PYBUILD_NAME=fava
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_auto_build:
dh_auto_build
# manpage generation: use help2man + manual overrides from d/manpages/fava.tpl
ifeq ($(filter nodoc,$(DEB_BUILD_PROFILES)),)
help2man \
--name "Web interface for the double-entry accounting tool Beancount" \
--no-info \
--include $(CURDIR)/debian/manpages/fava.tpl \
"$$(pybuild --print interpreter --interpreter python3) -m fava.cli" \
> $(CURDIR)/debian/manpages/fava.1
sed -i s/cli.py/fava/ $(CURDIR)/debian/manpages/fava.1
endif
override_dh_auto_clean:
dh_auto_clean
rm -f debian/manpages/fava.1
override_dh_installdocs:
dh_installdocs -X __init__.py
dh_installdocs -X __init__.py -X __pycache__