| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
export YARNCOMMAND=pkgjs |
| 4 |
|
| 5 |
# pkgjs creates node_modules/.bin containing some broken links when iterating |
| 6 |
# over js components, and if we're building for multiple versions of python |
| 7 |
# the second build chokes on this |
| 8 |
export PYBUILD_AFTER_BUILD=find . -xtype l -delete |
| 9 |
|
| 10 |
export LC_ALL=C.UTF-8 |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --with=python3,sphinxdoc --buildsystem=pybuild |
| 14 |
|
| 15 |
override_dh_auto_configure: |
| 16 |
dh_auto_configure --buildsystem nodejs |
| 17 |
dh_auto_configure |
| 18 |
|
| 19 |
override_dh_auto_build: |
| 20 |
dh_auto_build --buildsystem nodejs |
| 21 |
dh_auto_build |
| 22 |
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES))) |
| 23 |
PYTHONPATH=. http_proxy='127.0.0.9' https_proxy='127.0.0.9' python3 -m sphinx -N -bhtml docs/source/ build/html |
| 24 |
endif |
| 25 |
|
| 26 |
execute_after_dh_auto_install: |
| 27 |
mv debian/tmp/usr/etc debian/tmp/etc |
| 28 |
|
| 29 |
override_dh_installchangelogs: |
| 30 |
dh_installchangelogs -k CHANGELOG.md |
| 31 |
|
| 32 |
override_dh_installsystemduser: |
| 33 |
dh_installsystemduser --no-enable |