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 36 37 38 39
|
#!/usr/bin/make -f
export PYBUILD_NAME=csvkit
export PYBUILD_BEFORE_TEST=cp -r examples {build_dir}
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
override_dh_auto_clean:
dh_auto_clean
rm -rf csvkit.egg-info
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
$(MAKE) -C docs clean
endif
override_dh_auto_build: export http_proxy=127.0.0.1:9
override_dh_auto_build: export https_proxy=127.0.0.1:9
override_dh_auto_build:
dh_auto_build
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
PYTHONPATH=$(CURDIR) $(MAKE) -C docs html
endif
override_dh_auto_test:
LC_ALL=C.UTF-8 dh_auto_test
override_dh_install:
dh_install
dh_movefiles --package=csvkit --sourcedir=debian/python3-csvkit usr/bin/*
find debian/python3-csvkit/ -name stdin_out.csv | xargs --no-run-if-empty rm
override_dh_installman:
mkdir debian/manpages
for FILE in debian/csvkit/usr/bin/*; \
do PYTHONPATH=. help2man $${FILE} > debian/manpages/$$(basename $${FILE}).1; \
dh_installman debian/manpages/$$(basename $${FILE}).1; \
done
rm -rf debian/manpages
|