Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/boxfort/
Date: Mon, 21 Feb 2022 19:06:13
Message-Id: 1645470356.b44bf61e5a5cc6fa213abb54799d184aee08faf6.matthew@gentoo
1 commit: b44bf61e5a5cc6fa213abb54799d184aee08faf6
2 Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 21 19:05:07 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 21 19:05:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b44bf61e
7
8 dev-libs/boxfort: use 'meson_use' helper
9
10 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
11
12 dev-libs/boxfort/boxfort-0.1.3.ebuild | 7 +++----
13 1 file changed, 3 insertions(+), 4 deletions(-)
14
15 diff --git a/dev-libs/boxfort/boxfort-0.1.3.ebuild b/dev-libs/boxfort/boxfort-0.1.3.ebuild
16 index 67faa22bc260..c1d27a92948b 100644
17 --- a/dev-libs/boxfort/boxfort-0.1.3.ebuild
18 +++ b/dev-libs/boxfort/boxfort-0.1.3.ebuild
19 @@ -10,6 +10,7 @@ inherit meson python-any-r1
20 DESCRIPTION="Convenient & cross-platform sandboxing C library"
21 HOMEPAGE="https://github.com/Snaipe/BoxFort"
22 SRC_URI="https://github.com/Snaipe/BoxFort/archive/v${PV}.tar.gz -> ${P}.tar.gz"
23 +S="${WORKDIR}"/BoxFort-${PV}
24
25 LICENSE="MIT"
26 SLOT="0"
27 @@ -22,8 +23,6 @@ DEPEND="test? (
28 )"
29 BDEPEND="virtual/pkgconfig"
30
31 -S="${WORKDIR}/BoxFort-${PV}"
32 -
33 python_check_deps() {
34 use test && has_version "dev-util/cram[${PYTHON_USEDEP}]"
35 }
36 @@ -34,8 +33,8 @@ pkg_setup() {
37
38 src_configure() {
39 local emesonargs=(
40 - -Dsamples=$(usex test true false)
41 - -Dtests=$(usex test true false)
42 + $(meson_use test samples)
43 + $(meson_use test tests)
44 )
45
46 meson_src_configure