38 lines
818 B
Bash
38 lines
818 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=5
|
|
inherit cmake-utils gnome2-utils
|
|
|
|
DESCRIPTION="Libpinyin module for Fcitx"
|
|
HOMEPAGE="http://fcitx-im.org/"
|
|
SRC_URI="http://download.fcitx-im.org/${PN}/${P}_dict.tar.xz"
|
|
|
|
LICENSE="GPL-2"
|
|
SLOT="4"
|
|
KEYWORDS="amd64 ~ppc ppc64 ~x86"
|
|
IUSE="dictionary-manager"
|
|
|
|
RDEPEND=">=app-i18n/fcitx-4.2.8
|
|
<app-i18n/libpinyin-1.3.0
|
|
dev-libs/glib:2
|
|
dictionary-manager? ( >=app-i18n/fcitx-4.2.8[qt4]
|
|
dev-qt/qtcore:4
|
|
dev-qt/qtgui:4
|
|
dev-qt/qtwebkit:4 )"
|
|
DEPEND="${RDEPEND}
|
|
virtual/libintl
|
|
virtual/pkgconfig"
|
|
|
|
src_configure() {
|
|
local mycmakeargs="$(cmake-utils_use_enable dictionary-manager QT)"
|
|
cmake-utils_src_configure
|
|
}
|
|
|
|
pkg_postinst() {
|
|
gnome2_icon_cache_update
|
|
}
|
|
|
|
pkg_postrm() {
|
|
gnome2_icon_cache_update
|
|
}
|