git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15915 from ericsagnes/pkg-update/fcitx

fcitx: 4.2.9 -> 4.2.9.1, fix build

commit0e16c80f81d0cd351d5d814db65001176cd81817 authorGabriel Ebner <gebner@gebner.org> dateThu 2 Jun 2016, 20:53 (10 years ago) parentff8985e098c58c
2 files changed+46−14
pkgs/tools/inputmethods/fcitx/default.nix+21−14 pkgs/tools/inputmethods/fcitx/fcitx-ecm.patch+25
pkgs/tools/inputmethods/fcitx/default.nix+21−14
@@ -1,27 +1,34 @@
11{ stdenv, fetchurl, pkgconfig, cmake, intltool, gettext
22, libxml2, enchant, isocodes, icu, libpthreadstubs
3−, pango, cairo, libxkbfile, libXau, libXdmcp
3+, pango, cairo, libxkbfile, libXau, libXdmcp, libxkbcommon
44, dbus, gtk2, gtk3, qt4, kde5
55}:
66
77stdenv.mkDerivation rec {
88 name = "fcitx-${version}";
9− version = "4.2.9";
9+ version = "4.2.9.1";
1010
1111 src = fetchurl {
12− url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
13− sha256 = "0v7wdf3qf74vz8q090w8k574wvfcpj9ksfcfdw93nmzyk1q5p4rs";
12+ url = "http://download.fcitx-im.org/fcitx/${name}_dict.tar.xz";
13+ sha256 = "0xvcmm4yi7kagf55d0yl3ql5ssbkm9410fwbz3kd988pchichdsk";
1414 };
1515
16− patchPhase = ''
16+ postUnpack = ''
17+ ln -s ${kde5.extra-cmake-modules}/share/ECM/modules/ECMFindModuleHelpers.cmake \
18+ $sourceRoot/cmake/
19+ '';
20+
21+ patches = [ ./fcitx-ecm.patch ];
22+
23+ postPatch = ''
1724 substituteInPlace src/frontend/qt/CMakeLists.txt \
1825 --replace $\{QT_PLUGINS_DIR} $out/lib/qt4/plugins
1926 '';
2027
21− buildInputs = with stdenv.lib; [
22− cmake enchant pango gettext libxml2 isocodes pkgconfig libxkbfile
23− intltool cairo icu libpthreadstubs libXau libXdmcp
24− dbus gtk2 gtk3 qt4 kde5.extra-cmake-modules
28+ buildInputs = [
29+ cmake enchant gettext isocodes pkgconfig intltool icu
30+ libpthreadstubs libXau libXdmcp libxkbfile libxkbcommon libxml2
31+ dbus cairo gtk2 gtk3 pango qt4
2532 ];
2633
2734 cmakeFlags = ''
@@ -34,11 +41,11 @@ stdenv.mkDerivation rec {
3441 -DENABLE_XDGAUTOSTART=OFF
3542 '';
3643
37− meta = {
38− homepage = "https://code.google.com/p/fcitx/";
44+ meta = with stdenv.lib; {
45+ homepage = "https://github.com/fcitx/fcitx";
3946 description = "A Flexible Input Method Framework";
40− license = stdenv.lib.licenses.gpl2;
41− platforms = stdenv.lib.platforms.linux;
42− maintainers = with stdenv.lib.maintainers; [ ericsagnes ];
47+ license = licenses.gpl2;
48+ platforms = platforms.linux;
49+ maintainers = with maintainers; [ ericsagnes ];
4350 };
4451}
pkgs/tools/inputmethods/fcitx/fcitx-ecm.patchnew file+25
@@ -0,0 +1,25 @@
1+diff --git a/CMakeLists.txt b/CMakeLists.txt
2+index fd54ad8..ebb33d0 100644
3+--- a/CMakeLists.txt
4++++ b/CMakeLists.txt
5+@@ -5,8 +5,7 @@ project(fcitx)
6+ set(version 4.2.9)
7+
8+
9+-find_package(ECM 0.0.11 REQUIRED NO_MODULE)
10+-set(CMAKE_MODULE_PATH "${ECM_MODULE_PATH}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
11++set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
12+ set(CMAKE_AUTOMOC_RELAXED_MODE TRUE)
13+
14+ set_property(GLOBAL PROPERTY "__FCITX_INTERNAL_BUILD" On)
15+--- a/cmake/FindXKBCommon.cmake
16++++ b/cmake/FindXKBCommon.cmake
17+@@ -1,5 +1,5 @@
18+
19+-include(ECMFindModuleHelpersStub)
20++include(ECMFindModuleHelpers)
21+
22+ ecm_find_package_version_check(XKBCommon)
23+
24+--
25+2.8.0