File: rules

package info (click to toggle)
fonttools 4.57.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 27,096 kB
  • sloc: python: 140,455; xml: 103; makefile: 41
file content (24 lines) | stat: -rwxr-xr-x 663 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

export LC_ALL=C.UTF-8

binaries := $(shell dh_listpackages)

%:
	dh $@ --with sphinxdoc --buildsystem=pybuild

# skip doctest with afmLib and tfmLib due to file loading issue with
# dh_auto_test
# TOFIX(mwei): find a fix to this
export PYBUILD_TEST_ARGS = -k "not afmLib and not tfmLib"

override_dh_auto_build:
	python3 MetaTools/buildUCD.py --ucd-path=/usr/share/unicode
	PYTHONPATH="./Lib" python3 MetaTools/buildTableList.py
	dh_auto_build

ifneq ($(filter python-fonttools-doc,$(binaries)),)
override_dh_sphinxdoc:
	sphinx-build $(CURDIR)/Doc/source $(CURDIR)/debian/python-fonttools-doc/usr/share/doc/fonttools/html/
	dh_sphinxdoc
endif