| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 6 |
|
| 7 |
export PYBUILD_NAME=guiqwt |
| 8 |
|
| 9 |
export LC_ALL=C |
| 10 |
|
| 11 |
%: |
| 12 |
dh $@ --buildsystem=pybuild |
| 13 |
|
| 14 |
execute_before_dh_clean: |
| 15 |
# remove the cython generated files distributed by upstream |
| 16 |
rm -f $(patsubst %.pyx,%.c,$(wildcard src/*.pyx)) |
| 17 |
rm -rf doc/build |
| 18 |
|
| 19 |
override_dh_auto_build-arch: PYBUILD_BUILD_ARGS=--no-doc |
| 20 |
override_dh_auto_build-arch: |
| 21 |
dh_auto_build |
| 22 |
|
| 23 |
execute_after_dh_auto_build-indep: |
| 24 |
dh_auto_build -- -s custom --build-args="cd doc && PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' {interpreter} -m sphinx -N -bhtml . build/html" |
| 25 |
|
| 26 |
execute_after_dh_auto_install-arch: |
| 27 |
# install the .desktop files |
| 28 |
dh_install -p python3-guiqwt debian/guiqwt-tests.desktop /usr/share/applications |
| 29 |
dh_install -p python3-guiqwt debian/sift.desktop /usr/share/applications |
| 30 |
# install the qtdesigner files |
| 31 |
dh_install -p python3-guiqwt qtdesigner/*.py /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/plugins/designer/python |
| 32 |
|
| 33 |
execute_after_dh_auto_install-indep: |
| 34 |
dh_installdocs "doc/build/html" -p python-guiqwt-doc --doc-main-package=python-guiqwt-doc |
| 35 |
|
| 36 |
execute_after_dh_python3: |
| 37 |
dh_python3 -p python3-guiqwt /usr/lib/$(DEB_HOST_MULTIARCH)/qt5/plugins/designer/python |