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 BOXFORT_COMMIT="1456d9a3a3bcb506cdcd1b5d4b852e967deb5e57"
12 DESCRIPTION="Convenient & cross-platform sandboxing C library"
13 HOMEPAGE="https://github.com/Snaipe/BoxFort"
14 SRC_URI="https://github.com/Snaipe/BoxFort/archive/${BOXFORT_COMMIT}.tar.gz -> boxfort-${BOXFORT_COMMIT}.tar.gz"
20 RESTRICT="!test? ( test )"
23 $(python_gen_any_dep 'dev-util/cram[${PYTHON_USEDEP}]')
25 BDEPEND="virtual/pkgconfig"
27 S="${WORKDIR}/BoxFort-${BOXFORT_COMMIT}"
30 has_version "dev-util/cram[${PYTHON_USEDEP}]"
34 use test && python-any-r1_pkg_setup
39 -Dsamples=$(usex test true false)
40 -Dtests=$(usex test true false)