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 36 37 38 39 40 41 42 43 44
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
%:
dh $@ --with python2,python3,sphinxdoc
override_dh_auto_build:
dh_auto_build
# Python3
set -ex; for python in $(shell py3versions -r); do \
$$python setup.py build; \
done;
override_dh_auto_install:
dh_auto_install
# Python3
set -ex; for python in $(shell py3versions -r); do \
$$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
done;
# l10n
mkdir -p $(CURDIR)/debian/tmp/usr/share/
set -ex; for python in $(shell py3versions -r); do \
$$python -B $(CURDIR)/l10n/compile_mo.py; \
done;
mv $(CURDIR)/l10n/mo $(CURDIR)/debian/tmp/usr/share/locale3
set -ex; for python in $(shell pyversions -r); do \
$$python -B $(CURDIR)/l10n/compile_mo.py; \
done;
mv $(CURDIR)/l10n/mo $(CURDIR)/debian/tmp/usr/share/locale2
override_dh_installdocs:
python setup.py build_sphinx
dh_installdocs
override_dh_auto_clean:
dh_auto_clean
rm -rf build *.egg-info
|