summaryrefslogtreecommitdiff
path: root/dev-libs/libdatrie/libdatrie-0.2.14-r1.ebuild
blob: a521fcfc3e57a774a1aa3b6fe3f8f6bab45169e6 (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
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Double-Array Trie Library"
HOMEPAGE="
	https://linux.thai.net/projects/datrie
	https://github.com/tlwg/libdatrie
"

if [[ ${PV} == "9999" ]] ; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/tlwg/${PN}.git"
else
	SRC_URI="https://github.com/tlwg/${PN}/releases/download/v${PV}/${P}.tar.xz"
	KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi

LICENSE="LGPL-2.1+"
# Subslot: LT_CURRENT - LT_AGE from configure.ac (5 - 4 = 1)
SLOT="0/1"
IUSE="doc"

BDEPEND="doc? ( >=app-text/doxygen-1.9.8 )"

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
}