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