1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
|
#!/usr/bin/make -f
# -*- makefile -*-
export PYBUILD_NAME=sdl2
export SDL_VIDEODRIVER=dummy
export SDL_AUDIODRIVER=dummy
export SDL_RENDER_DRIVER=software
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
execute_before_dh_auto_build:
mkdir -p ./doc/_static
set -e; \
for i in ./doc/modules/images/*.dia; do \
dia "$${i}" --filter=png-libart --export="$$(echo $$i|sed 's/\.dia$$//').png"; \
done
rsvg-convert --format=png --background-color=white examples/resources/testimage.svg|convert png:- examples/resources/hello.bmp
execute_after_dh_install:
# Examples directory is being installad in both packages,
# we prefer to have it in the *-doc package.
rm -rf $(CURDIR)/debian/python3-sdl2/usr/lib/python3.*/dist-packages/sdl2/examples/
# Forwarded: https://github.com/py-sdl/py-sdl2/pull/245
chmod -v 0644 $(CURDIR)/debian/python3-sdl2/usr/lib/python3*/dist-packages/sdl2/test/resources/*.lbm
execute_before_dh_sphinxdoc:
PYTHONPATH=. python3 -m sphinx -b html doc/ debian/pysdl2-doc/usr/share/doc/pysdl2-doc/html/
execute_before_dh_auto_clean:
rm -f ./doc/modules/images/*.png examples/resources/hello.bmp examples/resources/hello.png
rm -rf build
override_dh_installchangelogs:
dh_installchangelogs doc/news.rst
|