1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python3_{6,7} )
8 inherit meson python-any-r1
10 DESCRIPTION="Library to help create and query binary XML blobs"
11 HOMEPAGE="https://github.com/hughsie/libxmlb"
12 SRC_URI="https://github.com/hughsie/libxmlb/archive/${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="amd64 ~arm ~arm64 x86"
17 IUSE="doc introspection stemmer test"
19 RESTRICT="!test? ( test )"
24 stemmer? ( dev-libs/snowball-stemmer )
29 doc? ( dev-util/gtk-doc )
30 introspection? ( dev-libs/gobject-introspection )
34 >=dev-util/meson-0.47.0
37 $(python_gen_any_dep 'dev-python/setuptools[${PYTHON_USEDEP}]')
43 has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
47 use introspection && python-any-r1_pkg_setup
52 -Dgtkdoc="$(usex doc true false)"
53 -Dintrospection="$(usex introspection true false)"
54 -Dstemmer="$(usex stemmer true false)"
55 -Dtests="$(usex test true false)"