~ubuntu-branches/ubuntu/utopic/ibus/utopic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2014-08-18 19:25:16 UTC
  • mfrom: (39.1.12 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140818192516-yyvq2gzp8iy2grcf
Tags: 1.5.8-2ubuntu1
* Merge from Debian (LP: #1352805), remaining changes:
  - Build with dh-translations
  - ubuntu-title-update.patch: 
    Rename "IBus Preferences" to "Keyboard Input Methods"
  - ubuntu-no-notification.patch: Don't show the notification if not
    actually upgrading from a previous version.
  - ubuntu-disable-trigger.patch: Disable input method switching under
    Unity; it's handled by gnome-settings-daemon.
  - ubuntu-forward-panel-properties.patch:
    Augment the panel service D-Bus interface so that external consumers
    can detect when the panel service properties are changed. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
#DH_VERBOSE = 1
3
 
# see FEATURE AREAS in dpkg-buildflags(1)
 
3
 
 
4
# See dpkg-buildflags(1)
 
5
DPKG_EXPORT_BUILDFLAGS = 1
 
6
include /usr/share/dpkg/default.mk
4
7
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
5
 
# see ENVIRONMENT in dpkg-buildflags(1)
6
 
# package maintainers to append CFLAGS
7
8
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
8
 
# package maintainers to append LDFLAGS
9
9
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
10
10
 
11
11
%:
12
 
        dh  $@ --with autoreconf,gir,python2,translations
13
 
 
14
 
override_dh_auto_clean:
15
 
        -rm -f bindings/vala/ibus-1.0.vapi
16
 
        -rm -f data/dconf/00-upstream-settings
17
 
        dh_auto_clean
18
 
 
19
 
override_dh_auto_configure:
20
 
        dh_auto_configure -- \
 
12
        dh $@ --with autoreconf,gir,python2,python3,translations
 
13
 
 
14
CONFIGURE_FLAGS = \
21
15
                --disable-silent-rules \
22
16
                --disable-static \
23
17
                --enable-gtk2 \
26
20
                --enable-gtk-doc \
27
21
                --with-no-snooper-apps='gnome-do,Do.*,firefox.*,.*chrome.*,.*chromium.*' \
28
22
                --enable-surrounding-text \
29
 
                --enable-python-library \
30
23
                --enable-introspection \
31
 
                --libexecdir=/usr/lib/ibus
 
24
                --libexecdir=/usr/lib/ibus \
 
25
                --with-python=python3
 
26
 
 
27
ifeq ($(DEB_HOST_ARCH_OS),linux)
 
28
CONFIGURE_FLAGS += --enable-wayland
 
29
endif
 
30
 
 
31
override_dh_auto_configure:
 
32
        dh_auto_configure -- $(CONFIGURE_FLAGS)
32
33
 
33
34
override_dh_auto_build:
34
35
        make -C ui/gtk3 maintainer-clean-generic
36
37
        dh_auto_build
37
38
 
38
39
override_dh_install:
 
40
        echo "Keywords=keyboard;input;" >> debian/tmp/usr/share/applications/ibus-setup.desktop
 
41
        # KDE, Xfce, LXDE may needs to be added
39
42
        echo "NotShowIn=GNOME;Unity;" >> debian/tmp/usr/share/applications/ibus-setup.desktop
40
43
        # workaround for desktop-file-install
41
44
        sed -i -e 's|Comment\[ja\]=IBus |& |' \
43
46
        desktop-file-install --delete-original \
44
47
                --dir debian/tmp/usr/share/applications \
45
48
                debian/tmp/usr/share/applications/*
46
 
        dh_install --fail-missing -X.la
 
49
        dh_install --fail-missing -X.la -X.pyc -X.pyo
47
50
 
48
51
override_dh_makeshlibs:
49
52
        dh_makeshlibs -Nibus-gtk -Nibus-gtk3
51
54
override_dh_auto_test:
52
55
        -dh_auto_test
53
56
 
 
57
override_dh_strip:
 
58
        dh_strip --dbg-package=ibus-dbg
 
59