| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
#export DH_VERBOSE=1 |
| 4 |
|
| 5 |
export PYBUILD_NAME=pygments |
| 6 |
export PYBUILD_TEST_ARGS=-v -k 'not test_chooses_correct_lexer_for_example_files and not test_guess_lexer_singularity and not test_guess_lexer_forth and not test_guess_lexer_modula2 and not test_guess_lexer_unicon and not test_guess_lexer_ezhil and not test_guess_lexer_gdscript and not test_guess_lexer_gap and not test_guess_lexer_easytrieve and not test_guess_lexer_jcl and not test_guess_lexer_rexx' |
| 7 |
|
| 8 |
%: |
| 9 |
dh $@ --with python3,sphinxdoc --buildsystem=pybuild |
| 10 |
|
| 11 |
override_dh_auto_clean: |
| 12 |
dh_auto_clean |
| 13 |
rm -rf build Pygments.egg-info doc/_build |
| 14 |
find . -name "*\.py[co]" -delete |
| 15 |
|
| 16 |
execute_after_dh_auto_build: |
| 17 |
PYTHONPATH=$(CURDIR):$(CURDIR)/doc make -C doc html |
| 18 |
|
| 19 |
override_dh_auto_install: |
| 20 |
dh_auto_install |
| 21 |
install -m 644 external/pygments.bashcomp debian/python3-pygments/usr/share/bash-completion/completions/pygmentize |
| 22 |
test -d debian/python-pygments-doc/usr/share/bash-completion && rm -rf debian/python-pygments-doc/usr/share/bash-completion |
| 23 |
|
| 24 |
override_dh_installchangelogs: |
| 25 |
dh_installchangelogs -i CHANGES |
| 26 |
|
| 27 |
override_dh_compress: |
| 28 |
dh_compress -i -X.py -X.inv |