Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export LC_ALL=C.UTF-8
4
5 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6
7 binaries := $(shell dh_listpackages)
8
9 %:
10 dh $@ --with sphinxdoc --buildsystem=pybuild
11
12 # skip doctest with afmLib and tfmLib due to file loading issue with
13 # dh_auto_test
14 # TOFIX(mwei): find a fix to this
15 export PYBUILD_TEST_ARGS = -k "not afmLib and not tfmLib"
16
17 override_dh_auto_build:
18 python3 MetaTools/buildUCD.py --ucd-path=/usr/share/unicode
19 PYTHONPATH="./Lib" python3 MetaTools/buildTableList.py
20 dh_auto_build
21
22 ifneq ($(filter python-fonttools-doc,$(binaries)),)
23 override_dh_sphinxdoc:
24 sphinx-build $(CURDIR)/Doc/source $(CURDIR)/debian/python-fonttools-doc/usr/share/doc/fonttools/html/
25 dh_sphinxdoc
26 endif