File: rules

package info (click to toggle)
pygtkspellcheck 5.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 612 kB
  • sloc: xml: 3,816; python: 1,397; makefile: 136
file content (18 lines) | stat: -rwxr-xr-x 591 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

export PYBUILD_NAME=gtkspellcheck
export PYBUILD_SYSTEM=pyproject

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

override_dh_auto_build:
	dh_auto_build
	LC_ALL=C PYTHONPATH=. http_proxy='http://127.0.0.1:9/' sphinx-build -N -bhtml docs/source build/sphinx/html

override_dh_install:
	dh_install
	# Upstream does not provide setup.py with the option install_locale any more thus we install this manually
	for lang in `find locale -mindepth 1 -maxdepth 1 -type d` ; do \
	    dh_install -p python3-$(PYBUILD_NAME) $${lang}/*.mo usr/share/$${lang}/LC_MESSAGES ; \
	done