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} )
9 inherit meson python-any-r1 vala xdg-utils
11 DESCRIPTION="Library and tool for reading and writing Jcat files "
12 HOMEPAGE="https://github.com/hughsie/libjcat"
13 SRC_URI="https://github.com/hughsie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
18 IUSE="gpg gtk-doc +introspection +man pkcs7 test"
20 RDEPEND="dev-libs/glib:2
26 introspection? ( dev-libs/gobject-introspection:= )
27 pkcs7? ( net-libs/gnutls )
30 BDEPEND="virtual/pkgconfig
31 $(python_gen_any_dep '
32 dev-python/setuptools[${PYTHON_USEDEP}]
34 gtk-doc? ( dev-util/gtk-doc )
35 man? ( sys-apps/help2man )
36 test? ( net-libs/gnutls[tools] )"
38 RESTRICT="!test? ( test )"
41 "${FILESDIR}"/${PN}-0.1.1-disable_installed_tests.patch
45 has_version -b "dev-python/setuptools[${PYTHON_USEDEP}]"
50 # TODO: make vala optional
57 $(meson_use gtk-doc gtkdoc)
59 $(meson_use introspection)
62 $(meson_use test tests)