summaryrefslogtreecommitdiff
path: root/dev-qt/qtvirtualkeyboard/qtvirtualkeyboard-5.11.1-r1337.ebuild
blob: d21fa729fca09c3dfa9e3294a9e3eb81ced5e9fb (plain)
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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=6
inherit qt5-build-r10000

DESCRIPTION="Virtual keyboard plugin for the Qt5 framework"

if [[ ${QT5_BUILD_TYPE} == release ]]; then
	KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-fbsd"
fi

# TODO: unbudle libraries for more layouts
IUSE="handwriting +spell +xcb"

DEPEND="
	~dev-qt/qtcore-${PV}
	~dev-qt/qtdeclarative-${PV}
	~dev-qt/qtgui-${PV}
	~dev-qt/qtsvg-${PV}
	spell? ( app-text/hunspell:= )
	xcb? ( x11-libs/libxcb:= )
"
RDEPEND="${DEPEND}"

src_configure() {
	local myqmakeargs=(
		$(usex handwriting CONFIG+=lipi-toolkit "")
		$(usex spell "" CONFIG+=disable-hunspell)
		$(usex xcb "" CONFIG+=disable-desktop)
		CONFIG+="lang-ar_AR lang-da_DK lang-de_DE lang-en_GB \
                        lang-es_ES lang-fa_FA lang-fi_FI lang-fr_FR \
                        lang-hi_IN lang-it_IT lang-nb_NO lang-pl_PL \
                        lang-pt_PT lang-ro_RO lang-ru_RU lang-sv_SE"
	)

	qt5-build-r10000_src_configure
}