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.
60 lines
1.2 KiB
60 lines
1.2 KiB
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
|
|
|
inherit meson python-any-r1
|
|
|
|
DESCRIPTION="Library to help create and query binary XML blobs"
|
|
HOMEPAGE="https://github.com/hughsie/libxmlb"
|
|
SRC_URI="https://github.com/hughsie/libxmlb/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
|
LICENSE="LGPL-2.1+"
|
|
SLOT="0/2" # libxmlb.so version
|
|
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
|
|
IUSE="doc introspection stemmer test"
|
|
|
|
RESTRICT="!test? ( test )"
|
|
|
|
RDEPEND="
|
|
app-arch/xz-utils
|
|
dev-libs/glib:2
|
|
sys-apps/util-linux
|
|
stemmer? ( dev-libs/snowball-stemmer:= )
|
|
"
|
|
|
|
DEPEND="
|
|
${RDEPEND}
|
|
doc? ( dev-util/gtk-doc )
|
|
introspection? ( dev-libs/gobject-introspection )
|
|
"
|
|
|
|
BDEPEND="
|
|
${PYTHON_DEPS}
|
|
>=dev-util/meson-0.47.0
|
|
virtual/pkgconfig
|
|
introspection? (
|
|
$(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
|
|
)
|
|
"
|
|
|
|
python_check_deps() {
|
|
has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
|
|
}
|
|
|
|
pkg_setup() {
|
|
python-any-r1_pkg_setup
|
|
}
|
|
|
|
src_configure() {
|
|
local emesonargs=(
|
|
$(meson_use doc gtkdoc)
|
|
$(meson_use introspection)
|
|
$(meson_use stemmer)
|
|
$(meson_use test tests)
|
|
)
|
|
meson_src_configure
|
|
}
|