Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boxfort/
Date: Wed, 09 Sep 2020 01:03:14
Message-Id: 1599613385.ee737802161977c18f56ba89096c344d3bba5da2.sam@gentoo
1 commit: ee737802161977c18f56ba89096c344d3bba5da2
2 Author: Tomáš Mózes <hydrapolic <AT> gmail <DOT> com>
3 AuthorDate: Wed Sep 2 11:56:21 2020 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 9 01:03:05 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ee737802
7
8 dev-libs/boxfort: add python3.{8,9} support
9
10 Signed-off-by: Tomáš Mózes <hydrapolic <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/17385
12 Signed-off-by: Sam James <sam <AT> gentoo.org>
13
14 dev-libs/boxfort/Manifest | 1 +
15 dev-libs/boxfort/boxfort-0.0.1_pre20200902.ebuild | 44 +++++++++++++++++++++++
16 2 files changed, 45 insertions(+)
17
18 diff --git a/dev-libs/boxfort/Manifest b/dev-libs/boxfort/Manifest
19 index 3bc02199164..a8d3b99e093 100644
20 --- a/dev-libs/boxfort/Manifest
21 +++ b/dev-libs/boxfort/Manifest
22 @@ -1 +1,2 @@
23 +DIST boxfort-0.0.1_pre20200902.tar.gz 41643 BLAKE2B 6ac53b632f604ffd6b790a026703a2d64da65fc03cc71ebc3e4da3463e7c5a44ec99e85e3cdac8e5756afaf7d98785955815e194929bbc8dd6b6fd90bfb3fd52 SHA512 96090372f3e546f53f82c515c3f9e557fdd67eb7bc735683b30d8a66c2536cf21261b0467e449ccbd13e914b7cf4ea3da1a37c4108b215d6d0d08cdb68944b1e
24 DIST boxfort-1456d9a3a3bcb506cdcd1b5d4b852e967deb5e57.tar.gz 41705 BLAKE2B 89644ecf64e5a5df718fa4f873d21e281c777c893af5a8f71c8a1913270ca6c67dc36113e5d219540bb04c7f9e26be22f7e778bd9bdce230df8c0edf3a707612 SHA512 249b0bd0048c53c74d2b50f1b7caf84b0ac0823679bb6adaade095a2ff26586f14f58cee960610d99dbc38c8196cbdb99143815b14d10b7f13a12f96d309e302
25
26 diff --git a/dev-libs/boxfort/boxfort-0.0.1_pre20200902.ebuild b/dev-libs/boxfort/boxfort-0.0.1_pre20200902.ebuild
27 new file mode 100644
28 index 00000000000..970c74b5d5f
29 --- /dev/null
30 +++ b/dev-libs/boxfort/boxfort-0.0.1_pre20200902.ebuild
31 @@ -0,0 +1,44 @@
32 +# Copyright 1999-2020 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python3_{6..9} )
38 +
39 +inherit meson python-any-r1
40 +
41 +BOXFORT_COMMIT="ac0507b3f45fe58100b528baeb8ca04270b4a8ff"
42 +
43 +DESCRIPTION="Convenient & cross-platform sandboxing C library"
44 +HOMEPAGE="https://github.com/Snaipe/BoxFort"
45 +SRC_URI="https://github.com/Snaipe/BoxFort/archive/${BOXFORT_COMMIT}.tar.gz -> ${P}.tar.gz"
46 +
47 +LICENSE="MIT"
48 +SLOT="0"
49 +KEYWORDS="~amd64"
50 +IUSE="test"
51 +RESTRICT="!test? ( test )"
52 +
53 +DEPEND="test? (
54 + $(python_gen_any_dep 'dev-util/cram[${PYTHON_USEDEP}]')
55 + )"
56 +BDEPEND="virtual/pkgconfig"
57 +
58 +S="${WORKDIR}/BoxFort-${BOXFORT_COMMIT}"
59 +
60 +python_check_deps() {
61 + use test && has_version "dev-util/cram[${PYTHON_USEDEP}]"
62 +}
63 +
64 +pkg_setup() {
65 + use test && python-any-r1_pkg_setup
66 +}
67 +
68 +src_configure() {
69 + local emesonargs=(
70 + -Dsamples=$(usex test true false)
71 + -Dtests=$(usex test true false)
72 + )
73 +
74 + meson_src_configure
75 +}