diff options
author | Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org> | 2017-09-11 20:16:05 +0200 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2017-09-11 14:39:18 -0400 |
commit | 2a22703601478e267c562cb671dd9e832fb52f2c (patch) | |
tree | 5e44b7bd097efd674f4e4ffe4c7fe2cdfb899477 /app-i18n/fcitx | |
parent | app-i18n/fcitx: Drop obsolete conversion of shebangs in scripts. (diff) | |
download | gentoo-2a22703601478e267c562cb671dd9e832fb52f2c.tar.gz gentoo-2a22703601478e267c562cb671dd9e832fb52f2c.tar.bz2 gentoo-2a22703601478e267c562cb671dd9e832fb52f2c.zip |
app-i18n/fcitx: Version bump (4.2.9.2).
Diffstat (limited to 'app-i18n/fcitx')
-rw-r--r-- | app-i18n/fcitx/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/fcitx/fcitx-4.2.9.2.ebuild | 132 | ||||
-rw-r--r-- | app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch | 60 |
3 files changed, 193 insertions, 0 deletions
diff --git a/app-i18n/fcitx/Manifest b/app-i18n/fcitx/Manifest index 722273209a13..65b175e4293d 100644 --- a/app-i18n/fcitx/Manifest +++ b/app-i18n/fcitx/Manifest @@ -1 +1,2 @@ DIST fcitx-4.2.9.1_dict.tar.xz 8684772 SHA256 5337c8226417a1d4e6f88b3b1048aa73695d281ed483568a7b6a9ee849ad6c77 SHA512 5d3b669ed97423f976116385571d07f832e9e18007e6a3c2aef12957219739a81fbf2343825fea4a1b01a83a6bf9e40e9ffa88466c651876602517c6da1fb25d WHIRLPOOL 02b2ff1b0c33b1f2c0461988bc3323ca27ba565a0d8a1f49b96aaceac857c07365aaaee0048d470dea82e60857bedf59ef8c60d3cdfa14a2ff074216d5cdc16d +DIST fcitx-4.2.9.2_dict.tar.xz 8735848 SHA256 2cdd7c138163f717aacca8eabb18a4a823c808a408e4b0770f5be2e3e892de20 SHA512 9228fc4629479e2c518e0d0a7dbe604f6e56e864b41927d120e1f0b7a277ff53ff1b393870480bc1660662751a31885ddc1ddf43133a11edc2e96cbc7701daee WHIRLPOOL 8f19cd9f34a3957ff42e94ca7a5e28db5feecf658e9ca2535430fe6dd7a269ba9833e9273e8fd87d00a426027aebd97741c3fe909d9a0b0577ae6f64a8f4ba75 diff --git a/app-i18n/fcitx/fcitx-4.2.9.2.ebuild b/app-i18n/fcitx/fcitx-4.2.9.2.ebuild new file mode 100644 index 000000000000..45eecfb57353 --- /dev/null +++ b/app-i18n/fcitx/fcitx-4.2.9.2.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="6" + +inherit cmake-utils gnome2-utils xdg-utils + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/fcitx/fcitx" +fi + +DESCRIPTION="Fcitx (Flexible Context-aware Input Tool with eXtension) input method framework" +HOMEPAGE="https://fcitx-im.org/ https://github.com/fcitx/fcitx" +if [[ "${PV}" == "9999" ]]; then + SRC_URI="" +else + SRC_URI="https://download.fcitx-im.org/${PN}/${P}_dict.tar.xz" +fi + +LICENSE="GPL-2+ LGPL-2+ MIT" +SLOT="0" +KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~x86" +IUSE="+X +autostart +cairo debug +enchant gtk2 gtk3 +introspection lua nls opencc +pango qt4 static-libs +table test +xml" +REQUIRED_USE="cairo? ( X ) pango? ( cairo ) qt4? ( X )" + +RDEPEND="dev-libs/glib:2 + sys-apps/dbus + virtual/libiconv + virtual/libintl + x11-libs/libxkbcommon + X? ( + x11-libs/libX11 + x11-libs/libXfixes + x11-libs/libXinerama + x11-libs/libXrender + xml? ( x11-libs/libxkbfile ) + ) + cairo? ( + x11-libs/cairo[X] + x11-libs/libXext + pango? ( x11-libs/pango ) + !pango? ( media-libs/fontconfig ) + ) + enchant? ( app-text/enchant:0= ) + gtk2? ( x11-libs/gtk+:2 ) + gtk3? ( x11-libs/gtk+:3 ) + introspection? ( dev-libs/gobject-introspection ) + lua? ( dev-lang/lua:= ) + nls? ( sys-devel/gettext ) + opencc? ( app-i18n/opencc:= ) + qt4? ( + dev-qt/qtcore:4 + dev-qt/qtdbus:4 + dev-qt/qtgui:4 + ) + xml? ( + app-text/iso-codes + dev-libs/libxml2 + )" +DEPEND="${RDEPEND} + kde-frameworks/extra-cmake-modules:5 + virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}/${P}-scripts.patch" +) + +DOCS=(AUTHORS ChangeLog THANKS) + +src_prepare() { + # https://github.com/fcitx/fcitx/issues/250 + sed \ + -e "/find_package(XkbFile REQUIRED)/i\\ if(ENABLE_X11)" \ + -e "/find_package(XkbFile REQUIRED)/s/^/ /" \ + -e "/find_package(XkbFile REQUIRED)/a\\ endif(ENABLE_X11)" \ + -i CMakeLists.txt + + cmake-utils_src_prepare + xdg_environment_reset +} + +src_configure() { + local mycmakeargs=( + -DLIB_INSTALL_DIR="${EPREFIX}/usr/$(get_libdir)" + -DSYSCONFDIR="${EPREFIX}/etc" + -DENABLE_CAIRO=$(usex cairo) + -DENABLE_DEBUG=$(usex debug) + -DENABLE_ENCHANT=$(usex enchant) + -DENABLE_GETTEXT=$(usex nls) + -DENABLE_GIR=$(usex introspection) + -DENABLE_GTK2_IM_MODULE=$(usex gtk2) + -DENABLE_GTK3_IM_MODULE=$(usex gtk3) + -DENABLE_LIBXML2=$(usex xml) + -DENABLE_LUA=$(usex lua) + -DENABLE_OPENCC=$(usex opencc) + -DENABLE_PANGO=$(usex pango) + -DENABLE_QT=$(usex qt4) + -DENABLE_QT_GUI=$(usex qt4) + -DENABLE_QT_IM_MODULE=$(usex qt4) + -DENABLE_SNOOPER=$(if use gtk2 || use gtk3; then echo yes; else echo no; fi) + -DENABLE_STATIC=$(usex static-libs) + -DENABLE_TABLE=$(usex table) + -DENABLE_TEST=$(usex test) + -DENABLE_X11=$(usex X) + -DENABLE_XDGAUTOSTART=$(usex autostart) + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + rm -r "${ED}usr/share/doc/${PN}" +} + +pkg_postinst() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update + use gtk2 && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 +} + +pkg_postrm() { + gnome2_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update + use gtk2 && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 +} diff --git a/app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch b/app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch new file mode 100644 index 000000000000..a3399767e7b0 --- /dev/null +++ b/app-i18n/fcitx/files/fcitx-4.2.9.2-scripts.patch @@ -0,0 +1,60 @@ +https://github.com/fcitx/fcitx/issues/342 +https://github.com/fcitx/fcitx/commit/de4bd3d535736afe061d9ac63fcc897e3ab3237e + +--- /cmake/fcitx-cmake-helper.sh ++++ /cmake/fcitx-cmake-helper.sh +@@ -1,4 +1,4 @@ +-#!/bin/bash ++#!/usr/bin/env bash + # Copyright (C) 2012~2013 by Yichao Yu + # yyc1992@gmail.com + # +--- /cmake/fcitx-merge-config.sh ++++ /cmake/fcitx-merge-config.sh +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/usr/bin/env bash + # Copyright (C) 2012~2012 by Yichao Yu + # yyc1992@gmail.com + # +--- /data/icon/data/gen.sh ++++ /data/icon/data/gen.sh +@@ -1,4 +1,4 @@ +-#!/bin/sh ++#!/usr/bin/env bash + + a="$(find scabable/status/ -type f -name \*.svg)" + echo $a +--- /data/script/fcitx-configtool.sh ++++ /data/script/fcitx-configtool.sh +@@ -28,7 +28,7 @@ + } + fi + +-if type gettext > /dev/null 2>&1; then ++if which gettext > /dev/null 2>&1; then + _() { + gettext "$@" + } +--- /src/lib/fcitx-utils/gen-hotkey.sh ++++ /src/lib/fcitx-utils/gen-hotkey.sh +@@ -1,7 +1,6 @@ + #!/bin/sh + +-function download_file() +-{ ++download_file() { + if [ "x$3" != "xf" ]; then + if [ -f $1 ]; then + return +--- /src/ui/classic/fcitx-skin-installer.sh ++++ /src/ui/classic/fcitx-skin-installer.sh +@@ -25,7 +25,7 @@ + } + fi + +-if type gettext > /dev/null 2>&1; then ++if which gettext > /dev/null 2>&1; then + _() { + gettext "$@" + } |