git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #32108 from yuriaisaka/pr-libskk-init

libskk: init at 1.0.2

commit0238e5ca93fa4a46d59061e0b43057e3ece5f67a authorOrivej Desh <orivej@gmx.fr> dateWed 29 Nov 2017, 01:03 (9 years ago) parent204aa4b42002ea
2 files changed+49
pkgs/development/libraries/libskk/default.nix+47 pkgs/top-level/all-packages.nix+2
pkgs/development/libraries/libskk/default.nixnew file+47
@@ -0,0 +1,47 @@
1+{ stdenv, fetchurl, fetchFromGitHub,
2+ libtool, intltool, pkgconfig,
3+ vala, gnome_common, gobjectIntrospection,
4+ libgee_0_8, json_glib, skk-dicts }:
5+
6+stdenv.mkDerivation rec {
7+ name = "libskk-${version}";
8+ version = "1.0.2";
9+
10+ src = fetchFromGitHub {
11+ owner = "ueno";
12+ repo = "libskk";
13+ rev = "6a232e75de6d5dbe543ab17c9b85dc7560093509";
14+ sha256 = "1xa9akf95jyi4laiw1llnjdpfq5skhidm7dnkd0i0ds6npzzqnxc";
15+ };
16+
17+ buildInputs = [ skk-dicts ];
18+ nativeBuildInputs = [ vala gnome_common gobjectIntrospection libtool intltool pkgconfig ];
19+ propagatedBuildInputs = [ libgee_0_8 json_glib ];
20+
21+ preConfigure = ''
22+ ./autogen.sh
23+ '';
24+
25+ # link SKK-JISYO.L from skkdicts for the bundled tool `skk`
26+ preInstall = ''
27+ dictDir=$out/share/skk
28+ mkdir -p $dictDir
29+ ln -s ${skk-dicts}/share/SKK-JISYO.L $dictDir/
30+ '';
31+
32+ meta = {
33+ description = "A library to deal with Japanese kana-to-kanji conversion method";
34+ longDescription = ''
35+ Libskk is a library that implements basic features of SKK including:
36+ new word registration, completion, numeric conversion, abbrev mode, kuten input,
37+ hankaku-katakana input, Lisp expression evaluation (concat only), and re-conversion.
38+ It also supports various typing rules including: romaji-to-kana, AZIK, TUT-Code, and NICOLA,
39+ as well as various dictionary types including: file dictionary (such as SKK-JISYO.[SML]),
40+ user dictionary, skkserv, and CDB format dictionary.
41+ '';
42+ homepage = https://github.com/ueno/libskk;
43+ license = stdenv.lib.licenses.gpl3Plus;
44+ maintainers = with stdenv.lib.maintainers; [ yuriaisaka ];
45+ platforms = stdenv.lib.platforms.linux;
46+ };
47+}
pkgs/top-level/all-packages.nix+2
@@ -1494,6 +1494,8 @@ with pkgs;
14941494
14951495 libpinyin = callPackage ../development/libraries/libpinyin { };
14961496
1497+ libskk = callPackage ../development/libraries/libskk { gnome_common = gnome3.gnome_common; };
1498+
14971499 m17n_db = callPackage ../tools/inputmethods/m17n-db { };
14981500
14991501 m17n_lib = callPackage ../tools/inputmethods/m17n-lib { };