| 1 |
#!/usr/bin/make -f |
| 2 |
include /usr/share/dpkg/default.mk |
| 3 |
TESTDIR := debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/tests |
| 4 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 5 |
|
| 6 |
%: |
| 7 |
dh $@ --buildsystem=pybuild |
| 8 |
|
| 9 |
execute_after_dh_fixperms: |
| 10 |
find debian -name checkLibraries.R -exec chmod +x \{\} \; |
| 11 |
find debian -name runGeneral.R -exec chmod +x \{\} \; |
| 12 |
|
| 13 |
override_dh_auto_test: |
| 14 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 15 |
set -e \ |
| 16 |
; for py3 in $(shell py3versions -vs) \ |
| 17 |
; do cd mapdamage \ |
| 18 |
; PATH=$(PATH):$(CURDIR)/.pybuild/cpython3_$${py3}/scripts \ |
| 19 |
PYTHONPATH=$(shell pybuild --print build_dir --interpreter python3) \ |
| 20 |
python3 mp_test.py \ |
| 21 |
; cd - \ |
| 22 |
; done |
| 23 |
endif |
| 24 |
|
| 25 |
override_dh_python3: |
| 26 |
dh_python3 --no-ext-rename |
| 27 |
|
| 28 |
execute_after_dh_auto_clean: |
| 29 |
rm -f mapdamage/_version.py |
| 30 |
rm -f mapdamage/tests/results/Fragmisincorporation_plot.pdf |
| 31 |
rm -f mapdamage/tests/results/Length_plot.pdf |
| 32 |
rm -f mapdamage/tests/fake1.fasta.fai |
| 33 |
rm -f mapdamage/tests/results/3pGtoA_freq.txt |
| 34 |
rm -f mapdamage/tests/results/5pCtoT_freq.txt |
| 35 |
rm -f mapdamage/tests/results/Runtime_log.txt |
| 36 |
rm -f mapdamage/tests/results/dnacomp.txt |
| 37 |
rm -f mapdamage/tests/results/lgdistribution.txt |
| 38 |
rm -f mapdamage/tests/results/misincorporation.txt |
| 39 |
rm -f mapdamage/tests/test.rescaled.sam |