1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/usr/bin/make -f
# resolve if release is experimental
include /usr/share/dpkg/pkg-info.mk
EXP_RELEASE = $(filter experimental% UNRELEASED,$(DEB_DISTRIBUTION))
%:
dh $@ --parallel
# use virtual X11 and UTF-8 in testsuite
# create fake $HOME to please gnupg2
# ignore testuite failure when targeting experimental
override_dh_auto_test:
mkdir debian/tmphome
HOME=debian/tmphome LC_ALL=C.UTF-8 xvfb-run -a \
dh_auto_test --no-parallel $(if $(EXP_RELEASE), || true)
rm -rf debian/tmphome
# avoid (seemingly) superfluous files
override_dh_auto_install:
dh_auto_install
rm debian/astroid/usr/share/astroid/ui/icons/LICENSE
rm debian/astroid/usr/share/gir-1.0/Astroid-0.2.gir
rm debian/astroid/usr/lib/girepository-1.0/Astroid-0.2.typelib
|