diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:33:32 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 11:33:32 +0000 |
commit | 0c4233495b50e3b2e7a423edaf334b0116e2901d (patch) | |
tree | b6d4fe7d612d9cab9538f2fe4bad5d20984a44e9 /debian/rules | |
parent | Adding upstream version 2.14.0+dfsg. (diff) | |
download | pygments-debian.tar.xz pygments-debian.zip |
Adding debian version 2.14.0+dfsg-1.debian/2.14.0+dfsg-1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/rules')
-rwxr-xr-x | debian/rules | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..d5c230a --- /dev/null +++ b/debian/rules @@ -0,0 +1,28 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +export PYBUILD_NAME=pygments +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' + +%: + dh $@ --with python3,sphinxdoc --buildsystem=pybuild + +override_dh_auto_clean: + dh_auto_clean + rm -rf build Pygments.egg-info doc/_build + find . -name "*\.py[co]" -delete + +execute_after_dh_auto_build: + PYTHONPATH=$(CURDIR):$(CURDIR)/doc make -C doc html + +override_dh_auto_install: + dh_auto_install + install -m 644 external/pygments.bashcomp debian/python3-pygments/usr/share/bash-completion/completions/pygmentize + test -d debian/python-pygments-doc/usr/share/bash-completion && rm -rf debian/python-pygments-doc/usr/share/bash-completion + +override_dh_installchangelogs: + dh_installchangelogs -i CHANGES + +override_dh_compress: + dh_compress -i -X.py -X.inv |