| 1 |
|
| 2 |
|
| 3 |
export PYBUILD_NAME=csvkit |
| 4 |
export PYBUILD_BEFORE_TEST=cp -r examples {build_dir} |
| 5 |
export PYBUILD_AFTER_TEST=rm -rf {build_dir}/examples |
| 6 |
|
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_auto_clean: |
| 12 |
dh_auto_clean |
| 13 |
rm -rf csvkit.egg-info |
| 14 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 15 |
$(MAKE) -C docs clean |
| 16 |
endif |
| 17 |
|
| 18 |
override_dh_auto_build: export http_proxy=127.0.0.1:9 |
| 19 |
override_dh_auto_build: export https_proxy=127.0.0.1:9 |
| 20 |
override_dh_auto_build: |
| 21 |
dh_auto_build |
| 22 |
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS))) |
| 23 |
PYTHONPATH=$(CURDIR) $(MAKE) -C docs html |
| 24 |
endif |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
LC_ALL=C.UTF-8 LANGUAGE=en_US:en dh_auto_test |
| 28 |
|
| 29 |
override_dh_install: |
| 30 |
dh_install |
| 31 |
dh_movefiles --package=csvkit --sourcedir=debian/python3-csvkit usr/bin/* |
| 32 |
dh_movefiles --package=csvkit --sourcedir=debian/python3-csvkit usr/share/man/* |
| 33 |
find debian/python3-csvkit/usr/share/man -type d -empty -delete |
| 34 |
find debian/python3-csvkit/ -name stdin_out.csv | xargs --no-run-if-empty rm |
| 35 |
|
| 36 |
find debian/csvkit/usr/share/man -name "*.1" | \ |
| 37 |
xargs -r sed -i 's/^\.ft C$$/.ft CR/' |