Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 762895
Collapse All | Expand All

(-)a/app-i18n/ibus/ibus-1.5.23.ebuild (-6 / +34 lines)
Lines 1-4 Link Here
1
# Copyright 1999-2020 Gentoo Authors
1
# Copyright 1999-2021 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=7
4
EAPI=7
Lines 7-13 VALA_MIN_API_VERSION="0.34" Link Here
7
VALA_MAX_API_VERSION="0.50"
7
VALA_MAX_API_VERSION="0.50"
8
VALA_USE_DEPEND="vapigen"
8
VALA_USE_DEPEND="vapigen"
9
9
10
inherit autotools bash-completion-r1 gnome2-utils python-r1 vala virtualx xdg-utils
10
inherit autotools bash-completion-r1 gnome2-utils python-r1 toolchain-funcs vala virtualx xdg-utils
11
11
12
GENTOO_VER=1
12
GENTOO_VER=1
13
DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
13
DESCRIPTION="Intelligent Input Bus for Linux / Unix OS"
Lines 33-39 REQUIRED_USE="emoji? ( gtk ) Link Here
33
	test? ( gtk )
33
	test? ( gtk )
34
	vala? ( introspection )"
34
	vala? ( introspection )"
35
35
36
CDEPEND="app-text/iso-codes
36
DEPEND="app-text/iso-codes
37
	dev-libs/glib:2
37
	dev-libs/glib:2
38
	gnome-base/dconf
38
	gnome-base/dconf
39
	gnome-base/librsvg:2
39
	gnome-base/librsvg:2
Lines 59-72 CDEPEND="app-text/iso-codes Link Here
59
		dev-libs/wayland
59
		dev-libs/wayland
60
		x11-libs/libxkbcommon
60
		x11-libs/libxkbcommon
61
	)"
61
	)"
62
RDEPEND="${CDEPEND}
62
RDEPEND="${DEPEND}
63
	python? (
63
	python? (
64
		gtk? (
64
		gtk? (
65
			x11-libs/gtk+:3[introspection]
65
			x11-libs/gtk+:3[introspection]
66
		)
66
		)
67
	)"
67
	)"
68
DEPEND="${CDEPEND}
68
BDEPEND="
69
	$(vala_depend)
69
	$(vala_depend)
70
	dev-libs/glib:2
70
	dev-util/glib-utils
71
	dev-util/glib-utils
71
	virtual/pkgconfig
72
	virtual/pkgconfig
72
	emoji? (
73
	emoji? (
Lines 122-127 src_configure() { Link Here
122
		python_conf+=( --disable-setup )
123
		python_conf+=( --disable-setup )
123
	fi
124
	fi
124
125
126
	if tc-is-cross-compiler && { use emoji || use unicode; }; then
127
		mkdir -p "${S}-build"
128
		pushd "${S}-build" >/dev/null 2>&1 || die
129
		ECONF_SOURCE=${S} econf_build --enable-static \
130
			--disable-{dconf,gtk{2,3},python-library,shared,xim} \
131
			ISOCODES_{CFLAG,LIB}S=-DSKIP \
132
			$(use_enable emoji emoji-dict) \
133
			$(use_enable unicode unicode-dict) \
134
			$(use_with unicode ucd-dir "${EPREFIX}/usr/share/unicode-data")
135
		popd >/dev/null 2>&1 || die
136
	fi
137
125
	econf \
138
	econf \
126
		$(use_enable X xim) \
139
		$(use_enable X xim) \
127
		$(use_enable emoji emoji-dict) \
140
		$(use_enable emoji emoji-dict) \
Lines 141-146 src_configure() { Link Here
141
		"${python_conf[@]}"
154
		"${python_conf[@]}"
142
}
155
}
143
156
157
src_compile() {
158
	if tc-is-cross-compiler && { use emoji || use unicode; }; then
159
		emake -C "${S}-build/src" \
160
			$(usex emoji emoji-parser '') \
161
			$(usex unicode unicode-parser '')
162
		emake -C src \
163
			$(usex emoji emoji-parser '') \
164
			$(usex unicode unicode-parser '')
165
		cp \
166
			$(usex emoji "${S}-build/src/emoji-parser" '') \
167
			$(usex unicode "${S}-build/src/unicode-parser" '') \
168
			src || die
169
	fi
170
	emake
171
}
172
144
src_test() {
173
src_test() {
145
	unset DBUS_SESSION_BUS_ADDRESS
174
	unset DBUS_SESSION_BUS_ADDRESS
146
	virtx emake -j1 check
175
	virtx emake -j1 check
147
- 

Return to bug 762895