| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
#export DH_VERBOSE=1 |
| 5 |
#DEB_BUILD_OPTIONS=1 |
| 6 |
|
| 7 |
export PYBUILD_NAME=seqdiag |
| 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 -f {build_dir}/tests |
| 12 |
endif |
| 13 |
|
| 14 |
%: |
| 15 |
dh $@ --buildsystem=pybuild |
| 16 |
|
| 17 |
execute_after_dh_python3: |
| 18 |
mv -f $(CURDIR)/debian/python3-seqdiag/usr/bin/seqdiag $(CURDIR)/debian/python3-seqdiag/usr/bin/seqdiag3 |
| 19 |
|
| 20 |
convert_manpage_seqdiag3: |
| 21 |
sed 's/^seqdiag \\/seqdiag3 \\/' $(CURDIR)/seqdiag.1 > $(CURDIR)/debian/seqdiag3.1 |
| 22 |
sed -i 's/.B seqdiag/.B seqdiag3/g' $(CURDIR)/debian/seqdiag3.1 |
| 23 |
sed -i 's/.TH SEQDIAG /.TH SEQDIAG3 /' $(CURDIR)/debian/seqdiag3.1 |
| 24 |
sed -i 's/^\\fBseqdiag/\\fBseqdiag3/' $(CURDIR)/debian/seqdiag3.1 |