Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-libs/libnvme/
Date: Thu, 03 Nov 2022 20:59:57
Message-Id: 1667509188.c7a8cf1d75e09370f5b7c35fffc115d63a3bbbae.chutzpah@gentoo
1 commit: c7a8cf1d75e09370f5b7c35fffc115d63a3bbbae
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 20:59:05 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 20:59:48 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7a8cf1d
7
8 sys-libs/libnvme: Revbump, fix python deps (bug #878935), swig dep
9
10 Closes: https://bugs.gentoo.org/878935
11 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
12
13 .../libnvme/{libnvme-1.2.ebuild => libnvme-1.2-r1.ebuild} | 12 +++++++++---
14 1 file changed, 9 insertions(+), 3 deletions(-)
15
16 diff --git a/sys-libs/libnvme/libnvme-1.2.ebuild b/sys-libs/libnvme/libnvme-1.2-r1.ebuild
17 similarity index 88%
18 rename from sys-libs/libnvme/libnvme-1.2.ebuild
19 rename to sys-libs/libnvme/libnvme-1.2-r1.ebuild
20 index ab243c0836c3..afe0173da916 100644
21 --- a/sys-libs/libnvme/libnvme-1.2.ebuild
22 +++ b/sys-libs/libnvme/libnvme-1.2-r1.ebuild
23 @@ -23,6 +23,10 @@ DEPEND="
24 "
25 RDEPEND="${DEPEND}"
26
27 +BDEPEND="
28 + dev-lang/swig
29 +"
30 +
31 REQUIRED_USE="
32 python? ( ${PYTHON_REQUIRED_USE} )
33 "
34 @@ -44,14 +48,16 @@ python_compile() {
35
36 src_compile() {
37 meson_src_compile
38 - python_copy_sources
39
40 - use python && python_foreach_impl python_compile
41 + if use python; then
42 + python_copy_sources
43 + python_foreach_impl python_compile
44 + fi
45 }
46
47 python_install() {
48 meson_src_install
49 - python_optimize
50 + use python && python_optimize
51 }
52
53 src_install() {