Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/tortoisehg/
Date: Wed, 31 Aug 2022 08:42:22
Message-Id: 1661933994.3b0601b788045780a51c088d7192cc15d08b62bd.juippis@gentoo
1 commit: 3b0601b788045780a51c088d7192cc15d08b62bd
2 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru>
3 AuthorDate: Sat Aug 13 12:21:11 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 08:19:54 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b0601b7
7
8 dev-vcs/tortoisehg: 6.2.1 version bump
9
10 Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru>
11 Closes: https://github.com/gentoo/gentoo/pull/26846
12 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
13
14 dev-vcs/tortoisehg/Manifest | 1 +
15 dev-vcs/tortoisehg/tortoisehg-6.2.1.ebuild | 80 ++++++++++++++++++++++++++++++
16 2 files changed, 81 insertions(+)
17
18 diff --git a/dev-vcs/tortoisehg/Manifest b/dev-vcs/tortoisehg/Manifest
19 index 11fbded3836e..21520f66142a 100644
20 --- a/dev-vcs/tortoisehg/Manifest
21 +++ b/dev-vcs/tortoisehg/Manifest
22 @@ -4,3 +4,4 @@ DIST tortoisehg-5.9.3.tar.gz 8637453 BLAKE2B 9fa90c108f32b1e15c233e7ccbadbda08e4
23 DIST tortoisehg-6.1.tar.gz 8651661 BLAKE2B 0b66c057973eeef443370151884205144d75a7f21f3f3af5521ba43c2e366cc28c52850ddd7eec6e33ba97236fca99e63fdf9c0eb570213f382d726e63837217 SHA512 98b2d1c357f0996f8e2ef9e2440fe005e28672effe8a871a2bf940a973cbba9f49afb234eb28d4d9b3a15bad4bedd61d302e975787e76f9abd52f5958a7a219f
24 DIST tortoisehg-6.1.2.tar.gz 8676222 BLAKE2B 08f8ed7e17ebf9223b91496a5a7ca90f11d1c859d82c5ec7ad714690fe4bb00ac96d89cd7552cba0215b505604688bae875d59e3efe5cde64a26baf331e6301a SHA512 baadb018a0e426a83b7be484834c336099e8969711bc6b6752e98262b88ea5ff3fab7dbb13fe9622e4823f719f008ca0ee599823e65253c7c7741efb0f796558
25 DIST tortoisehg-6.2.tar.gz 8876113 BLAKE2B e6840c6c3e6f0dc19e06313644072c21d28ee59a7f5d7b3b4114b643ef4a013375df8f27ce8ad8e7a2ba49d4086ea46e249fc3bda63b217940bc6e9deea2b0e0 SHA512 1a63d4ed92887c6dc4fef153c6dc8c054c5927c0e3b92b26e6a7782af4438cf4f4c83271c0a037fb107538f781d26a765937197658b8250df3735e39a0194344
26 +DIST tortoisehg-6.2.1.tar.gz 8877912 BLAKE2B c3741c89656e339c37238208c639717e95a8de40ab84e3dbcf151e97e9a51674ca481f7bacbe2cdf90a8b80e15f2cd10a13317b0da691ebb3103f1a460bbdb03 SHA512 282dfc765a57d8d47c81f68e72b22ac56e6d67b7eb2a76cb999880ed225067c590507af95629c621b129bdb6212450cf666aa72da7907584373f3a56fbfd6bcc
27
28 diff --git a/dev-vcs/tortoisehg/tortoisehg-6.2.1.ebuild b/dev-vcs/tortoisehg/tortoisehg-6.2.1.ebuild
29 new file mode 100644
30 index 000000000000..d1fbe12fabfd
31 --- /dev/null
32 +++ b/dev-vcs/tortoisehg/tortoisehg-6.2.1.ebuild
33 @@ -0,0 +1,80 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +PYTHON_COMPAT=( python3_{8..10} )
40 +DISTUTILS_USE_PEP517=setuptools
41 +
42 +inherit desktop distutils-r1 optfeature xdg-utils
43 +
44 +if [[ ${PV} != *9999* ]]; then
45 + KEYWORDS="~amd64 ~arm64 ~x86"
46 + SRC_URI="https://foss.heptapod.net/mercurial/${PN}/thg/-/archive/${PV}/thg-${PV}.tar.gz -> ${P}.tar.gz"
47 + HG_DEPEND=">=dev-vcs/mercurial-5.9[${PYTHON_USEDEP}]
48 + <dev-vcs/mercurial-6.3[${PYTHON_USEDEP}]"
49 + S="${WORKDIR}/thg-${PV}"
50 +else
51 + inherit mercurial
52 + EHG_REPO_URI="https://foss.heptapod.net/mercurial/${PN}/thg"
53 + EHG_REVISION="stable"
54 + HG_DEPEND=">=dev-vcs/mercurial-5.9[${PYTHON_USEDEP}]"
55 +fi
56 +
57 +DESCRIPTION="Set of graphical tools for Mercurial"
58 +HOMEPAGE="https://tortoisehg.bitbucket.io/"
59 +
60 +LICENSE="GPL-2+"
61 +SLOT="0"
62 +IUSE="test"
63 +RESTRICT="!test? ( test )"
64 +
65 +RDEPEND="
66 + ${HG_DEPEND}
67 + dev-python/iniparse[${PYTHON_USEDEP}]
68 + dev-python/pygments[${PYTHON_USEDEP}]
69 + dev-python/PyQt5[network,svg,${PYTHON_USEDEP}]
70 + >=dev-python/qscintilla-python-2.11.6[qt5(+),${PYTHON_USEDEP}]
71 +"
72 +BDEPEND="
73 + ${RDEPEND}
74 + test? (
75 + dev-python/mock[${PYTHON_USEDEP}]
76 + dev-python/pytest[${PYTHON_USEDEP}]
77 + )
78 +"
79 +
80 +distutils_enable_sphinx doc/source
81 +
82 +python_prepare_all() {
83 + # Remove file that collides with >=mercurial-4.0 (bug #599266).
84 + rm "${S}"/hgext3rd/__init__.py || die "can't remove /hgext3rd/__init__.py"
85 +
86 + sed -i -e 's:share/doc/tortoisehg:share/doc/'"${PF}"':' setup.py || die
87 + distutils-r1_python_prepare_all
88 +}
89 +
90 +python_test() {
91 + ${EPYTHON} tests/run-tests.py -m 'not largefiles' --disable-pytest-warnings --doctest-modules tests || die "Tests failed with ${EPYTHON}"
92 + ${EPYTHON} tests/run-tests.py -m largefiles --disable-pytest-warnings tests || die "Tests failed with ${EPYTHON}"
93 +}
94 +
95 +python_install_all() {
96 + distutils-r1_python_install_all
97 + dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc
98 + newicon -s scalable icons/scalable/apps/thg.svg thg_logo.svg
99 + domenu contrib/thg.desktop
100 +}
101 +
102 +pkg_postinst() {
103 + xdg_icon_cache_update
104 + elog "When startup of ${PN} fails with an API version mismatch error"
105 + elog "between dev-python/sip and dev-python/PyQt5 please rebuild"
106 + elog "dev-python/qscintilla-python."
107 +
108 + optfeature "the core git extension support" dev-python/pygit2
109 +}
110 +
111 +pkg_postrm() {
112 + xdg_icon_cache_update
113 +}