app-i18n/fcitx-unikey: Use EAPI="6". Fix LICENSE, dependencies. Call gnome2_icon_save...
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Thu, 13 Oct 2016 07:01:46 +0000 (09:01 +0200)
committerMike Gilbert <floppym@gentoo.org>
Thu, 13 Oct 2016 16:08:17 +0000 (12:08 -0400)
app-i18n/fcitx-unikey/fcitx-unikey-0.2.5.ebuild

index d02e5363cac06f3fde50afe16a5b0471d34bebca..5a087b5d2a5299d2ea7dd9f973a4618ee9cae834 100644 (file)
@@ -1,30 +1,51 @@
-# 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
 }