Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export PYBUILD_SYSTEM=distutils
4
5 %:
6 dh $@ --with python3 --buildsystem=pybuild
7
8
9 override_dh_auto_configure:
10 # backup original pot file
11 if [ -e po/mate-tweak.pot ] && [ ! -e po/mate-tweak.pot.bak ]; then \
12 cp po/mate-tweak.pot po/mate-tweak.pot.bak; \
13 fi
14
15 dh_auto_configure --buildsystem=pybuild
16
17 override_dh_auto_install:
18 dh_auto_install
19 rm debian/mate-tweak/usr/lib/python3*/dist-packages/setup*.py*
20
21 override_dh_auto_clean:
22 rm -Rf mate_tweak.egg-info/
23
24 # restore original pot file
25 if [ -e po/mate-tweak.pot.bak ]; then \
26 mv po/mate-tweak.pot.bak po/mate-tweak.pot; \
27 fi
28
29 # dh_auto_clean with pybuild/distutils only works if setup.py is
30 # present
31 if [ -f setup.py ]; then \
32 python3 setup.py clean_i18n; \
33 dh_auto_clean; \
34 fi
35
36 get-orig-source:
37 uscan --noconf --force-download --rename --download-current-version --destdir=..