File: rules

package info (click to toggle)
ibus 1.5.19-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 20,744 kB
  • sloc: ansic: 112,120; python: 6,387; sh: 4,825; makefile: 2,055; xml: 1,247; sed: 5
file content (63 lines) | stat: -rwxr-xr-x 1,748 bytes parent folder | download
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/make -f
#DH_VERBOSE = 1

# See dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with gir,python3

CONFIGURE_FLAGS = \
		--disable-silent-rules \
		--disable-static \
		--enable-emoji-dict \
		--enable-gtk2 \
		--enable-gtk3 \
		--enable-xim \
		--enable-gtk-doc \
		--with-ucd-dir='/usr/share/unicode/' \
		--with-no-snooper-apps='gnome-do,Do.*,firefox.*,.*chrome.*,.*chromium.*,terminator' \
		--enable-surrounding-text \
		--enable-introspection \
		--enable-appindicator \
		--libexecdir=/usr/lib/ibus \
                --with-python=python3

ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_FLAGS += --enable-wayland
endif

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_build:
	make -C ui/gtk3 maintainer-clean-generic
	# make -C po update-gmo
	dh_auto_build

override_dh_shlibdeps:
	dh_shlibdeps -- -xlibgtk2.0-0

override_dh_install:
	echo "Keywords=keyboard;input;" >> debian/tmp/usr/share/applications/ibus-setup.desktop
	# KDE, Xfce, LXDE may needs to be added
	echo "NotShowIn=GNOME;Unity;" >> debian/tmp/usr/share/applications/ibus-setup.desktop
	# workaround for desktop-file-install
	sed -i -e 's|Comment\[ja\]=IBus |& |' \
		debian/tmp/usr/share/applications/ibus-setup.desktop
	desktop-file-install --delete-original \
		--dir debian/tmp/usr/share/applications \
		debian/tmp/usr/share/applications/*
	dh_install -X.la -X.pyc -X.pyo

override_dh_missing:
	dh_missing --fail-missing -X.la -X.pyc -X.pyo

override_dh_makeshlibs:
	dh_makeshlibs -Nibus-gtk -Nibus-gtk3 -- -c4

override_dh_auto_test:
	-dh_auto_test -- V=1 # disabled due to FAIL: ibus-compose