Merge pull request #102122 from SuperSandro2000/libthai

This commit is contained in:
Jan Tojnar 2020-11-01 01:25:51 +01:00 committed by GitHub
commit 2785a1e08e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 86 additions and 2 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl, makeWrapper, installShellFiles, pkg-config, libiconv }:
stdenv.mkDerivation rec {
pname = "libdatrie";
version = "0.2.12";
src = fetchurl {
url = "https://github.com/tlwg/libdatrie/releases/download/v${version}/libdatrie-${version}.tar.xz";
sha256 = "0jdi01pcxv0b24zbjy7zahawsqqqw4mv94f2yy01zh4n796wqba5";
};
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = stdenv.lib.optional stdenv.isDarwin libiconv;
postInstall = ''
installManPage man/trietool.1
'';
meta = with stdenv.lib;{
homepage = "https://linux.thai.net/~thep/datrie/datrie.html";
description = "This is an implementation of double-array structure for representing trie";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -0,0 +1,27 @@
{ stdenv, fetchurl, makeWrapper, installShellFiles, pkg-config, libdatrie }:
stdenv.mkDerivation rec {
pname = "libthai";
version = "0.1.28";
src = fetchurl {
url = "https://github.com/tlwg/libthai/releases/download/v${version}/libthai-${version}.tar.xz";
sha256 = "04g93bgxrcnay9fglpq2lj9nr7x1xh06i60m7haip8as9dxs3q7z";
};
nativeBuildInputs = [ installShellFiles pkg-config ];
buildInputs = [ libdatrie ];
postInstall = ''
installManPage man/man3/*.3
'';
meta = with stdenv.lib; {
homepage = "https://linux.thai.net/projects/libthai/";
description = "Set of Thai language support routines";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, cairo, harfbuzz
, libintl, gobject-introspection, darwin, fribidi, gnome3
, libintl, libthai, gobject-introspection, darwin, fribidi, gnome3
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, makeFontsConf, freefont_ttf
, meson, ninja, glib
, x11Support? !stdenv.isDarwin, libXft
@ -28,6 +28,7 @@ in stdenv.mkDerivation rec {
];
buildInputs = [
fribidi
libthai
] ++ optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
ApplicationServices
Carbon
@ -39,7 +40,6 @@ in stdenv.mkDerivation rec {
mesonFlags = [
"-Dgtk_doc=${if stdenv.isDarwin then "false" else "true"}"
"-Dlibthai=disabled" # Not packaged in Nixpkgs
] ++ stdenv.lib.optionals stdenv.isDarwin [
"-Dxft=disabled" # only works with x11
];

View File

@ -0,0 +1,24 @@
{ stdenv, fetchurl, makeWrapper, pkg-config, ibus, gtk3, libthai }:
stdenv.mkDerivation rec {
pname = "ibus-libthai";
version = "0.1.4";
src = fetchurl {
url = "https://linux.thai.net/pub/ThaiLinux/software/libthai/ibus-libthai-${version}.tar.xz";
sha256 = "0iam7308rxkx2xwaabc5wyj7vrxgd4cr95pvwrkm8fr9gh2xnwgv";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk3 ibus libthai ];
meta = with stdenv.lib; {
isIbusEngine = true;
homepage = "https://linux.thai.net/projects/ibus-libthai";
description = "Thai input method engine for IBus";
license = licenses.lgpl21Plus;
platforms = platforms.unix;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -2876,6 +2876,8 @@ in
libpinyin = callPackage ../tools/inputmethods/ibus-engines/ibus-libpinyin { };
libthai = callPackage ../tools/inputmethods/ibus-engines/ibus-libthai { };
m17n = callPackage ../tools/inputmethods/ibus-engines/ibus-m17n { };
mozc = callPackage ../tools/inputmethods/ibus-engines/ibus-mozc {
@ -13500,6 +13502,8 @@ in
libdap = callPackage ../development/libraries/libdap { };
libdatrie = callPackage ../development/libraries/libdatrie { };
libdazzle = callPackage ../development/libraries/libdazzle { };
libdbi = callPackage ../development/libraries/libdbi { };
@ -14216,6 +14220,8 @@ in
libtcod = callPackage ../development/libraries/libtcod { };
libthai = callPackage ../development/libraries/libthai { };
libtheora = callPackage ../development/libraries/libtheora { };
libthreadar = callPackage ../development/libraries/libthreadar { };