1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/make -f
#export LDFLAGS= $(shell dpkg-buildflags --get LDFLAGS) -shared
export PYBUILD_NAME=guiqwt
export PYBUILD_BUILD_ARGS=--no-doc
%:
dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
override_dh_clean:
# remove the cython generated files distributed by upstream
rm -f $(patsubst %.pyx,%.c,$(wildcard src/*.pyx))
rm -rf doc/build
dh_clean
override_dh_auto_install:
dh_auto_install
dh_numpy
dh_numpy3
# install the .desktop files
dh_install -p python-guiqwt debian/guiqwt-tests-py2.desktop /usr/share/applications
dh_install -p python3-guiqwt debian/guiqwt-tests-py3.desktop /usr/share/applications
dh_install -p python-guiqwt debian/sift-py2.desktop /usr/share/applications
dh_install -p python3-guiqwt debian/sift-py3.desktop /usr/share/applications
# install the qtdesigner files
dh_install -p python-guiqwt qtdesigner/*.py /usr/lib/qt4/plugins/designer/python
override_dh_sphinxdoc:
ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
PYBUILD_SYSTEM=custom \
PYBUILD_BUILD_ARGS="cd doc && PYTHONPATH={build_dir} http_proxy='127.0.0.1:9' {interpreter} -c \"import sys;from sphinx import main;sys.exit(main(sys.argv))\" -N -bhtml . build/html" dh_auto_build # HTML generator
dh_installdocs "doc/build/html" -p python-guiqwt-doc
dh_sphinxdoc -O--buildsystem=pybuild
endif
|