mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-08 22:25:42 +02:00
54 lines
1.2 KiB
Bash
54 lines
1.2 KiB
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{10..13} )
|
|
|
|
inherit meson python-any-r1
|
|
|
|
DESCRIPTION="Tools for managing the osinfo database"
|
|
HOMEPAGE="https://libosinfo.org/"
|
|
SRC_URI="https://releases.pagure.org/libosinfo/${P}.tar.xz"
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
KEYWORDS="~alpha amd64 ~arm arm64 ~loong ~ppc ppc64 ~riscv ~sparc x86"
|
|
IUSE="test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
>=dev-libs/glib-2.44:2
|
|
dev-libs/json-glib
|
|
>=app-arch/libarchive-3.0.0:=
|
|
net-libs/libsoup:3.0
|
|
>=dev-libs/libxml2-2.6.0
|
|
"
|
|
# perl dep is for pod2man (manpages)
|
|
DEPEND="${RDEPEND}"
|
|
BDEPEND="
|
|
virtual/pkgconfig
|
|
>=sys-devel/gettext-0.19.8
|
|
dev-lang/perl
|
|
test? (
|
|
$(python_gen_any_dep '
|
|
dev-python/pytest[${PYTHON_USEDEP}]
|
|
dev-python/requests[${PYTHON_USEDEP}]
|
|
')
|
|
)
|
|
"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-1.10.0-no-clobber-fortify-source.patch
|
|
"${FILESDIR}"/${PN}-1.11.0-Make-xmlError-structs-constant.patch
|
|
"${FILESDIR}"/${PN}-1.11.0-osinfo-db-validate-Add-more-libxml-includes.patch
|
|
)
|
|
|
|
python_check_deps() {
|
|
python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" && \
|
|
python_has_version "dev-python/requests[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
pkg_setup() {
|
|
use test && python-any-r1_pkg_setup
|
|
}
|