commit:     83ec0a6122b18ac5fb8b30b250945a13c844ced8
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Fri Feb  6 03:40:54 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Wed Feb 11 07:17:26 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=83ec0a61

dev-libs/libthai: new package, add 0.1.30

Imported from GURU with KEYWORDS retained to avoid breaking existing users.

Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45629
Closes: https://github.com/gentoo/gentoo/pull/45629
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/libthai/Manifest              |  1 +
 dev-libs/libthai/libthai-0.1.30.ebuild | 47 ++++++++++++++++++++++++++++++++++
 dev-libs/libthai/metadata.xml          | 29 +++++++++++++++++++++
 3 files changed, 77 insertions(+)

diff --git a/dev-libs/libthai/Manifest b/dev-libs/libthai/Manifest
new file mode 100644
index 000000000000..1ff2cc602b4e
--- /dev/null
+++ b/dev-libs/libthai/Manifest
@@ -0,0 +1 @@
+DIST libthai-0.1.30.tar.gz 788177 BLAKE2B 
e6ad064945a983208f06ec9dba799d530ac859153c0229b1441ee6b7a3c45a800856fa07988f8a072010b16a0dc88c1d9a5fa3bfae77ddd4aee982a6d10fb1e7
 SHA512 
a33ef585c6f503eb6b609b73ddc5f3960ec58dc10fd07205eaa60596709ece47934571ca21b01a294c172f4a5fc374038a8726c1ed07aabf12b0bdd1a4565320

diff --git a/dev-libs/libthai/libthai-0.1.30.ebuild 
b/dev-libs/libthai/libthai-0.1.30.ebuild
new file mode 100644
index 000000000000..2d62602b4ce1
--- /dev/null
+++ b/dev-libs/libthai/libthai-0.1.30.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools
+
+DESCRIPTION="A a set of Thai language support routines"
+HOMEPAGE="
+       https://linux.thai.net/projects/libthai
+       https://github.com/tlwg/libthai
+"
+
+if [[ ${PV} == "9999" ]] ; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/tlwg/${PN}.git";
+else
+       SRC_URI="https://github.com/tlwg/${PN}/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+       KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+fi
+
+LICENSE="LGPL-2.1+"
+# Subslot: LT_CURRENT - LT_AGE from configure.ac (3 - 3 = 0)
+SLOT="0/0"
+IUSE="doc"
+
+RDEPEND="dev-libs/libdatrie:="
+DEPEND="${RDEPEND}"
+BDEPEND="doc? ( >=app-text/doxygen-1.15.0 )"
+
+src_prepare() {
+       default
+       # Fixed version if in non git project
+       echo ${PV} > VERSION
+       eautoreconf
+}
+
+src_configure() {
+       econf \
+               $(use_enable doc doxygen-doc) \
+               --with-html-docdir="${EPREFIX}"/usr/share/doc/${PF}/html
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

diff --git a/dev-libs/libthai/metadata.xml b/dev-libs/libthai/metadata.xml
new file mode 100644
index 000000000000..cc3ac48f5dbb
--- /dev/null
+++ b/dev-libs/libthai/metadata.xml
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Huang Rui</name>
+       </maintainer>
+       <maintainer type="project">
+               <email>[email protected]</email>
+               <name>Proxy Maintainers</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">tlwg/libthai</remote-id>
+       </upstream>
+       <longdescription lang="en">
+       LibThai is a set of Thai language support routines aimed to ease
+       developers' tasks to incorporate Thai language support in their
+       applications. It includes important Thai-specific functions e.g. word
+       breaking, input and output methods as well as basic character and
+       string supports. LibThai is an Open Source and collaborative effort
+       initiated by Thai Linux Working Group and opened for all contributors.
+       </longdescription>
+       <longdescription lang="zh">
+       LibThai 是一套泰语支持例程,旨在帮助开发人员在其应用程序中轻松集成泰语
+       支持。它包含重要的泰语特定功能,如分词、输入输出方法以及基本的字符和字符
+       串支持。LibThai 是由泰国 Linux 工作组发起的开源协作项目,欢迎所有贡献者
+       参与。
+       </longdescription>
+</pkgmetadata>

Reply via email to