| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export PYBUILD_NAME=actdiag |
| 8 |
ifneq (,$(PYBUILD_AUTOPKGTEST)) |
| 9 |
# pybuild doesn't copy src/$module/tests - use the installed copy instead |
| 10 |
export PYBUILD_BEFORE_TEST:=ln -s /usr/lib/python3/dist-packages/${PYBUILD_NAME}/tests {build_dir}/tests |
| 11 |
export PYBUILD_AFTER_TEST:=rm -rf {build_dir}/tests |
| 12 |
endif |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --buildsystem=pybuild |
| 16 |
|
| 17 |
override_dh_python3: |
| 18 |
dh_python3 |
| 19 |
mv -f $(CURDIR)/debian/python3-actdiag/usr/bin/actdiag $(CURDIR)/debian/python3-actdiag/usr/bin/actdiag3 |
| 20 |
|
| 21 |
convert_manpage_actdiag3: |
| 22 |
sed 's/^actdiag \\/actdiag3 \\/' $(CURDIR)/actdiag.1 > $(CURDIR)/debian/actdiag3.1 |
| 23 |
sed -i 's/.B actdiag/.B actdiag3/g' $(CURDIR)/debian/actdiag3.1 |
| 24 |
sed -i 's/.TH ACTDIAG /.TH ACTDIAG3 /' $(CURDIR)/debian/actdiag3.1 |
| 25 |
sed -i 's/^\\fBactdiag/\\fBactdiag3/' $(CURDIR)/debian/actdiag3.1 |