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:17:16
Message-Id: 1661811416.7990e93e5706a4d46c81d6af5707fd3dee8314d9.sam@gentoo
1 commit: 7990e93e5706a4d46c81d6af5707fd3dee8314d9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 29 22:16:29 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 29 22:16:56 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7990e93e
7
8 dev-util/ctags: add 20220828.0
9
10 Some improvements to Geany bits which might help w/
11 the test failure?
12
13 (Not that I could hit it anyway.)
14
15 Bug: https://bugs.gentoo.org/833276
16 Signed-off-by: Sam James <sam <AT> gentoo.org>
17
18 dev-util/ctags/Manifest | 1 +
19 ...ags-99999999.ebuild => ctags-20220828.0.ebuild} | 26 ++++++++++++----------
20 dev-util/ctags/ctags-99999999.ebuild | 26 ++++++++++++----------
21 3 files changed, 29 insertions(+), 24 deletions(-)
22
23 diff --git a/dev-util/ctags/Manifest b/dev-util/ctags/Manifest
24 index 55fc994461a2..8e9fd7251f04 100644
25 --- a/dev-util/ctags/Manifest
26 +++ b/dev-util/ctags/Manifest
27 @@ -1,2 +1,3 @@
28 DIST ctags-20190331.tar.gz 1537104 BLAKE2B 354ddf48cdc9421e70d9d37ec7251e51f7f78564dc4f6236d12e2e18519369c39c22585830fd301b7eff4898d550b824776541198b8c4a31425711776b14fde4 SHA512 414faef7628ecaa66fcd5f172781a32194e1d58637dded1f7e55c138239ad777796bb1510bd447af3ad8243b7178e6f4859139305b0c0efe298182408f34524c
29 DIST ctags-20211017.0.tar.gz 2542128 BLAKE2B cade7149cb2fd0645f9b7ecd37c8b9acdeae7037fde2bb74aa94d67f04963327429b83dcf5cd658f082bd8ce4c407f69f4924da5f768bec029b4075997bbd882 SHA512 85bfb4d40c1d9045b4ba4dc280ee7108ee2fd4572c92794d5bdc854f3511dad1ecf282428e61161773f7bfaca725d774593a0e83fc767a1bb2e12b229a19bec0
30 +DIST ctags-20220828.0.tar.gz 2952276 BLAKE2B 2ec3a01646cfb89446604af65387bb5cbf17188177505000f5803a9a535f59799961e8144d3ab36b23114fc093cb487589f52e7186b60041ff3bf2a439f77dab SHA512 4c1289dab24edded85c7ae31c06b0cad5b8f08f7f709a0bdacdf5f9d8ccf722c820d6fef6d46298bb06c48256e80f594dbf2456b91d1c50b3509ce4d3fe3ae9c
31
32 diff --git a/dev-util/ctags/ctags-99999999.ebuild b/dev-util/ctags/ctags-20220828.0.ebuild
33 similarity index 70%
34 copy from dev-util/ctags/ctags-99999999.ebuild
35 copy to dev-util/ctags/ctags-20220828.0.ebuild
36 index 3b3948787072..96335dde5149 100644
37 --- a/dev-util/ctags/ctags-99999999.ebuild
38 +++ b/dev-util/ctags/ctags-20220828.0.ebuild
39 @@ -1,4 +1,4 @@
40 -# Copyright 1999-2021 Gentoo Authors
41 +# Copyright 1999-2022 Gentoo Authors
42 # Distributed under the terms of the GNU General Public License v2
43
44 EAPI=8
45 @@ -7,32 +7,33 @@ inherit autotools
46
47 DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
48 HOMEPAGE="https://ctags.io/ https://github.com/universal-ctags/ctags"
49 +
50 if [[ ${PV} == *99999999* ]] ; then
51 - inherit git-r3
52 EGIT_REPO_URI="https://github.com/universal-ctags/ctags"
53 + inherit git-r3
54 else
55 SRC_URI="https://github.com/universal-ctags/ctags/archive/refs/tags/p5.9.${PV}.tar.gz -> ${P}.tar.gz"
56 - S="${WORKDIR}/${PN}-p5.9.${PV}"
57 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
58 + S="${WORKDIR}"/${PN}-p5.9.${PV}
59 +
60 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
61 fi
62
63 LICENSE="GPL-2+"
64 SLOT="0"
65 -IUSE="json xml yaml"
66 +IUSE="json pcre2 xml yaml"
67
68 DEPEND="
69 json? ( dev-libs/jansson:= )
70 + pcre2? ( dev-libs/libpcre2 )
71 xml? ( dev-libs/libxml2:2 )
72 yaml? ( dev-libs/libyaml )
73 "
74 -RDEPEND="
75 - ${DEPEND}
76 - app-eselect/eselect-ctags
77 -"
78 +RDEPEND="${DEPEND}"
79 BDEPEND="
80 dev-python/docutils
81 virtual/pkgconfig
82 "
83 +IDEPEND="app-eselect/eselect-ctags"
84
85 src_prepare() {
86 # Ignore check-genfile test (calls git which errors out)
87 @@ -48,6 +49,7 @@ src_prepare() {
88 src_configure() {
89 econf \
90 $(use_enable json) \
91 + $(use_enable pcre2) \
92 $(use_enable xml) \
93 $(use_enable yaml) \
94 --disable-etags \
95 @@ -57,7 +59,7 @@ src_configure() {
96 src_install() {
97 emake prefix="${ED}"/usr mandir="${ED}"/usr/share/man install
98
99 - # namepace collision with X/Emacs-provided /usr/bin/ctags -- we
100 + # Namepace collision with X/Emacs-provided /usr/bin/ctags -- we
101 # rename ctags to exuberant-ctags (Mandrake does this also).
102 mv "${ED}"/usr/bin/{ctags,exuberant-ctags} || die
103 mv "${ED}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die
104 @@ -66,8 +68,8 @@ src_install() {
105 pkg_postinst() {
106 eselect ctags update
107
108 - if [[ -z "$REPLACING_VERSIONS" ]]; then
109 - elog "You can set the version to be started by /usr/bin/ctags through"
110 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
111 + elog "You can set the version to be started by ${EROOT}/usr/bin/ctags through"
112 elog "the ctags eselect module. \"man ctags.eselect\" for details."
113 fi
114 }
115
116 diff --git a/dev-util/ctags/ctags-99999999.ebuild b/dev-util/ctags/ctags-99999999.ebuild
117 index 3b3948787072..96335dde5149 100644
118 --- a/dev-util/ctags/ctags-99999999.ebuild
119 +++ b/dev-util/ctags/ctags-99999999.ebuild
120 @@ -1,4 +1,4 @@
121 -# Copyright 1999-2021 Gentoo Authors
122 +# Copyright 1999-2022 Gentoo Authors
123 # Distributed under the terms of the GNU General Public License v2
124
125 EAPI=8
126 @@ -7,32 +7,33 @@ inherit autotools
127
128 DESCRIPTION="Exuberant Ctags creates tags files for code browsing in editors"
129 HOMEPAGE="https://ctags.io/ https://github.com/universal-ctags/ctags"
130 +
131 if [[ ${PV} == *99999999* ]] ; then
132 - inherit git-r3
133 EGIT_REPO_URI="https://github.com/universal-ctags/ctags"
134 + inherit git-r3
135 else
136 SRC_URI="https://github.com/universal-ctags/ctags/archive/refs/tags/p5.9.${PV}.tar.gz -> ${P}.tar.gz"
137 - S="${WORKDIR}/${PN}-p5.9.${PV}"
138 - KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
139 + S="${WORKDIR}"/${PN}-p5.9.${PV}
140 +
141 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
142 fi
143
144 LICENSE="GPL-2+"
145 SLOT="0"
146 -IUSE="json xml yaml"
147 +IUSE="json pcre2 xml yaml"
148
149 DEPEND="
150 json? ( dev-libs/jansson:= )
151 + pcre2? ( dev-libs/libpcre2 )
152 xml? ( dev-libs/libxml2:2 )
153 yaml? ( dev-libs/libyaml )
154 "
155 -RDEPEND="
156 - ${DEPEND}
157 - app-eselect/eselect-ctags
158 -"
159 +RDEPEND="${DEPEND}"
160 BDEPEND="
161 dev-python/docutils
162 virtual/pkgconfig
163 "
164 +IDEPEND="app-eselect/eselect-ctags"
165
166 src_prepare() {
167 # Ignore check-genfile test (calls git which errors out)
168 @@ -48,6 +49,7 @@ src_prepare() {
169 src_configure() {
170 econf \
171 $(use_enable json) \
172 + $(use_enable pcre2) \
173 $(use_enable xml) \
174 $(use_enable yaml) \
175 --disable-etags \
176 @@ -57,7 +59,7 @@ src_configure() {
177 src_install() {
178 emake prefix="${ED}"/usr mandir="${ED}"/usr/share/man install
179
180 - # namepace collision with X/Emacs-provided /usr/bin/ctags -- we
181 + # Namepace collision with X/Emacs-provided /usr/bin/ctags -- we
182 # rename ctags to exuberant-ctags (Mandrake does this also).
183 mv "${ED}"/usr/bin/{ctags,exuberant-ctags} || die
184 mv "${ED}"/usr/share/man/man1/{ctags,exuberant-ctags}.1 || die
185 @@ -66,8 +68,8 @@ src_install() {
186 pkg_postinst() {
187 eselect ctags update
188
189 - if [[ -z "$REPLACING_VERSIONS" ]]; then
190 - elog "You can set the version to be started by /usr/bin/ctags through"
191 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
192 + elog "You can set the version to be started by ${EROOT}/usr/bin/ctags through"
193 elog "the ctags eselect module. \"man ctags.eselect\" for details."
194 fi
195 }