aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHuang Rui <vowstar@gmail.com>2021-08-10 18:41:52 +0800
committerHuang Rui <vowstar@gmail.com>2021-08-10 18:41:52 +0800
commitc713bdd88a4375eeb1acf0150ffff49a477eb157 (patch)
tree6a97da407bfef458d05a35c090714b90791bc803 /dev-libs
parentdev-libs/libdatrie: Double-Array Trie Library (diff)
downloadguru-c713bdd88a4375eeb1acf0150ffff49a477eb157.tar.gz
guru-c713bdd88a4375eeb1acf0150ffff49a477eb157.tar.bz2
guru-c713bdd88a4375eeb1acf0150ffff49a477eb157.zip
dev-libs/libthai: new package
A a set of Thai language support routines Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Huang Rui <vowstar@gmail.com>
Diffstat (limited to 'dev-libs')
-rw-r--r--dev-libs/libthai/Manifest1
-rw-r--r--dev-libs/libthai/files/libthai-0.1.28-fix-duplicate-dir.patch25
-rw-r--r--dev-libs/libthai/libthai-0.1.28.ebuild43
-rw-r--r--dev-libs/libthai/metadata.xml19
4 files changed, 88 insertions, 0 deletions
diff --git a/dev-libs/libthai/Manifest b/dev-libs/libthai/Manifest
new file mode 100644
index 000000000..5692d8ba8
--- /dev/null
+++ b/dev-libs/libthai/Manifest
@@ -0,0 +1 @@
+DIST libthai-0.1.28.tar.gz 766571 BLAKE2B 085c59b626a4191b90e0bcf738396b701a93af66f5a92b24934b76435ed91ddbd2f394e5ab1574f2e29cbec3daeb82911de153fb20c9bb77a9875e511a2289a7 SHA512 3a5f8766e3ad1484bb01a58a800667ea0b8b805158e7b574132455bd5a703bf19f4e46db8cb8fe4a75a380d88b6343234fa10dda003dcb2a8452a21acc4b8cf8
diff --git a/dev-libs/libthai/files/libthai-0.1.28-fix-duplicate-dir.patch b/dev-libs/libthai/files/libthai-0.1.28-fix-duplicate-dir.patch
new file mode 100644
index 000000000..d0e331cc3
--- /dev/null
+++ b/dev-libs/libthai/files/libthai-0.1.28-fix-duplicate-dir.patch
@@ -0,0 +1,25 @@
+From 764c1750c18fc3fe4005fcb5b912ce9e39bc2b7f Mon Sep 17 00:00:00 2001
+From: Ross Burton <ross.burton@intel.com>
+Date: Mon, 23 Mar 2020 21:51:31 +0000
+Subject: [PATCH] configure.ac: remove duplicate AC_CONFIG_MACRO_DIR
+
+Autoconf 2.70 will fatally error out if AC_CONFIG_MACRO_DIR is called more than once:
+
+| configure.ac:25: error: AC_CONFIG_MACRO_DIR can only be used once
+---
+ configure.ac | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 913500a..1d174c5 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,8 +22,6 @@ AC_SUBST(LT_CURRENT)
+ AC_SUBST(LT_REVISION)
+ AC_SUBST(LT_AGE)
+
+-AC_CONFIG_MACRO_DIR([m4])
+-
+ DOXYGEN_REQ_VER=1.8.8
+
+ dnl Checks for programs.
diff --git a/dev-libs/libthai/libthai-0.1.28.ebuild b/dev-libs/libthai/libthai-0.1.28.ebuild
new file mode 100644
index 000000000..2d6dcffdd
--- /dev/null
+++ b/dev-libs/libthai/libthai-0.1.28.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="A a set of Thai language support routines"
+HOMEPAGE="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"
+SLOT="0"
+
+RDEPEND="dev-libs/libdatrie"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-vcs/git"
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-duplicate-dir.patch" #fix autoconf-2.7
+)
+
+src_prepare() {
+ default
+ # Fixed version if in non git project
+ echo ${PV} > VERSION
+ # From upstreams autogen.sh, to make it utilize the autotools eclass
+ # Here translate the autogen.sh, equivalent to the following code
+ # > sh autogen.sh
+
+ _elibtoolize --force
+ eaclocal
+ eautomake --add-missing
+ # Not allow git-version-gen does refresh
+ eautoconf
+}
diff --git a/dev-libs/libthai/metadata.xml b/dev-libs/libthai/metadata.xml
new file mode 100644
index 000000000..0823c0f4f
--- /dev/null
+++ b/dev-libs/libthai/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>vowstar@gmail.com</email>
+ <name>Huang Rui</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>
+</pkgmetadata>