diff options
author | Tomáš Mózes <hydrapolic@gmail.com> | 2021-06-15 14:02:11 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-06-15 14:39:31 +0000 |
commit | e346ab4ad034a6c5d5d0e5629ea9cb30682b174c (patch) | |
tree | d3db46efab188a5b1bf4620fd896769200cbf684 /dev-libs/boxfort | |
parent | net-vpn/i2pd: fix logrotate #795123 (diff) | |
download | gentoo-e346ab4ad034a6c5d5d0e5629ea9cb30682b174c.tar.gz gentoo-e346ab4ad034a6c5d5d0e5629ea9cb30682b174c.tar.bz2 gentoo-e346ab4ad034a6c5d5d0e5629ea9cb30682b174c.zip |
dev-libs/boxfort: add python3.10 support
Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/boxfort')
-rw-r--r-- | dev-libs/boxfort/boxfort-0.0.1_pre20200902-r1.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-libs/boxfort/boxfort-0.0.1_pre20200902-r1.ebuild b/dev-libs/boxfort/boxfort-0.0.1_pre20200902-r1.ebuild new file mode 100644 index 000000000000..18bce1975ded --- /dev/null +++ b/dev-libs/boxfort/boxfort-0.0.1_pre20200902-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} ) + +inherit meson python-any-r1 + +BOXFORT_COMMIT="ac0507b3f45fe58100b528baeb8ca04270b4a8ff" + +DESCRIPTION="Convenient & cross-platform sandboxing C library" +HOMEPAGE="https://github.com/Snaipe/BoxFort" +SRC_URI="https://github.com/Snaipe/BoxFort/archive/${BOXFORT_COMMIT}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +DEPEND="test? ( + $(python_gen_any_dep 'dev-util/cram[${PYTHON_USEDEP}]') + )" +BDEPEND="virtual/pkgconfig" + +S="${WORKDIR}/BoxFort-${BOXFORT_COMMIT}" + +python_check_deps() { + use test && has_version "dev-util/cram[${PYTHON_USEDEP}]" +} + +pkg_setup() { + use test && python-any-r1_pkg_setup +} + +src_configure() { + local emesonargs=( + -Dsamples=$(usex test true false) + -Dtests=$(usex test true false) + ) + + meson_src_configure +} |