You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
872 B

# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="A documentation metadata library"
HOMEPAGE="https://rarian.freedesktop.org/"
SRC_URI="https://gitlab.freedesktop.org/rarian/rarian/-/releases/${PV}/downloads/assets/${P}.tar.bz2"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux"
IUSE="test"
RESTRICT="!test? ( test )"
COMMON_DEPEND="
dev-libs/libxslt
dev-libs/tinyxml
"
DEPEND="${COMMON_DEPEND}
test? ( >=dev-libs/check-0.9.6 )
"
RDEPEND="${COMMON_DEPEND}
sys-apps/util-linux
"
src_configure() {
local myconf=(
--localstatedir="${EPREFIX}"/var
$(use_with test check)
)
econf "${myconf[@]}"
}
src_install() {
default
keepdir /var/lib/rarian
find "${ED}" -name '*.la' -delete || die
}