Gentoo Archives: gentoo-commits

From: "Cédric Krier" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/mercurial/
Date: Sat, 25 Apr 2020 08:20:44
Message-Id: 1587802826.2121a61c671da1633d373f877272de582da6a644.cedk@gentoo
1 commit: 2121a61c671da1633d373f877272de582da6a644
2 Author: Cédric Krier <cedk <AT> gentoo <DOT> org>
3 AuthorDate: Sat Apr 25 08:20:26 2020 +0000
4 Commit: Cédric Krier <cedk <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 25 08:20:26 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2121a61c
7
8 dev-vcs/mercurial: Remove old versions
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Cédric Krier <cedk <AT> gentoo.org>
12
13 dev-vcs/mercurial/Manifest | 4 -
14 dev-vcs/mercurial/mercurial-4.9-r2.ebuild | 158 -----------------------------
15 dev-vcs/mercurial/mercurial-4.9.1.ebuild | 158 -----------------------------
16 dev-vcs/mercurial/mercurial-5.0.2.ebuild | 158 -----------------------------
17 dev-vcs/mercurial/mercurial-5.1.2.ebuild | 161 ------------------------------
18 dev-vcs/mercurial/metadata.xml | 1 -
19 6 files changed, 640 deletions(-)
20
21 diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest
22 index 7ed66cb493d..2d997abc912 100644
23 --- a/dev-vcs/mercurial/Manifest
24 +++ b/dev-vcs/mercurial/Manifest
25 @@ -1,6 +1,2 @@
26 -DIST mercurial-4.9.1.tar.gz 7076867 BLAKE2B 8cedc66a8ddffc543a8849bbc98ebfc9ed61055a2ad16506b8c1c9a932d6825ef01a63b31f5bdbdb25e8829badab72857f101d12576fb269572c3d03cb4e7abd SHA512 2265ab501e24a2d229ef29404ca35d318faf620db163ec33225348d53139f7b6cb121e935ce444ec697ced69697f43df57dd7199ad20c1ca6f0275d9744ce391
27 -DIST mercurial-4.9.tar.gz 7075692 BLAKE2B ed11442e0cd5b27f47394ed1c15016930556d5cdc59ab18f1e0d5371e434eb752b68d3d9f6dd34ed9c63df62a646223e86c6c5178775d9b856eed5df65677900 SHA512 59a5467cebb51f17cce7bcada37f8d85906493ab2e3d443ceeae2c6598fb69d2d59f1e99c73bd08345c5f90501a7bae0d70e04c770ea7653ec30648e591c97fb
28 -DIST mercurial-5.0.2.tar.gz 7202797 BLAKE2B 7059efa2cf80c433ec25748c7c49ae0caa688363f5ef2983e0adf39a0a691ea99aaf4a090ebeda11b89e74263c548289cca3f82f40d77efbf925e12231b341cc SHA512 8b328e2e5a2896b690492d75c055bb13cd76df6efb087ef770f60ead86e30f7d952cb3ca82a696c0c5ce7039c319bd0fc9b448a52c079653622760317d5bb315
29 -DIST mercurial-5.1.2.tar.gz 7286238 BLAKE2B 0dcb2556e568e222da628bcfeceba56df8ab04f123f79add1953ce13bbf51e5cb0733fa72d5cff00250aaf0e3bfae5c52cc5cd72c1b6aa1fccb6820fce5a7018 SHA512 a8ce9d9220a5ddf452264801f06e81fe1e699ff700d085e3f82c6877910c6ef0e594203590f198b7b9e31c9a1ed627c8fa2a3a1513d0c5087cf775835a78c408
30 DIST mercurial-5.2.2.tar.gz 7333065 BLAKE2B 9cec5a6ebe4693a1b96fe268211aa2eaa06643d5b8812c427757839d5389319f0e2ff3c1ed964a56bf8a3c46f7630321abf508c61691102856dfbdbd72fed662 SHA512 875e75587ab1f1c54edd2f7198dff21e6b287425f215a9d28ef98d5359420df90ca7ef0128ec7b772c4a31dc95b1082b4d6d28f1754968a08408516ba9ec91ee
31 DIST mercurial-5.3.2.tar.gz 7514256 BLAKE2B 250ecd5c0a64138cbcda599513efba7b040c0fed0f020c73ade2525e0ef8a9ad06c10c5df4e16eb9bbeb3ab0f2cbb622a65f6d4827b269654c662810ef0385fb SHA512 b0afcf82b51676d2e7592eb9b29f9611d59816399166400027b6c8b29c10c9ddc96b57f7913e78f938b1345bb7ac29ecd4ddc793165b7cf192c3c7a95712cc99
32
33 diff --git a/dev-vcs/mercurial/mercurial-4.9-r2.ebuild b/dev-vcs/mercurial/mercurial-4.9-r2.ebuild
34 deleted file mode 100644
35 index 3a5eb72d0e0..00000000000
36 --- a/dev-vcs/mercurial/mercurial-4.9-r2.ebuild
37 +++ /dev/null
38 @@ -1,158 +0,0 @@
39 -# Copyright 1999-2020 Gentoo Authors
40 -# Distributed under the terms of the GNU General Public License v2
41 -
42 -EAPI=7
43 -
44 -PYTHON_COMPAT=( python2_7 )
45 -PYTHON_REQ_USE="threads"
46 -
47 -inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
48 -
49 -DESCRIPTION="Scalable distributed SCM"
50 -HOMEPAGE="https://www.mercurial-scm.org/"
51 -SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
52 -
53 -LICENSE="GPL-2+"
54 -SLOT="0"
55 -KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
56 -IUSE="+chg bugzilla emacs gpg test tk"
57 -
58 -RDEPEND="app-misc/ca-certificates
59 - dev-python/zstandard[${PYTHON_USEDEP}]
60 - bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
61 - gpg? ( app-crypt/gnupg )
62 - tk? ( dev-lang/tk )"
63 -
64 -DEPEND="emacs? ( >=app-editors/emacs-23.1:* )
65 - test? ( app-arch/unzip
66 - dev-python/pygments[${PYTHON_USEDEP}] )"
67 -
68 -SITEFILE="70${PN}-gentoo.el"
69 -
70 -# Too many tests fail #608720
71 -RESTRICT="test"
72 -
73 -PATCHES=(
74 - "${FILESDIR}/${PN}-3.0.1-po_fixes.patch"
75 - "${FILESDIR}/${PN}-4.8.1-unbundle_zstd.patch"
76 -)
77 -
78 -python_prepare_all() {
79 - # fix up logic that won't work in Gentoo Prefix (also won't outside in
80 - # certain cases), bug #362891
81 - sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
82 -
83 - # Don't use bundled zstandard (#666972)
84 - rm -r contrib/python-zstandard || die
85 -
86 - distutils-r1_python_prepare_all
87 -}
88 -
89 -python_configure_all() {
90 - filter-flags -ftracer -ftree-vectorize
91 - # Note: make it impl-conditional if py3 is supported
92 - append-flags -fno-strict-aliasing
93 -
94 - "${PYTHON}" setup.py build_mo || die
95 -}
96 -
97 -python_compile_all() {
98 - rm -r contrib/win32 || die
99 - if use chg; then
100 - emake -C contrib/chg
101 - fi
102 - if use emacs; then
103 - cd contrib || die
104 - elisp-compile mercurial.el || die "elisp-compile failed!"
105 - fi
106 -}
107 -
108 -python_install_all() {
109 - distutils-r1_python_install_all
110 -
111 - newbashcomp contrib/bash_completion hg
112 -
113 - insinto /usr/share/zsh/site-functions
114 - newins contrib/zsh_completion _hg
115 -
116 - rm -f doc/*.?.txt
117 - dodoc CONTRIBUTORS
118 - cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
119 -
120 - dobin hgeditor
121 - dobin contrib/hgk
122 - python_foreach_impl python_doscript contrib/hg-ssh
123 -
124 - if use emacs; then
125 - elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
126 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
127 - fi
128 -
129 - local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion wix plan9 *.el )
130 -
131 - if use chg; then
132 - dobin contrib/chg/chg
133 - doman contrib/chg/chg.1
134 - RM_CONTRIB+=( chg )
135 - fi
136 -
137 - for f in ${RM_CONTRIB[@]}; do
138 - rm -r contrib/${f} || die
139 - done
140 -
141 - dodoc -r contrib
142 - docompress -x /usr/share/doc/${PF}/contrib
143 - doman doc/*.?
144 -
145 - insinto /etc/mercurial/hgrc.d
146 - doins "${FILESDIR}/cacerts.rc"
147 -
148 - # symlink to system zstd
149 - local sitedir=$(python_get_sitedir)
150 - dosym ../zstd.so "${sitedir#${EPREFIX}}"/${PN}/zstd.so
151 -}
152 -
153 -src_test() {
154 - pushd tests &>/dev/null || die
155 - rm -rf *svn* # Subversion tests fail with 1.5
156 - rm -f test-archive* # Fails due to verbose tar output changes
157 - rm -f test-convert-baz* # GNU Arch baz
158 - rm -f test-convert-cvs* # CVS
159 - rm -f test-convert-darcs* # Darcs
160 - rm -f test-convert-git* # git
161 - rm -f test-convert-mtn* # monotone
162 - rm -f test-convert-tla* # GNU Arch tla
163 - #rm -f test-doctest* # doctest always fails with python 2.5.x
164 - rm -f test-largefiles* # tends to time out
165 -
166 - popd &>/dev/null || die
167 - distutils-r1_src_test
168 -}
169 -
170 -python_test() {
171 - local TEST_DIR
172 -
173 - rm -rf "${TMPDIR}"/test
174 - distutils_install_for_testing
175 - cd tests || die
176 - "${PYTHON}" run-tests.py --verbose \
177 - --tmpdir="${TMPDIR}"/test \
178 - --with-hg="${TEST_DIR}"/scripts/hg \
179 - || die "Tests fail with ${EPYTHON}"
180 -}
181 -
182 -pkg_postinst() {
183 - use emacs && elisp-site-regen
184 -
185 - elog "If you want to convert repositories from other tools using convert"
186 - elog "extension please install correct tool:"
187 - elog " dev-vcs/cvs"
188 - elog " dev-vcs/darcs"
189 - elog " dev-vcs/git"
190 - elog " dev-vcs/monotone"
191 - elog " dev-vcs/subversion"
192 -}
193 -
194 -pkg_postrm() {
195 - use emacs && elisp-site-regen
196 -}
197
198 diff --git a/dev-vcs/mercurial/mercurial-4.9.1.ebuild b/dev-vcs/mercurial/mercurial-4.9.1.ebuild
199 deleted file mode 100644
200 index 435caf12f6e..00000000000
201 --- a/dev-vcs/mercurial/mercurial-4.9.1.ebuild
202 +++ /dev/null
203 @@ -1,158 +0,0 @@
204 -# Copyright 1999-2020 Gentoo Authors
205 -# Distributed under the terms of the GNU General Public License v2
206 -
207 -EAPI=7
208 -
209 -PYTHON_COMPAT=( python2_7 )
210 -PYTHON_REQ_USE="threads"
211 -
212 -inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
213 -
214 -DESCRIPTION="Scalable distributed SCM"
215 -HOMEPAGE="https://www.mercurial-scm.org/"
216 -SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
217 -
218 -LICENSE="GPL-2+"
219 -SLOT="0"
220 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
221 -IUSE="+chg bugzilla emacs gpg test tk"
222 -
223 -RDEPEND="app-misc/ca-certificates
224 - dev-python/zstandard[${PYTHON_USEDEP}]
225 - bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
226 - gpg? ( app-crypt/gnupg )
227 - tk? ( dev-lang/tk )"
228 -
229 -DEPEND="emacs? ( >=app-editors/emacs-23.1:* )
230 - test? ( app-arch/unzip
231 - dev-python/pygments[${PYTHON_USEDEP}] )"
232 -
233 -SITEFILE="70${PN}-gentoo.el"
234 -
235 -# Too many tests fail #608720
236 -RESTRICT="test"
237 -
238 -PATCHES=(
239 - "${FILESDIR}/${PN}-3.0.1-po_fixes.patch"
240 - "${FILESDIR}/${PN}-4.8.1-unbundle_zstd.patch"
241 -)
242 -
243 -python_prepare_all() {
244 - # fix up logic that won't work in Gentoo Prefix (also won't outside in
245 - # certain cases), bug #362891
246 - sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
247 -
248 - # Don't use bundled zstandard (#666972)
249 - rm -r contrib/python-zstandard || die
250 -
251 - distutils-r1_python_prepare_all
252 -}
253 -
254 -python_configure_all() {
255 - filter-flags -ftracer -ftree-vectorize
256 - # Note: make it impl-conditional if py3 is supported
257 - append-flags -fno-strict-aliasing
258 -
259 - "${PYTHON}" setup.py build_mo || die
260 -}
261 -
262 -python_compile_all() {
263 - rm -r contrib/win32 || die
264 - if use chg; then
265 - emake -C contrib/chg
266 - fi
267 - if use emacs; then
268 - cd contrib || die
269 - elisp-compile mercurial.el || die "elisp-compile failed!"
270 - fi
271 -}
272 -
273 -python_install_all() {
274 - distutils-r1_python_install_all
275 -
276 - newbashcomp contrib/bash_completion hg
277 -
278 - insinto /usr/share/zsh/site-functions
279 - newins contrib/zsh_completion _hg
280 -
281 - rm -f doc/*.?.txt
282 - dodoc CONTRIBUTORS
283 - cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
284 -
285 - dobin hgeditor
286 - dobin contrib/hgk
287 - python_foreach_impl python_doscript contrib/hg-ssh
288 -
289 - if use emacs; then
290 - elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
291 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
292 - fi
293 -
294 - local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion wix plan9 *.el )
295 -
296 - if use chg; then
297 - dobin contrib/chg/chg
298 - doman contrib/chg/chg.1
299 - RM_CONTRIB+=( chg )
300 - fi
301 -
302 - for f in ${RM_CONTRIB[@]}; do
303 - rm -r contrib/${f} || die
304 - done
305 -
306 - dodoc -r contrib
307 - docompress -x /usr/share/doc/${PF}/contrib
308 - doman doc/*.?
309 -
310 - insinto /etc/mercurial/hgrc.d
311 - doins "${FILESDIR}/cacerts.rc"
312 -
313 - # symlink to system zstd
314 - local sitedir=$(python_get_sitedir)
315 - dosym ../zstd.so "${sitedir#${EPREFIX}}"/${PN}/zstd.so
316 -}
317 -
318 -src_test() {
319 - pushd tests &>/dev/null || die
320 - rm -rf *svn* # Subversion tests fail with 1.5
321 - rm -f test-archive* # Fails due to verbose tar output changes
322 - rm -f test-convert-baz* # GNU Arch baz
323 - rm -f test-convert-cvs* # CVS
324 - rm -f test-convert-darcs* # Darcs
325 - rm -f test-convert-git* # git
326 - rm -f test-convert-mtn* # monotone
327 - rm -f test-convert-tla* # GNU Arch tla
328 - #rm -f test-doctest* # doctest always fails with python 2.5.x
329 - rm -f test-largefiles* # tends to time out
330 -
331 - popd &>/dev/null || die
332 - distutils-r1_src_test
333 -}
334 -
335 -python_test() {
336 - local TEST_DIR
337 -
338 - rm -rf "${TMPDIR}"/test
339 - distutils_install_for_testing
340 - cd tests || die
341 - "${PYTHON}" run-tests.py --verbose \
342 - --tmpdir="${TMPDIR}"/test \
343 - --with-hg="${TEST_DIR}"/scripts/hg \
344 - || die "Tests fail with ${EPYTHON}"
345 -}
346 -
347 -pkg_postinst() {
348 - use emacs && elisp-site-regen
349 -
350 - elog "If you want to convert repositories from other tools using convert"
351 - elog "extension please install correct tool:"
352 - elog " dev-vcs/cvs"
353 - elog " dev-vcs/darcs"
354 - elog " dev-vcs/git"
355 - elog " dev-vcs/monotone"
356 - elog " dev-vcs/subversion"
357 -}
358 -
359 -pkg_postrm() {
360 - use emacs && elisp-site-regen
361 -}
362
363 diff --git a/dev-vcs/mercurial/mercurial-5.0.2.ebuild b/dev-vcs/mercurial/mercurial-5.0.2.ebuild
364 deleted file mode 100644
365 index 117dc6be168..00000000000
366 --- a/dev-vcs/mercurial/mercurial-5.0.2.ebuild
367 +++ /dev/null
368 @@ -1,158 +0,0 @@
369 -# Copyright 1999-2020 Gentoo Authors
370 -# Distributed under the terms of the GNU General Public License v2
371 -
372 -EAPI=7
373 -
374 -PYTHON_COMPAT=( python2_7 )
375 -PYTHON_REQ_USE="threads"
376 -
377 -inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
378 -
379 -DESCRIPTION="Scalable distributed SCM"
380 -HOMEPAGE="https://www.mercurial-scm.org/"
381 -SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
382 -
383 -LICENSE="GPL-2+"
384 -SLOT="0"
385 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
386 -IUSE="+chg bugzilla emacs gpg test tk"
387 -
388 -RDEPEND="app-misc/ca-certificates
389 - dev-python/zstandard[${PYTHON_USEDEP}]
390 - bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
391 - gpg? ( app-crypt/gnupg )
392 - tk? ( dev-lang/tk )"
393 -
394 -DEPEND="emacs? ( >=app-editors/emacs-23.1:* )
395 - test? ( app-arch/unzip
396 - dev-python/pygments[${PYTHON_USEDEP}] )"
397 -
398 -SITEFILE="70${PN}-gentoo.el"
399 -
400 -# Too many tests fail #608720
401 -RESTRICT="test"
402 -
403 -PATCHES=(
404 - "${FILESDIR}/${PN}-3.0.1-po_fixes.patch"
405 - "${FILESDIR}/${PN}-4.8.1-unbundle_zstd.patch"
406 -)
407 -
408 -python_prepare_all() {
409 - # fix up logic that won't work in Gentoo Prefix (also won't outside in
410 - # certain cases), bug #362891
411 - sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
412 -
413 - # Don't use bundled zstandard (#666972)
414 - rm -r contrib/python-zstandard || die
415 -
416 - distutils-r1_python_prepare_all
417 -}
418 -
419 -python_configure_all() {
420 - filter-flags -ftracer -ftree-vectorize
421 - # Note: make it impl-conditional if py3 is supported
422 - append-flags -fno-strict-aliasing
423 -
424 - "${PYTHON}" setup.py build_mo || die
425 -}
426 -
427 -python_compile_all() {
428 - rm -r contrib/win32 || die
429 - if use chg; then
430 - emake -C contrib/chg
431 - fi
432 - if use emacs; then
433 - cd contrib || die
434 - elisp-compile mercurial.el || die "elisp-compile failed!"
435 - fi
436 -}
437 -
438 -python_install_all() {
439 - distutils-r1_python_install_all
440 -
441 - newbashcomp contrib/bash_completion hg
442 -
443 - insinto /usr/share/zsh/site-functions
444 - newins contrib/zsh_completion _hg
445 -
446 - rm -f doc/*.?.txt
447 - dodoc CONTRIBUTORS
448 - cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
449 -
450 - dobin hgeditor
451 - dobin contrib/hgk
452 - python_foreach_impl python_doscript contrib/hg-ssh
453 -
454 - if use emacs; then
455 - elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
456 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
457 - fi
458 -
459 - local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion plan9 *.el )
460 -
461 - if use chg; then
462 - dobin contrib/chg/chg
463 - doman contrib/chg/chg.1
464 - RM_CONTRIB+=( chg )
465 - fi
466 -
467 - for f in ${RM_CONTRIB[@]}; do
468 - rm -r contrib/${f} || die
469 - done
470 -
471 - dodoc -r contrib
472 - docompress -x /usr/share/doc/${PF}/contrib
473 - doman doc/*.?
474 -
475 - insinto /etc/mercurial/hgrc.d
476 - doins "${FILESDIR}/cacerts.rc"
477 -
478 - # symlink to system zstd
479 - local sitedir=$(python_get_sitedir)
480 - dosym ../zstd.so "${sitedir#${EPREFIX}}"/${PN}/zstd.so
481 -}
482 -
483 -src_test() {
484 - pushd tests &>/dev/null || die
485 - rm -rf *svn* # Subversion tests fail with 1.5
486 - rm -f test-archive* # Fails due to verbose tar output changes
487 - rm -f test-convert-baz* # GNU Arch baz
488 - rm -f test-convert-cvs* # CVS
489 - rm -f test-convert-darcs* # Darcs
490 - rm -f test-convert-git* # git
491 - rm -f test-convert-mtn* # monotone
492 - rm -f test-convert-tla* # GNU Arch tla
493 - #rm -f test-doctest* # doctest always fails with python 2.5.x
494 - rm -f test-largefiles* # tends to time out
495 -
496 - popd &>/dev/null || die
497 - distutils-r1_src_test
498 -}
499 -
500 -python_test() {
501 - local TEST_DIR
502 -
503 - rm -rf "${TMPDIR}"/test
504 - distutils_install_for_testing
505 - cd tests || die
506 - "${PYTHON}" run-tests.py --verbose \
507 - --tmpdir="${TMPDIR}"/test \
508 - --with-hg="${TEST_DIR}"/scripts/hg \
509 - || die "Tests fail with ${EPYTHON}"
510 -}
511 -
512 -pkg_postinst() {
513 - use emacs && elisp-site-regen
514 -
515 - elog "If you want to convert repositories from other tools using convert"
516 - elog "extension please install correct tool:"
517 - elog " dev-vcs/cvs"
518 - elog " dev-vcs/darcs"
519 - elog " dev-vcs/git"
520 - elog " dev-vcs/monotone"
521 - elog " dev-vcs/subversion"
522 -}
523 -
524 -pkg_postrm() {
525 - use emacs && elisp-site-regen
526 -}
527
528 diff --git a/dev-vcs/mercurial/mercurial-5.1.2.ebuild b/dev-vcs/mercurial/mercurial-5.1.2.ebuild
529 deleted file mode 100644
530 index 88464e06396..00000000000
531 --- a/dev-vcs/mercurial/mercurial-5.1.2.ebuild
532 +++ /dev/null
533 @@ -1,161 +0,0 @@
534 -# Copyright 1999-2020 Gentoo Authors
535 -# Distributed under the terms of the GNU General Public License v2
536 -
537 -EAPI=7
538 -
539 -PYTHON_COMPAT=( python2_7 )
540 -PYTHON_REQ_USE="threads"
541 -
542 -inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
543 -
544 -DESCRIPTION="Scalable distributed SCM"
545 -HOMEPAGE="https://www.mercurial-scm.org/"
546 -SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
547 -
548 -LICENSE="GPL-2+"
549 -SLOT="0"
550 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
551 -IUSE="+chg bugzilla emacs gpg test tk"
552 -
553 -RDEPEND="app-misc/ca-certificates
554 - dev-python/zstandard[${PYTHON_USEDEP}]
555 - bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
556 - gpg? ( app-crypt/gnupg )
557 - tk? ( dev-lang/tk )"
558 -
559 -DEPEND="emacs? ( >=app-editors/emacs-23.1:* )
560 - test? ( app-arch/unzip
561 - dev-python/pygments[${PYTHON_USEDEP}] )"
562 -
563 -SITEFILE="70${PN}-gentoo.el"
564 -
565 -# Too many tests fail #608720
566 -RESTRICT="test"
567 -
568 -PATCHES=(
569 - "${FILESDIR}/${PN}-3.0.1-po_fixes.patch"
570 - "${FILESDIR}/${PN}-4.8.1-unbundle_zstd.patch"
571 -)
572 -
573 -python_prepare_all() {
574 - # fix up logic that won't work in Gentoo Prefix (also won't outside in
575 - # certain cases), bug #362891
576 - sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
577 -
578 - # Don't use bundled zstandard (#666972)
579 - rm -r contrib/python-zstandard || die
580 -
581 - distutils-r1_python_prepare_all
582 -}
583 -
584 -python_configure_all() {
585 - filter-flags -ftracer -ftree-vectorize
586 - # Note: make it impl-conditional if py3 is supported
587 - append-flags -fno-strict-aliasing
588 -
589 - "${PYTHON}" setup.py build_mo || die
590 -}
591 -
592 -python_compile_all() {
593 - rm -r contrib/win32 || die
594 - if use chg; then
595 - emake -C contrib/chg
596 - fi
597 - if use emacs; then
598 - cd contrib || die
599 - elisp-compile mercurial.el || die "elisp-compile failed!"
600 - fi
601 -}
602 -
603 -python_install_all() {
604 - distutils-r1_python_install_all
605 -
606 - newbashcomp contrib/bash_completion hg
607 -
608 - insinto /usr/share/zsh/site-functions
609 - newins contrib/zsh_completion _hg
610 -
611 - rm -f doc/*.?.txt
612 - dodoc CONTRIBUTORS
613 - cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
614 -
615 - dobin hgeditor
616 - dobin contrib/hgk
617 - python_foreach_impl python_doscript contrib/hg-ssh
618 -
619 - if use emacs; then
620 - elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
621 - elisp-site-file-install "${FILESDIR}"/${SITEFILE}
622 - fi
623 -
624 - local RM_CONTRIB=( hgk hg-ssh bash_completion zsh_completion plan9 *.el )
625 -
626 - if use chg; then
627 - dobin contrib/chg/chg
628 - doman contrib/chg/chg.1
629 - RM_CONTRIB+=( chg )
630 - fi
631 -
632 - for f in ${RM_CONTRIB[@]}; do
633 - rm -r contrib/${f} || die
634 - done
635 -
636 - dodoc -r contrib
637 - docompress -x /usr/share/doc/${PF}/contrib
638 - doman doc/*.?
639 -
640 - insinto /etc/mercurial/hgrc.d
641 - doins "${FILESDIR}/cacerts.rc"
642 -
643 - # symlink to system zstd
644 - local sitedir=$(python_get_sitedir)
645 - dosym ../zstd.so "${sitedir#${EPREFIX}}"/${PN}/zstd.so
646 -}
647 -
648 -src_test() {
649 - pushd tests &>/dev/null || die
650 - rm -rf *svn* # Subversion tests fail with 1.5
651 - rm -f test-archive* # Fails due to verbose tar output changes
652 - rm -f test-convert-baz* # GNU Arch baz
653 - rm -f test-convert-cvs* # CVS
654 - rm -f test-convert-darcs* # Darcs
655 - rm -f test-convert-git* # git
656 - rm -f test-convert-mtn* # monotone
657 - rm -f test-convert-tla* # GNU Arch tla
658 - #rm -f test-doctest* # doctest always fails with python 2.5.x
659 - rm -f test-largefiles* # tends to time out
660 -
661 - popd &>/dev/null || die
662 - distutils-r1_src_test
663 -}
664 -
665 -python_test() {
666 - local TEST_DIR
667 -
668 - rm -rf "${TMPDIR}"/test
669 - distutils_install_for_testing
670 - cd tests || die
671 - "${PYTHON}" run-tests.py --verbose \
672 - --tmpdir="${TMPDIR}"/test \
673 - --with-hg="${TEST_DIR}"/scripts/hg \
674 - || die "Tests fail with ${EPYTHON}"
675 -}
676 -
677 -pkg_postinst() {
678 - use emacs && elisp-site-regen
679 -
680 - elog "If you want to convert repositories from other tools using convert"
681 - elog "extension please install correct tool:"
682 - elog " dev-vcs/cvs"
683 - elog " dev-vcs/darcs"
684 - elog " dev-vcs/git"
685 - elog " dev-vcs/monotone"
686 - elog " dev-vcs/subversion"
687 -
688 - elog "If you want to use bugzilla extension"
689 - elog "please install dev-python/mysqlclient"
690 -}
691 -
692 -pkg_postrm() {
693 - use emacs && elisp-site-regen
694 -}
695
696 diff --git a/dev-vcs/mercurial/metadata.xml b/dev-vcs/mercurial/metadata.xml
697 index d868ce0a958..0409b47761c 100644
698 --- a/dev-vcs/mercurial/metadata.xml
699 +++ b/dev-vcs/mercurial/metadata.xml
700 @@ -6,7 +6,6 @@
701 </maintainer>
702 <use>
703 <flag name="chg">Support Mercurial command server client</flag>
704 - <flag name="bugzilla">Support bugzilla integration.</flag>
705 <flag name="gpg">Support signing with GnuPG.</flag>
706 <flag name="tk">Install dev-lang/tk for hgk script.</flag>
707 </use>