Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2 # DH_VERBOSE := 1
3 export LC_ALL=C.UTF-8
4
5 include /usr/share/dpkg/default.mk
6 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
7 export DEB_CPPFLAGS_MAINT_APPEND += -DSIMDE_ENABLE_OPENMP
8 export DEB_CPPFLAGS_MAINT_APPEND += -DSIMDE_ENABLE_NATIVE_ALIASES
9 export DEB_CFLAGS_MAINT_APPEND += -fopenmp-simd -O3
10 export DEB_CXXFLAGS_MAINT_APPEND += -fopenmp-simd -O3
11 export PYBUILD_NAME=pyabpoa
12
13 %:
14 dh $@ --with=python3 --buildsystem=pybuild
15
16 execute_before_dh_testdir:
17 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
18 # Guard against outdated maintainer manual page.
19 # Hint: help2man does mostly the right thing except for stderr
20 # capture, multiple commands support, and commands description.
21 grep -q $(DEB_VERSION_UPSTREAM) debian/manuals/abpoa.1
22 endif
23
24 execute_after_dh_auto_build:
25 dh_auto_build --buildsystem=makefile -- all
26
27 override_dh_auto_test:
28 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
29 # Tests from the README.md document
30 ./bin/abpoa ./test_data/seq.fa > cons.fa
31 ./bin/abpoa ./test_data/heter.fa > 2cons.fa
32 ./bin/abpoa -r1 ./test_data/seq.fa > out.msa
33 ./bin/abpoa -r2 ./test_data/seq.fa > out_cons.msa
34 ./bin/abpoa -r3 ./test_data/seq.fa > out.gfa
35 ./bin/abpoa -r4 ./test_data/seq.fa > out4.gfa
36 cp out.gfa in.gfa
37 cp out.msa in.msa
38 ./bin/abpoa -i in.gfa ./test_data/seq.fa -r3 > out.gfa
39 ./bin/abpoa -i in.msa ./test_data/seq.fa -r1 > out.msa
40 ./bin/abpoa ./test_data/seq.fa -g poa.png > cons.fa
41 ./bin/abpoa ./test_data/heter.fa -d2
42 endif
43
44 override_dh_gencontrol:
45 dh_gencontrol -- \
46 -Vsimde:Built-Using="$(shell dpkg-query -f '$${source:Package} (= $${source:Version}), ' -W "libsimde-dev")"