Files
gentoo/dev-libs/libdatrie/libdatrie-0.2.14.ebuild
Huang Rui 60ceb444f6 dev-libs/libdatrie: new package, add 0.2.14
Imported from GURU with KEYWORDS retained to avoid breaking existing users.

Signed-off-by: Huang Rui <vowstar@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45629
Signed-off-by: Sam James <sam@gentoo.org>
2026-02-11 07:17:25 +00:00

46 lines
933 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit autotools
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_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
}