| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
export PYBUILD_NAME=cheetah |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --buildsystem=pybuild |
| 10 |
|
| 11 |
|
| 12 |
execute_after_dh_auto_install-indep: |
| 13 |
PYTHONPATH=$(CURDIR) $(MAKE) -i -C docs html |
| 14 |
|
| 15 |
execute_after_dh_auto_clean: |
| 16 |
PYTHONPATH=$(CURDIR) $(MAKE) -i -C docs clean |
| 17 |
|
| 18 |
execute_after_dh_install: |
| 19 |
|
| 20 |
mv -v debian/python3-cheetah/usr/bin/cheetah debian/python3-cheetah/usr/bin/cheetah3 |
| 21 |
mv -v debian/python3-cheetah/usr/bin/cheetah-analyze debian/python3-cheetah/usr/bin/cheetah-analyze3 |
| 22 |
mv -v debian/python3-cheetah/usr/bin/cheetah-compile debian/python3-cheetah/usr/bin/cheetah-compile3 |
| 23 |
|
| 24 |
find ./debian -name MondoReportDoc.txt -print -delete |
| 25 |
|
| 26 |
override_dh_auto_test: |
| 27 |
PYBUILD_SYSTEM=custom PYBUILD_TEST_ARGS=" \ |
| 28 |
cp -va Cheetah/Tests/ImportHooksTemplates {build_dir}/Cheetah/Tests/; \ |
| 29 |
PATH=$(CURDIR)/bin:$$PATH python{version} {build_dir}/Cheetah/Tests/Test.py" \ |
| 30 |
dh_auto_test |