~mzanetti/unity8/fix-preview-collapsing

« back to all changes in this revision

Viewing changes to debian/rules

merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
export DPKG_GENSYMBOLS_CHECK_LEVEL=4
7
7
export NO_PNG_PKG_MANGLE=1
8
8
 
 
9
SCOPES_RECOMMENDS := $(shell perl debian/scopes-recommends-generator /usr/share/unity/client-scopes.json)
 
10
 
9
11
%:
10
 
        dh $@ --parallel
 
12
        dh $@ --parallel --fail-missing --with python2
11
13
 
12
14
override_dh_auto_clean:
13
15
        dh_auto_clean
14
16
        rm -rf builddir
15
17
 
16
18
override_dh_install:
17
 
        dh_install --fail-missing
18
 
 
 
19
        # install autopilot tests
 
20
        cd tests/autopilot; \
 
21
        set -ex; for python in $(shell pyversions -r); do \
 
22
            $$python setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb; \
 
23
        done; \
 
24
        cd $(CURDIR)
 
25
        dh_install -X'*.pyc' --fail-missing
 
26
 
 
27
# use private lib directories
 
28
override_dh_makeshlibs:
 
29
        dh_makeshlibs -Nunity8-private -Nunity8-fake-env
 
30
 
 
31
# libMockLightDM-qml.so links against liblightdm-qt5-2.so which doesn't exist
19
32
override_dh_shlibdeps:
20
33
        dh_shlibdeps -XlibMockLightDM-qml.so
 
34
 
 
35
override_dh_gencontrol:
 
36
        dh_gencontrol -- -Vunity-default-masterscopes="$(SCOPES_RECOMMENDS)"