-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=5
+EAPI="6"
+
inherit cmake-utils gnome2-utils
-DESCRIPTION="Vietnamese Unikey module for Fcitx"
-HOMEPAGE="http://fcitx-im.org/"
-SRC_URI="http://download.fcitx-im.org/${PN}/${P}.tar.xz"
+if [[ "${PV}" == "9999" ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/fcitx/fcitx-unikey"
+fi
-LICENSE="GPL-3"
+DESCRIPTION="Vietnamese Unikey input methods for Fcitx"
+HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx-unikey"
+if [[ "${PV}" == "9999" ]]; then
+ SRC_URI=""
+else
+ SRC_URI="https://download.fcitx-im.org/${PN}/${P}.tar.xz"
+fi
+
+LICENSE="GPL-2+ GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
IUSE="+qt4"
-RDEPEND=">=app-i18n/fcitx-4.2.8[qt4?]"
+RDEPEND=">=app-i18n/fcitx-4.2.8[qt4?]
+ virtual/libiconv
+ virtual/libintl"
DEPEND="${RDEPEND}
- sys-devel/gettext"
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=()
src_configure() {
local mycmakeargs=(
- $(cmake-utils_use_enable qt4 QT)
+ -DENABLE_QT=$(usex qt4)
)
+
cmake-utils_src_configure
}
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
pkg_postinst() {
gnome2_icon_cache_update
}