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-util/ctags/
Date: Mon, 29 Aug 2022 22:24:16
Message-Id: 1661811846.48778eda9e9a68b56c26b391f6d34a49a4c682da.sam@gentoo
1 commit: 48778eda9e9a68b56c26b391f6d34a49a4c682da
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 22:24:00 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 22:24:06 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48778eda
7
8 dev-util/ctags: depend on Python for tests
9
10 Bug: https://bugs.gentoo.org/833276
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 dev-util/ctags/ctags-20220828.0.ebuild | 11 +++++++++--
14 dev-util/ctags/ctags-99999999.ebuild | 11 +++++++++--
15 2 files changed, 18 insertions(+), 4 deletions(-)
16
17 diff --git a/dev-util/ctags/ctags-20220828.0.ebuild b/dev-util/ctags/ctags-20220828.0.ebuild
18 index 253499081b9c..ceadc8424f8a 100644
19 --- a/dev-util/ctags/ctags-20220828.0.ebuild
20 +++ b/dev-util/ctags/ctags-20220828.0.ebuild
21 @@ -3,7 +3,8 @@
22
23 EAPI=8
24
25 -inherit autotools
26 +PYTHON_COMPAT=( python3_{8..11} )
27 +inherit autotools python-any-r1
28
29 DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
30 HOMEPAGE="https://ctags.io/ https://github.com/universal-ctags/ctags"
31 @@ -20,7 +21,8 @@ fi
32
33 LICENSE="GPL-2+"
34 SLOT="0"
35 -IUSE="json pcre xml yaml"
36 +IUSE="json pcre test xml yaml"
37 +RESTRICT="!test? ( test )"
38
39 DEPEND="
40 json? ( dev-libs/jansson:= )
41 @@ -32,9 +34,14 @@ RDEPEND="${DEPEND}"
42 BDEPEND="
43 dev-python/docutils
44 virtual/pkgconfig
45 + test? ( ${PYTHON_DEPS} )
46 "
47 IDEPEND="app-eselect/eselect-ctags"
48
49 +pkg_setup() {
50 + use test && python-any-r1_pkg_setup
51 +}
52 +
53 src_prepare() {
54 # Ignore check-genfile test (calls git which errors out)
55 sed -i 's/man-test check-genfile/man-test/' makefiles/testing.mak || die
56
57 diff --git a/dev-util/ctags/ctags-99999999.ebuild b/dev-util/ctags/ctags-99999999.ebuild
58 index 253499081b9c..ceadc8424f8a 100644
59 --- a/dev-util/ctags/ctags-99999999.ebuild
60 +++ b/dev-util/ctags/ctags-99999999.ebuild
61 @@ -3,7 +3,8 @@
62
63 EAPI=8
64
65 -inherit autotools
66 +PYTHON_COMPAT=( python3_{8..11} )
67 +inherit autotools python-any-r1
68
69 DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
70 HOMEPAGE="https://ctags.io/ https://github.com/universal-ctags/ctags"
71 @@ -20,7 +21,8 @@ fi
72
73 LICENSE="GPL-2+"
74 SLOT="0"
75 -IUSE="json pcre xml yaml"
76 +IUSE="json pcre test xml yaml"
77 +RESTRICT="!test? ( test )"
78
79 DEPEND="
80 json? ( dev-libs/jansson:= )
81 @@ -32,9 +34,14 @@ RDEPEND="${DEPEND}"
82 BDEPEND="
83 dev-python/docutils
84 virtual/pkgconfig
85 + test? ( ${PYTHON_DEPS} )
86 "
87 IDEPEND="app-eselect/eselect-ctags"
88
89 +pkg_setup() {
90 + use test && python-any-r1_pkg_setup
91 +}
92 +
93 src_prepare() {
94 # Ignore check-genfile test (calls git which errors out)
95 sed -i 's/man-test check-genfile/man-test/' makefiles/testing.mak || die