blob: 3a7a59e9292447b6f5dbb863dc0116999d67b937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
DESCRIPTION="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
}
|