Merge master into closure-size
The kde-5 stuff still didn't merge well. I hand-fixed what I saw, but there may be more problems.
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, cmake, fcitx, anthy, gettext, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-anthy-${version}";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-anthy/${name}.tar.xz";
|
||||
sha256 = "0ayrzfx95670k86y19bzl6i6w98haaln3x8dxpb39a5dwgz59pf8";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx anthy gettext pkgconfig ];
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace src/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isFcitxEngine = true;
|
||||
description = "Fcitx Wrapper for anthy";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ iyzsong ericsagnes ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{ stdenv, fetchurl, cmake, fcitx, gettext, libchewing, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-chewing-${version}";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-chewing/${name}.tar.xz";
|
||||
sha256 = "0l548xdx2fvjya1ixp37pn382yak0m4kwfh9lgh7l3y2sblqw9zs";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx gettext libchewing pkgconfig ];
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace src/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
substituteInPlace data/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isFcitxEngine = true;
|
||||
homepage = "https://github.com/fcitx/fcitx-chewing";
|
||||
downloadPage = "http://download.fcitx-im.org/fcitx-chewing/";
|
||||
description = "Fcitx engine for chewing";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
{ stdenv, fetchurl, cmake, fcitx, libhangul, gettext, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-hangul-${version}";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-hangul/${name}.tar.xz";
|
||||
sha256 = "1jq78nczliw6pnhfac8hspffybrry6syk17y0wwcq05j3r3nd2lp";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx libhangul gettext pkgconfig ];
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace src/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
substituteInPlace data/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isFcitxEngine = true;
|
||||
homepage = "https://github.com/fcitx/fcitx-hangul";
|
||||
downloadPage = "http://download.fcitx-im.org/fcitx-hangul/";
|
||||
description = "Fcitx Wrapper for hangul";
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
}
|
||||
29
pkgs/tools/inputmethods/fcitx-engines/fcitx-m17n/default.nix
Normal file
29
pkgs/tools/inputmethods/fcitx-engines/fcitx-m17n/default.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchurl, cmake, fcitx, gettext, m17n_lib, m17n_db, pkgconfig }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-m17n-${version}";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-m17n/${name}.tar.xz";
|
||||
sha256 = "0ffyhsg7bc6525k94kfhnja1h6ajlfprq72d286dp54cksnakyc4";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx gettext m17n_lib m17n_db pkgconfig ];
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace im/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isFcitxEngine = true;
|
||||
homepage = "https://github.com/fcitx/fcitx-m17n";
|
||||
downloadPage = "http://download.fcitx-im.org/fcitx-table-other/";
|
||||
description = "Fcitx wrapper for m17n";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
|
||||
}
|
||||
117
pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix
Normal file
117
pkgs/tools/inputmethods/fcitx-engines/fcitx-mozc/default.nix
Normal file
@@ -0,0 +1,117 @@
|
||||
{ clangStdenv, fetchFromGitHub, fetchurl, fetchpatch, fetchsvn, gyp, which, ninja,
|
||||
python, pkgconfig, protobuf, gtk, zinnia, qt4, libxcb, tegaki-zinnia-japanese,
|
||||
fcitx, gettext }:
|
||||
let
|
||||
japanese_usage_dictionary = fetchsvn {
|
||||
url = "http://japanese-usage-dictionary.googlecode.com/svn/trunk";
|
||||
rev = "10";
|
||||
sha256 = "0pyrpz9c8nxccwpgyr36w314mi8h132cis8ijvlqmmhqxwsi30hm";
|
||||
};
|
||||
icons = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-mozc/fcitx-mozc-icon.tar.gz";
|
||||
sha256 = "10bdjn481jsh32vll7r756l392anz44h6207vjqwby3rplk31np1";
|
||||
};
|
||||
in clangStdenv.mkDerivation rec {
|
||||
name = "fcitx-mozc-${version}";
|
||||
version = "2.17.2313.102";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "mozc";
|
||||
rev = "3306d3314499a54a4064b8b80bbc1bce3f6cfac4";
|
||||
sha256 = "0l7mjlnbm6i1ipni8pg9ym5bjg3rzkaxi9xwmsz2lddv348sqii2";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gyp which ninja python pkgconfig ];
|
||||
buildInputs = [ protobuf gtk zinnia qt4 libxcb fcitx gettext ];
|
||||
|
||||
postUnpack = ''
|
||||
rmdir $sourceRoot/src/third_party/japanese_usage_dictionary/
|
||||
ln -s ${japanese_usage_dictionary} $sourceRoot/src/third_party/japanese_usage_dictionary
|
||||
tar -xzf ${icons} -C $sourceRoot
|
||||
'';
|
||||
|
||||
patch_version = "2.17.2313.102.1";
|
||||
patches = [
|
||||
(fetchpatch rec {
|
||||
name = "fcitx-mozc-${patch_version}.patch";
|
||||
url = "https://download.fcitx-im.org/fcitx-mozc/${name}";
|
||||
sha256 = "172c34jkppibvwr9qf9xwgh2hdrmmhyx7nsdj49krxbfdlsy3yy0";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace src/unix/fcitx/mozc.conf \
|
||||
--replace "/usr/share/fcitx/mozc/icon/mozc.png" "mozc"
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1"
|
||||
python src/build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc \
|
||||
python src/unix/fcitx/fcitx.gyp gyp --gypdir=${gyp}/bin
|
||||
'';
|
||||
|
||||
preBuildPhase = ''
|
||||
head -n 29 src/server/mozc_server.cc > LICENSE
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
python src/build_mozc.py build -c Release \
|
||||
unix/fcitx/fcitx.gyp:fcitx-mozc \
|
||||
server/server.gyp:mozc_server \
|
||||
gui/gui.gyp:mozc_tool
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
python src/build_mozc.py runtests -c Release
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -d $out/share/licenses/fcitx-mozc/
|
||||
install -m 644 LICENSE src/data/installer/*.html $out/share/licenses/fcitx-mozc/
|
||||
|
||||
install -d $out/share/doc/mozc
|
||||
install -m 644 src/data/installer/*.html $out/share/doc/mozc/
|
||||
|
||||
install -D -m 755 src/out_linux/Release/mozc_server $out/lib/mozc/mozc_server
|
||||
install -m 755 src/out_linux/Release/mozc_tool $out/lib/mozc/mozc_tool
|
||||
|
||||
install -D -m 755 src/out_linux/Release/fcitx-mozc.so $out/lib/fcitx/fcitx-mozc.so
|
||||
install -D -m 644 src/unix/fcitx/fcitx-mozc.conf $out/share/fcitx/addon/fcitx-mozc.conf
|
||||
install -D -m 644 src/unix/fcitx/mozc.conf $out/share/fcitx/inputmethod/mozc.conf
|
||||
|
||||
install -d $out/share/doc/mozc
|
||||
|
||||
for mofile in src/out_linux/Release/gen/unix/fcitx/po/*.mo
|
||||
do
|
||||
filename=`basename $mofile`
|
||||
lang=$filename.mo
|
||||
install -D -m 644 "$mofile" "$out/share/locale/$lang/LC_MESSAGES/fcitx-mozc.mo"
|
||||
done
|
||||
|
||||
install -d $out/share/fcitx/imicon
|
||||
install -m 644 fcitx-mozc-icons/mozc.png $out/share/fcitx/imicon/mozc.png
|
||||
install -d $out/share/fcitx/mozc/icon
|
||||
install -m 644 fcitx-mozc-icons/mozc.png $out/share/fcitx/mozc/icon/mozc.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-alpha_full.png $out/share/fcitx/mozc/icon/mozc-alpha_full.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-alpha_half.png $out/share/fcitx/mozc/icon/mozc-alpha_half.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-direct.png $out/share/fcitx/mozc/icon/mozc-direct.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-hiragana.png $out/share/fcitx/mozc/icon/mozc-hiragana.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-katakana_full.png $out/share/fcitx/mozc/icon/mozc-katakana_full.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-katakana_half.png $out/share/fcitx/mozc/icon/mozc-katakana_half.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-dictionary.png $out/share/fcitx/mozc/icon/mozc-dictionary.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-properties.png $out/share/fcitx/mozc/icon/mozc-properties.png
|
||||
install -m 644 fcitx-mozc-icons/mozc-tool.png $out/share/fcitx/mozc/icon/mozc-tool.png
|
||||
'';
|
||||
|
||||
meta = with clangStdenv.lib; {
|
||||
isFcitxEngine = true;
|
||||
description = "Fcitx engine for Google japanese input method";
|
||||
homepage = http://code.google.com/p/mozc/;
|
||||
downloadPage = "http://download.fcitx-im.org/fcitx-mozc/";
|
||||
license = licenses.free;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ericsagnes ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
{ stdenv, fetchurl, cmake, fcitx, gettext }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-table-other-${version}";
|
||||
version = "0.2.3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-table-other/${name}.tar.xz";
|
||||
sha256 = "12fqbsjrpx5pndx2jf7fksrlp01a4yxz62h2vpxrbkpk73ljly4v";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx gettext ];
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace tables/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isFcitxEngine = true;
|
||||
homepage = "https://github.com/fcitx/fcitx-table-other";
|
||||
downloadPage = "http://download.fcitx-im.org/fcitx-table-other/";
|
||||
description = "Provides some other tables for Fcitx";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,24 +0,0 @@
|
||||
{ stdenv, fetchurl, cmake, fcitx, anthy }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-anthy-0.2.1";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Fcitx Wrapper for anthy";
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ iyzsong ];
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-anthy/${name}.tar.xz";
|
||||
sha256 = "13fpfhhxkzbq53h10i3hifa37nngm47jq361i70z22bgcrs8887x";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx anthy ];
|
||||
|
||||
preInstall = ''
|
||||
substituteInPlace src/cmake_install.cmake \
|
||||
--replace ${fcitx} $out
|
||||
'';
|
||||
}
|
||||
@@ -2,11 +2,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "fcitx-qt5-${version}";
|
||||
version = "1.0.4";
|
||||
version = "1.0.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://download.fcitx-im.org/fcitx-qt5/${name}.tar.xz";
|
||||
sha256 = "070dlmwkim7sg0xwxfcbb46li1jk8yd3rmj0j5fkmgyr12044aml";
|
||||
sha256 = "1pj1b04n8r4kl7jh1qdv0xshgzb3zrmizfa3g5h3yk589h191vwc";
|
||||
};
|
||||
|
||||
buildInputs = [ cmake fcitx extra-cmake-modules qtbase ];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ stdenv, buildEnv, fcitx, makeWrapper, plugins }:
|
||||
{ stdenv, buildEnv, fcitx, fcitx-configtool, makeWrapper, plugins, kde5 }:
|
||||
|
||||
# This is based on the pidgin-with-plugins package.
|
||||
# Users should be able to configure what plugins are used
|
||||
@@ -16,7 +16,7 @@ let
|
||||
drv = buildEnv {
|
||||
name = "fcitx-with-plugins-" + (builtins.parseDrvName fcitx.name).version;
|
||||
|
||||
paths = [ fcitx ] ++ plugins;
|
||||
paths = [ fcitx fcitx-configtool kde5.fcitx-qt5 ] ++ plugins;
|
||||
|
||||
postBuild = ''
|
||||
# TODO: This could be avoided if buildEnv could be forced to create all directories
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
{ stdenv, fetchurl, makeWrapper, ibus, anthy, intltool, pkgconfig, glib, gobjectIntrospection, python, pythonPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-anthy-${version}";
|
||||
version = "1.5.7";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "IBus interface to the anthy input method";
|
||||
homepage = http://wiki.github.com/fujiwarat/ibus-anthy;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ gebner ];
|
||||
};
|
||||
|
||||
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
||||
|
||||
buildInputs = [ makeWrapper ibus anthy intltool pkgconfig glib gobjectIntrospection python pythonPackages.pygobject3 ];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
||||
for file in "$out"/libexec/*; do
|
||||
wrapProgram "$file" \
|
||||
--prefix PYTHONPATH : $PYTHONPATH \
|
||||
--prefix GI_TYPELIB_PATH : $GI_TYPELIB_PATH:$out/lib/girepository-1.0
|
||||
done
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "00sjrfhghrgkqm72mf39f8sz6wr4fwvvs9mn2alaldhgr5v0c861";
|
||||
};
|
||||
}
|
||||
34
pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix
Normal file
34
pkgs/tools/inputmethods/ibus-engines/ibus-anthy/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ stdenv, fetchurl, intltool, pkgconfig
|
||||
, anthy, ibus, glib, gobjectIntrospection, gtk3, python3, pygobject3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-anthy-${version}";
|
||||
version = "1.5.8";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
description = "IBus interface to the anthy input method";
|
||||
homepage = http://wiki.github.com/fujiwarat/ibus-anthy;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ gebner ericsagnes ];
|
||||
};
|
||||
|
||||
configureFlags = "--with-anthy-zipcode=${anthy}/share/anthy/zipcode.t";
|
||||
|
||||
buildInputs = [
|
||||
anthy glib gobjectIntrospection gtk3 ibus python3 pygobject3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ intltool pkgconfig ];
|
||||
|
||||
postFixup = ''
|
||||
substituteInPlace $out/share/ibus/component/anthy.xml --replace \$\{exec_prefix\} $out
|
||||
'';
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ibus/ibus-anthy/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "1aj7vnfky7izl23xyjky78z3qas3q72l3kr8dnql2lnivsrb8q1y";
|
||||
};
|
||||
}
|
||||
26
pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix
Normal file
26
pkgs/tools/inputmethods/ibus-engines/ibus-hangul/default.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{ stdenv, fetchurl, intltool, pkgconfig
|
||||
, gtk3, ibus, libhangul, librsvg, python3, pygobject3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-hangul-${version}";
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/choehwanjin/ibus-hangul/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "120p9w7za6hi521hz8q235fkl4i3p1qqr8nqm4a3kxr0pcq40bd2";
|
||||
};
|
||||
|
||||
buildInputs = [ gtk3 ibus libhangul python3 pygobject3 ];
|
||||
|
||||
nativeBuildInputs = [ intltool pkgconfig ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
description = "Ibus Hangul engine";
|
||||
homepage = https://github.com/choehwanjin/ibus-hangul;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
}
|
||||
36
pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix
Normal file
36
pkgs/tools/inputmethods/ibus-engines/ibus-m17n/default.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
, automake, autoconf, libtool, pkgconfig
|
||||
, ibus, m17n_lib, m17n_db, gettext, python3, pygobject3
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-m17n-${version}";
|
||||
version = "1.3.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ibus";
|
||||
repo = "ibus-m17n";
|
||||
rev = version;
|
||||
sha256 = "1n0bvgc4jyksgvzrw5zs2pxcpxcn3gcc0j2kasbznm34fpv3frsr";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
ibus m17n_lib m17n_db gettext
|
||||
python3 pygobject3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ automake autoconf libtool pkgconfig ];
|
||||
|
||||
preConfigure = ''
|
||||
autoreconf --verbose --force --install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
description = "m17n engine for ibus";
|
||||
homepage = https://github.com.com/ibus/ibus-m17n;
|
||||
license = licenses.gpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
}
|
||||
@@ -7,33 +7,41 @@ let
|
||||
sha256 = "0pyrpz9c8nxccwpgyr36w314mi8h132cis8ijvlqmmhqxwsi30hm";
|
||||
};
|
||||
in clangStdenv.mkDerivation rec {
|
||||
name = "mozc-${version}";
|
||||
version = "2015-05-02";
|
||||
name = "ibus-mozc-${version}";
|
||||
version = "2.17.2313.102";
|
||||
|
||||
meta = with clangStdenv.lib; {
|
||||
description = "Japanese input method from Google";
|
||||
homepage = http://code.google.com/p/mozc/;
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.gebner ];
|
||||
isIbusEngine = true;
|
||||
description = "Japanese input method from Google";
|
||||
homepage = http://code.google.com/p/mozc/;
|
||||
license = licenses.free;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ gebner ericsagnes ];
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ gyp which ninja python pkgconfig ];
|
||||
buildInputs = [ protobuf ibus gtk zinnia qt4 libxcb ];
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "google";
|
||||
repo = "mozc";
|
||||
rev = "d9783737ecfcb68c3d98d84e7052d716f4d0e0cb";
|
||||
sha256 = "52a83658e2e4a7b38e31a4085682be24c9c5f4c51a01578598a30b9833827b72";
|
||||
owner = "google";
|
||||
repo = "mozc";
|
||||
rev = "3306d3314499a54a4064b8b80bbc1bce3f6cfac4";
|
||||
sha256 = "0l7mjlnbm6i1ipni8pg9ym5bjg3rzkaxi9xwmsz2lddv348sqii2";
|
||||
};
|
||||
|
||||
postUnpack = ''
|
||||
rmdir $sourceRoot/src/third_party/japanese_usage_dictionary/
|
||||
ln -s ${japanese_usage_dictionary} $sourceRoot/src/third_party/japanese_usage_dictionary
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
export GYP_DEFINES="ibus_mozc_path=$out/lib/ibus-mozc/ibus-engine-mozc ibus_mozc_icon_path=$out/share/ibus-mozc/product_icon.png document_dir=$out/share/doc/mozc zinnia_model_file=${tegaki-zinnia-japanese}/share/tegaki/models/zinnia/handwriting-ja.model use_libprotobuf=1"
|
||||
python src/build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc
|
||||
export GYP_DEFINES="document_dir=$out/share/doc/mozc use_libzinnia=1 use_libprotobuf=1 ibus_mozc_path=$out/lib/ibus-mozc/ibus-engine-mozc"
|
||||
python src/build_mozc.py gyp --gypdir=${gyp}/bin --server_dir=$out/lib/mozc \
|
||||
python src/unix/fcitx/fcitx.gyp gyp --gypdir=${gyp}/bin
|
||||
'';
|
||||
|
||||
preBuildPhase = ''
|
||||
head -n 29 src/server/mozc_server.cc > LICENSE
|
||||
'';
|
||||
|
||||
buildPhase = ''
|
||||
@@ -50,6 +58,9 @@ in clangStdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -d $out/share/licenses/mozc/
|
||||
install -m 644 LICENSE src/data/installer/*.html $out/share/licenses/mozc/
|
||||
|
||||
install -D -m 755 src/out_linux/Release/mozc_server $out/lib/mozc/mozc_server
|
||||
install -m 755 src/out_linux/Release/mozc_tool $out/lib/mozc/mozc_tool
|
||||
|
||||
@@ -12,18 +12,19 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ ibus ibus-table pkgconfig python3 ];
|
||||
|
||||
preBuild = ''
|
||||
export HOME=/tmp/ibus-table-others
|
||||
export HOME=$(mktemp -d)/ibus-table-others
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
rm -rf /tmp/ibus-table-others
|
||||
rm -rf $HOME
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Various table-based input methods for IBus";
|
||||
homepage = https://github.com/moebiuscurve/ibus-table-others;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mudri ];
|
||||
isIbusEngine = true;
|
||||
description = "Various table-based input methods for IBus";
|
||||
homepage = https://github.com/moebiuscurve/ibus-table-others;
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mudri ];
|
||||
};
|
||||
}
|
||||
41
pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
Normal file
41
pkgs/tools/inputmethods/ibus-engines/ibus-table/default.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{ stdenv, fetchurl, pkgconfig
|
||||
, gtk3, dconf, gobjectIntrospection, ibus, python3, pygobject3 }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-table-${version}";
|
||||
version = "1.9.11";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/kaio/ibus-table/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "14sb89z1inbbhcrbsm5nww8la04ncy2lk32mxfqpi4ghl22ixxqd";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Data paths will be set at run-time.
|
||||
sed -e "/export IBUS_TABLE_LIB_LOCATION=/ s/^.*$//" \
|
||||
-e "/export IBUS_TABLE_LOCATION=/ s/^.*$//" \
|
||||
-i "engine/ibus-engine-table.in"
|
||||
sed -e "/export IBUS_TABLE_BIN_PATH=/ s/^.*$//" \
|
||||
-e "/export IBUS_TABLE_DATA_DIR=/ s/^.*$//" \
|
||||
-i "engine/ibus-table-createdb.in"
|
||||
sed -e "/export IBUS_PREFIX=/ s/^.*$//" \
|
||||
-e "/export IBUS_DATAROOTDIR=/ s/^.$//" \
|
||||
-e "/export IBUS_LOCALEDIR=/ s/^.$//" \
|
||||
-i "setup/ibus-setup-table.in"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
dconf gtk3 gobjectIntrospection ibus python3 pygobject3
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
isIbusEngine = true;
|
||||
description = "An IBus framework for table-based input methods";
|
||||
homepage = https://github.com/kaio/ibus-table/wiki;
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mudri ];
|
||||
};
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
{ stdenv, fetchurl, ibus, pkgconfig, python3, pythonPackages }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-table-${version}";
|
||||
version = "1.9.6";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/kaio/ibus-table/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "0xygfscmsx0x80c4d4v40k9bc7831kgdsc74mc84ljxbjg9p9lcf";
|
||||
};
|
||||
|
||||
buildInputs = [ ibus pkgconfig python3 pythonPackages.pygobject3 ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An IBus framework for table-based input methods";
|
||||
homepage = https://github.com/kaio/ibus-table/wiki;
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mudri ];
|
||||
};
|
||||
}
|
||||
@@ -1,42 +1,71 @@
|
||||
{ stdenv, fetchurl, makeWrapper, python, intltool, pkgconfig
|
||||
, gnome3, atk, pygobject3, dbus, libnotify, isocodes, gobjectIntrospection, wayland }:
|
||||
{ stdenv, fetchurl, makeWrapper
|
||||
, intltool, isocodes, pkgconfig
|
||||
, python3, pygobject3
|
||||
, gtk2, gtk3, atk, dconf, glib
|
||||
, dbus, libnotify, gobjectIntrospection, wayland
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ibus-${version}";
|
||||
version = "1.5.11";
|
||||
version = "1.5.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ibus/ibus/releases/download/${version}/${name}.tar.gz";
|
||||
sha256 = "1g26llizd26h9sfz4xdq8krhz19hn08pirvfbkk3g89ri8lmm6a9";
|
||||
sha256 = "1wd5azlsgdih8qw6gi15rv130s6d90846n3r1ccwmp6z882xhwzd";
|
||||
};
|
||||
|
||||
configureFlags = "--disable-gconf --enable-dconf --disable-memconf --enable-ui --enable-python-library";
|
||||
postPatch = ''
|
||||
# These paths will be set in the wrapper.
|
||||
sed -e "/export IBUS_DATAROOTDIR/ s/^.*$//" \
|
||||
-e "/export IBUS_LIBEXECDIR/ s/^.*$//" \
|
||||
-e "/export IBUS_LOCALEDIR/ s/^.*$//" \
|
||||
-e "/export IBUS_PREFIX/ s/^.*$//" \
|
||||
-i "setup/ibus-setup.in"
|
||||
'';
|
||||
|
||||
buildInputs = [
|
||||
makeWrapper python gnome3.glib wayland
|
||||
intltool pkgconfig gnome3.gtk2
|
||||
gnome3.gtk3 dbus gnome3.dconf gnome3.gconf
|
||||
libnotify isocodes gobjectIntrospection
|
||||
configureFlags = [
|
||||
"--disable-gconf"
|
||||
"--enable-dconf"
|
||||
"--disable-memconf"
|
||||
"--enable-ui"
|
||||
"--enable-python-library"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
python3 pygobject3
|
||||
intltool isocodes pkgconfig
|
||||
gtk2 gtk3 dconf glib
|
||||
dbus libnotify gobjectIntrospection wayland
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
preConfigure = ''
|
||||
# Fix hard-coded installation paths, so make does not try to overwrite our
|
||||
# Python installation.
|
||||
sed -e "/py2overridesdir=/ s|=.*$|=$out/lib/${python3.libPrefix}|" \
|
||||
-e "/pyoverridesdir=/ s|=.*$|=$out/lib/${python3.libPrefix}|" \
|
||||
-e "/PYTHON2_LIBDIR/ s|=.*|=$out/lib/${python3.libPrefix}|" \
|
||||
-i configure
|
||||
|
||||
# Don't try to generate a system-wide dconf database; it wouldn't work.
|
||||
substituteInPlace data/dconf/Makefile.in --replace "dconf update" "echo"
|
||||
sed -i "s|PYTHON2_LIBDIR=.*|PYTHON2_LIBDIR=$out/lib/${python.libPrefix}|" configure
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
for f in "$out"/bin/*; do
|
||||
wrapProgram "$f" --prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--prefix PYTHONPATH : "$(toPythonPath ${pygobject3})" \
|
||||
--prefix LD_LIBRARY_PATH : "${gnome3.gtk3.out}/lib:${atk.out}/lib:$out/lib" \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${gnome3.dconf}/lib/gio/modules"
|
||||
for f in "$out/bin"/*; do #*/
|
||||
wrapProgram "$f" \
|
||||
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH" \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/ibus/ibus;
|
||||
description = "Intelligent Input Bus for Linux / Unix OS";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.ttuegel ];
|
||||
};
|
||||
}
|
||||
|
||||
44
pkgs/tools/inputmethods/ibus/wrapper.nix
Normal file
44
pkgs/tools/inputmethods/ibus/wrapper.nix
Normal file
@@ -0,0 +1,44 @@
|
||||
{ stdenv, runCommand, makeWrapper, lndir
|
||||
, dconf, hicolor_icon_theme, ibus, librsvg, plugins
|
||||
}:
|
||||
|
||||
let
|
||||
name = "ibus-with-plugins-" + (builtins.parseDrvName ibus.name).version;
|
||||
env = {
|
||||
buildInputs = [ ibus ] ++ plugins;
|
||||
nativeBuildInputs = [ lndir makeWrapper ];
|
||||
propagatedUserEnvPackages = [ hicolor_icon_theme ];
|
||||
paths = [ ibus ] ++ plugins;
|
||||
inherit (ibus) meta;
|
||||
};
|
||||
command = ''
|
||||
for dir in bin etc lib libexec share; do
|
||||
mkdir -p "$out/$dir"
|
||||
for pkg in $paths; do
|
||||
if [ -d "$pkg/$dir" ]; then
|
||||
lndir -silent "$pkg/$dir" "$out/$dir"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
||||
for prog in ibus ibus-daemon ibus-setup; do
|
||||
wrapProgram "$out/bin/$prog" \
|
||||
--prefix GDK_PIXBUF_MODULE_FILE : ${librsvg}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
|
||||
--prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH:$out/lib/girepository-1.0" \
|
||||
--prefix GIO_EXTRA_MODULES : "${dconf}/lib/gio/modules" \
|
||||
--set IBUS_COMPONENT_PATH "$out/share/ibus/component/" \
|
||||
--set IBUS_DATAROOTDIR "$out/share" \
|
||||
--set IBUS_LIBEXECDIR "$out/libexec" \
|
||||
--set IBUS_LOCALEDIR "$out/share/locale" \
|
||||
--set IBUS_PREFIX "$out" \
|
||||
--set IBUS_TABLE_BIN_PATH "$out/bin" \
|
||||
--set IBUS_TABLE_DATA_DIR "$out/share" \
|
||||
--set IBUS_TABLE_LIB_LOCATION "$out/libexec" \
|
||||
--set IBUS_TABLE_LOCATION "$out/share/ibus-table" \
|
||||
--prefix PYTHONPATH : "$PYTHONPATH" \
|
||||
--prefix XDG_DATA_DIRS : "$out/share:$GSETTINGS_SCHEMAS_PATH" \
|
||||
--suffix XDG_DATA_DIRS : "${hicolor_icon_theme}/share"
|
||||
done
|
||||
'';
|
||||
in
|
||||
runCommand name env command
|
||||
21
pkgs/tools/inputmethods/keyfuzz/default.nix
Normal file
21
pkgs/tools/inputmethods/keyfuzz/default.nix
Normal file
@@ -0,0 +1,21 @@
|
||||
{ stdenv, fetchurl }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "keyfuzz-${version}";
|
||||
version = "0.2";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Manipulate the scancode/keycode translation tables of keyboard drivers.";
|
||||
homepace = http://0pointer.de/lennart/projects/keyfuzz/;
|
||||
license = licenses.gpl2Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ mboes ];
|
||||
};
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://0pointer.de/lennart/projects/keyfuzz/keyfuzz-0.2.tar.gz";
|
||||
sha256 = "0xv9ymivp8fnyc5xcyh1vamxnx90bzw66wlld813fvm6q2gsiknk";
|
||||
};
|
||||
|
||||
configureFlags = "--without-initdir --disable-lynx";
|
||||
}
|
||||
39
pkgs/tools/inputmethods/uim/data-hook.patch
Normal file
39
pkgs/tools/inputmethods/uim/data-hook.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
--- a/gtk2/immodule/Makefile.in 2015-11-24 16:21:08.967087208 +0900
|
||||
+++ b/gtk2/immodule/Makefile.in 2015-11-24 16:22:53.316095150 +0900
|
||||
@@ -806,7 +806,6 @@
|
||||
|
||||
install-data-am: install-moduleLTLIBRARIES
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
@@ -861,7 +860,7 @@
|
||||
ctags distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
- install-data-am install-data-hook install-dvi install-dvi-am \
|
||||
+ install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man \
|
||||
install-moduleLTLIBRARIES install-pdf install-pdf-am \
|
||||
|
||||
--- a/gtk3/immodule/Makefile.in 2015-11-24 16:21:08.971087209 +0900
|
||||
+++ b/gtk3/immodule/Makefile.in 2015-11-24 16:23:28.251097832 +0900
|
||||
@@ -824,7 +824,6 @@
|
||||
|
||||
install-data-am: install-moduleLTLIBRARIES
|
||||
@$(NORMAL_INSTALL)
|
||||
- $(MAKE) $(AM_MAKEFLAGS) install-data-hook
|
||||
install-dvi: install-dvi-am
|
||||
|
||||
install-dvi-am:
|
||||
@@ -879,7 +878,7 @@
|
||||
ctags distclean distclean-compile distclean-generic \
|
||||
distclean-libtool distclean-tags distdir dvi dvi-am html \
|
||||
html-am info info-am install install-am install-data \
|
||||
- install-data-am install-data-hook install-dvi install-dvi-am \
|
||||
+ install-data-am install-dvi install-dvi-am \
|
||||
install-exec install-exec-am install-html install-html-am \
|
||||
install-info install-info-am install-man \
|
||||
install-moduleLTLIBRARIES install-pdf install-pdf-am
|
||||
@@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||
m17n_db
|
||||
];
|
||||
|
||||
patches = [ ./immodules_cache.patch ];
|
||||
patches = [ ./data-hook.patch ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-gtk2"
|
||||
@@ -41,10 +41,11 @@ stdenv.mkDerivation rec {
|
||||
sha1 = "43b9dbdead6797880e6cfc9c032ecb2d37d42777";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = "http://code.google.com/p/uim/";
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://code.google.com/p/uim/";
|
||||
description = "A multilingual input method framework";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
maintainers = with maintainers; [ ericsagnes ];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,231 +0,0 @@
|
||||
diff -ru -x '*~' uim-1.8.6.orig/gtk2/immodule/Makefile.am uim-1.8.6/gtk2/immodule/Makefile.am
|
||||
--- uim-1.8.6.orig/gtk2/immodule/Makefile.am 2013-06-30 13:26:09.000000000 +0900
|
||||
+++ uim-1.8.6/gtk2/immodule/Makefile.am 2014-07-13 21:51:26.538400004 +0900
|
||||
@@ -1,5 +1,5 @@
|
||||
uim_gtk_im_module_path = $(libdir)/gtk-2.0
|
||||
-uim_gtk_im_module_file = $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules
|
||||
+uim_gtk_im_module_file = $(uim_gtk_im_module_path)/@GTK_BINARY_VERSION@/immodules.cache
|
||||
|
||||
moduledir = $(uim_gtk_im_module_path)/@GTK_BINARY_VERSION@/immodules
|
||||
|
||||
@@ -38,48 +38,12 @@
|
||||
|
||||
install-data-hook: gtk-rc-get-immodule-file
|
||||
if test -z $(DESTDIR); then \
|
||||
- if test $(libdir) = $(GTK_LIBDIR); then \
|
||||
- if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
- $(QUERY_COMMAND) > `$(GTK_RC_GET_IMMODULE_FILE)`; \
|
||||
- echo "*** \"`$(GTK_RC_GET_IMMODULE_FILE)`\" is updated. ***"; \
|
||||
- else \
|
||||
- echo "********************** Warning ***********************"; \
|
||||
- echo " $(QUERY_COMMAND) not found"; \
|
||||
- echo " Please make sure to update"; \
|
||||
- echo " \"`$(GTK_RC_GET_IMMODULE_FILE)`\""; \
|
||||
- echo " manually."; \
|
||||
- echo "******************************************************"; \
|
||||
- fi \
|
||||
- else \
|
||||
- if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
- $(mkinstalldirs) $(sysconfdir)/gtk-2.0; \
|
||||
- GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
- echo "******************************************************"; \
|
||||
- echo " You need to set"; \
|
||||
- echo " GTK_IM_MODULE_FILE=$(uim_gtk_im_module_file)"; \
|
||||
- echo " environment variable to use this module."; \
|
||||
- echo "******************************************************"; \
|
||||
- else \
|
||||
- echo "********************** Warning ***********************"; \
|
||||
- echo " $(QUERY_COMMAND) not found"; \
|
||||
- echo " Please make sure to update"; \
|
||||
- echo " \"$(uim_gtk_im_module_file)\""; \
|
||||
- echo " manually, and set"; \
|
||||
- echo " GTK_IM_MODULE_FILE=$(uim_gtk_im_module_file)"; \
|
||||
- echo " environment variable to use this module."; \
|
||||
- echo "******************************************************"; \
|
||||
- fi \
|
||||
- fi \
|
||||
+ $(mkinstalldirs) $(uim_gtk_im_module_path)/@GTK_BINARY_VERSION@; \
|
||||
+ GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
fi
|
||||
uninstall-hook:
|
||||
if test -z $(DESTDIR); then \
|
||||
- if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
- if test $(libdir) = $(GTK_LIBDIR); then \
|
||||
- $(QUERY_COMMAND) > `$(GTK_RC_GET_IMMODULE_FILE)`; \
|
||||
- else \
|
||||
- GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
- fi \
|
||||
- fi \
|
||||
+ GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
fi
|
||||
else
|
||||
install-data-hook:
|
||||
diff -ru -x '*~' uim-1.8.6.orig/gtk2/immodule/Makefile.in uim-1.8.6/gtk2/immodule/Makefile.in
|
||||
--- uim-1.8.6.orig/gtk2/immodule/Makefile.in 2013-06-30 13:27:08.000000000 +0900
|
||||
+++ uim-1.8.6/gtk2/immodule/Makefile.in 2014-07-13 22:12:27.947595507 +0900
|
||||
@@ -434,7 +434,7 @@
|
||||
top_srcdir = @top_srcdir@
|
||||
uim_pixmapsdir = @uim_pixmapsdir@
|
||||
uim_gtk_im_module_path = $(libdir)/gtk-2.0
|
||||
-uim_gtk_im_module_file = $(DESTDIR)$(sysconfdir)/gtk-2.0/gtk.immodules
|
||||
+uim_gtk_im_module_file = $(uim_gtk_im_module_path)/@GTK_BINARY_VERSION@/immodules.cache
|
||||
moduledir = $(uim_gtk_im_module_path)/@GTK_BINARY_VERSION@/immodules
|
||||
@GTK2_TRUE@im_uim_la = im-uim.la
|
||||
@GTK2_TRUE@im_uim_la_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
|
||||
@@ -875,48 +875,12 @@
|
||||
|
||||
@GTK2_TRUE@install-data-hook: gtk-rc-get-immodule-file
|
||||
@GTK2_TRUE@ if test -z $(DESTDIR); then \
|
||||
-@GTK2_TRUE@ if test $(libdir) = $(GTK_LIBDIR); then \
|
||||
-@GTK2_TRUE@ if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
-@GTK2_TRUE@ $(QUERY_COMMAND) > `$(GTK_RC_GET_IMMODULE_FILE)`; \
|
||||
-@GTK2_TRUE@ echo "*** \"`$(GTK_RC_GET_IMMODULE_FILE)`\" is updated. ***"; \
|
||||
-@GTK2_TRUE@ else \
|
||||
-@GTK2_TRUE@ echo "********************** Warning ***********************"; \
|
||||
-@GTK2_TRUE@ echo " $(QUERY_COMMAND) not found"; \
|
||||
-@GTK2_TRUE@ echo " Please make sure to update"; \
|
||||
-@GTK2_TRUE@ echo " \"`$(GTK_RC_GET_IMMODULE_FILE)`\""; \
|
||||
-@GTK2_TRUE@ echo " manually."; \
|
||||
-@GTK2_TRUE@ echo "******************************************************"; \
|
||||
-@GTK2_TRUE@ fi \
|
||||
-@GTK2_TRUE@ else \
|
||||
-@GTK2_TRUE@ if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
-@GTK2_TRUE@ $(mkinstalldirs) $(sysconfdir)/gtk-2.0; \
|
||||
-@GTK2_TRUE@ GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
-@GTK2_TRUE@ echo "******************************************************"; \
|
||||
-@GTK2_TRUE@ echo " You need to set"; \
|
||||
-@GTK2_TRUE@ echo " GTK_IM_MODULE_FILE=$(uim_gtk_im_module_file)"; \
|
||||
-@GTK2_TRUE@ echo " environment variable to use this module."; \
|
||||
-@GTK2_TRUE@ echo "******************************************************"; \
|
||||
-@GTK2_TRUE@ else \
|
||||
-@GTK2_TRUE@ echo "********************** Warning ***********************"; \
|
||||
-@GTK2_TRUE@ echo " $(QUERY_COMMAND) not found"; \
|
||||
-@GTK2_TRUE@ echo " Please make sure to update"; \
|
||||
-@GTK2_TRUE@ echo " \"$(uim_gtk_im_module_file)\""; \
|
||||
-@GTK2_TRUE@ echo " manually, and set"; \
|
||||
-@GTK2_TRUE@ echo " GTK_IM_MODULE_FILE=$(uim_gtk_im_module_file)"; \
|
||||
-@GTK2_TRUE@ echo " environment variable to use this module."; \
|
||||
-@GTK2_TRUE@ echo "******************************************************"; \
|
||||
-@GTK2_TRUE@ fi \
|
||||
-@GTK2_TRUE@ fi \
|
||||
+@GTK2_TRUE@ $(mkinstalldirs) $(uim_gtk_im_module_path)/@GTK_BINARY_VERSION@; \
|
||||
+@GTK2_TRUE@ GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
@GTK2_TRUE@ fi
|
||||
@GTK2_TRUE@uninstall-hook:
|
||||
@GTK2_TRUE@ if test -z $(DESTDIR); then \
|
||||
-@GTK2_TRUE@ if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
-@GTK2_TRUE@ if test $(libdir) = $(GTK_LIBDIR); then \
|
||||
-@GTK2_TRUE@ $(QUERY_COMMAND) > `$(GTK_RC_GET_IMMODULE_FILE)`; \
|
||||
-@GTK2_TRUE@ else \
|
||||
-@GTK2_TRUE@ GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
-@GTK2_TRUE@ fi \
|
||||
-@GTK2_TRUE@ fi \
|
||||
+@GTK2_TRUE@ GTK_PATH=$(uim_gtk_im_module_path) $(QUERY_COMMAND) > $(uim_gtk_im_module_file); \
|
||||
@GTK2_TRUE@ fi
|
||||
@GTK2_FALSE@install-data-hook:
|
||||
|
||||
diff -ru -x '*~' uim-1.8.6.orig/gtk3/immodule/Makefile.am uim-1.8.6/gtk3/immodule/Makefile.am
|
||||
--- uim-1.8.6.orig/gtk3/immodule/Makefile.am 2013-06-30 13:26:20.000000000 +0900
|
||||
+++ uim-1.8.6/gtk3/immodule/Makefile.am 2014-07-13 21:55:38.114246503 +0900
|
||||
@@ -45,42 +45,11 @@
|
||||
|
||||
install-data-hook: gtk3-rc-get-immodule-file
|
||||
if test -z $(DESTDIR); then \
|
||||
- if test $(libdir) = $(GTK3_LIBDIR); then \
|
||||
- if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
- $(QUERY_COMMAND) --update-cache; \
|
||||
- echo "*** \"`$(GTK3_RC_GET_IMMODULE_FILE)`\" is updated. ***"; \
|
||||
- else \
|
||||
- echo "********************** Warning ***********************"; \
|
||||
- echo " $(QUERY_COMMAND) not found"; \
|
||||
- echo " Please make sure to update"; \
|
||||
- echo " \"`$(GTK3_RC_GET_IMMODULE_FILE)`\""; \
|
||||
- echo " manually."; \
|
||||
- echo "******************************************************"; \
|
||||
- fi \
|
||||
- else \
|
||||
- if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
- GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) --update-cache; \
|
||||
- else \
|
||||
- echo "********************** Warning ***********************"; \
|
||||
- echo " $(QUERY_COMMAND) not found"; \
|
||||
- echo " Please make sure to update"; \
|
||||
- echo " immodules.cache"; \
|
||||
- echo " manually, and set"; \
|
||||
- echo " GTK_IM_MODULE_FILE=PATH_TO/immodule.cache"; \
|
||||
- echo " environment variable to use this module."; \
|
||||
- echo "******************************************************"; \
|
||||
- fi \
|
||||
- fi \
|
||||
+ GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) > $(uim_gtk3_im_module_path)/@GTK3_BINARY_VERSION@/immodules.cache ; \
|
||||
fi
|
||||
uninstall-hook:
|
||||
if test -z $(DESTDIR); then \
|
||||
- if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
- if test $(libdir) = $(GTK3_LIBDIR); then \
|
||||
- $(QUERY_COMMAND) --update-cache; \
|
||||
- else \
|
||||
- GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) --update-cache; \
|
||||
- fi \
|
||||
- fi \
|
||||
+ GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) > $(uim_gtk3_im_module_path)/@GTK3_BINARY_VERSION@/immodules.cache ; \
|
||||
fi
|
||||
else
|
||||
install-data-hook:
|
||||
diff -ru -x '*~' uim-1.8.6.orig/gtk3/immodule/Makefile.in uim-1.8.6/gtk3/immodule/Makefile.in
|
||||
--- uim-1.8.6.orig/gtk3/immodule/Makefile.in 2013-06-30 13:27:08.000000000 +0900
|
||||
+++ uim-1.8.6/gtk3/immodule/Makefile.in 2014-07-13 21:56:11.531225832 +0900
|
||||
@@ -893,42 +893,11 @@
|
||||
|
||||
@GTK3_TRUE@install-data-hook: gtk3-rc-get-immodule-file
|
||||
@GTK3_TRUE@ if test -z $(DESTDIR); then \
|
||||
-@GTK3_TRUE@ if test $(libdir) = $(GTK3_LIBDIR); then \
|
||||
-@GTK3_TRUE@ if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
-@GTK3_TRUE@ $(QUERY_COMMAND) --update-cache; \
|
||||
-@GTK3_TRUE@ echo "*** \"`$(GTK3_RC_GET_IMMODULE_FILE)`\" is updated. ***"; \
|
||||
-@GTK3_TRUE@ else \
|
||||
-@GTK3_TRUE@ echo "********************** Warning ***********************"; \
|
||||
-@GTK3_TRUE@ echo " $(QUERY_COMMAND) not found"; \
|
||||
-@GTK3_TRUE@ echo " Please make sure to update"; \
|
||||
-@GTK3_TRUE@ echo " \"`$(GTK3_RC_GET_IMMODULE_FILE)`\""; \
|
||||
-@GTK3_TRUE@ echo " manually."; \
|
||||
-@GTK3_TRUE@ echo "******************************************************"; \
|
||||
-@GTK3_TRUE@ fi \
|
||||
-@GTK3_TRUE@ else \
|
||||
-@GTK3_TRUE@ if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
-@GTK3_TRUE@ GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) --update-cache; \
|
||||
-@GTK3_TRUE@ else \
|
||||
-@GTK3_TRUE@ echo "********************** Warning ***********************"; \
|
||||
-@GTK3_TRUE@ echo " $(QUERY_COMMAND) not found"; \
|
||||
-@GTK3_TRUE@ echo " Please make sure to update"; \
|
||||
-@GTK3_TRUE@ echo " immodules.cache"; \
|
||||
-@GTK3_TRUE@ echo " manually, and set"; \
|
||||
-@GTK3_TRUE@ echo " GTK_IM_MODULE_FILE=PATH_TO/immodule.cache"; \
|
||||
-@GTK3_TRUE@ echo " environment variable to use this module."; \
|
||||
-@GTK3_TRUE@ echo "******************************************************"; \
|
||||
-@GTK3_TRUE@ fi \
|
||||
-@GTK3_TRUE@ fi \
|
||||
+@GTK3_TRUE@ GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) > $(uim_gtk3_im_module_path)/@GTK3_BINARY_VERSION@/immodules.cache ; \
|
||||
@GTK3_TRUE@ fi
|
||||
@GTK3_TRUE@uninstall-hook:
|
||||
@GTK3_TRUE@ if test -z $(DESTDIR); then \
|
||||
-@GTK3_TRUE@ if type $(QUERY_COMMAND) > /dev/null 2>&1; then \
|
||||
-@GTK3_TRUE@ if test $(libdir) = $(GTK3_LIBDIR); then \
|
||||
-@GTK3_TRUE@ $(QUERY_COMMAND) --update-cache; \
|
||||
-@GTK3_TRUE@ else \
|
||||
-@GTK3_TRUE@ GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) --update-cache; \
|
||||
-@GTK3_TRUE@ fi \
|
||||
-@GTK3_TRUE@ fi \
|
||||
+@GTK3_TRUE@ GTK_PATH=$(uim_gtk3_im_module_path) $(QUERY_COMMAND) > $(uim_gtk3_im_module_path)/@GTK3_BINARY_VERSION@/immodules.cache ; \
|
||||
@GTK3_TRUE@ fi
|
||||
@GTK3_FALSE@install-data-hook:
|
||||
|
||||
diff -ru -x '*~' uim-1.8.6.orig/qt4/immodule/quiminputcontextplugin.pro.in uim-1.8.6/qt4/immodule/quiminputcontextplugin.pro.in
|
||||
--- uim-1.8.6.orig/qt4/immodule/quiminputcontextplugin.pro.in 2013-06-30 13:26:20.000000000 +0900
|
||||
+++ uim-1.8.6/qt4/immodule/quiminputcontextplugin.pro.in 2014-03-09 11:31:19.388085048 +0900
|
||||
@@ -35,4 +35,4 @@
|
||||
|
||||
TARGET = uiminputcontextplugin
|
||||
|
||||
-target.path += @DESTDIR@$$[QT_INSTALL_PLUGINS]/inputmethods
|
||||
+target.path += @DESTDIR@@exec_prefix@/lib/qt4/plugins/inputmethods
|
||||
Reference in New Issue
Block a user