commit: 57d418e5b6ec9fb8e84a1be713dc4626e9d97032 Author: Sergey Torokhov <torokhov-s-a <AT> yandex <DOT> ru> AuthorDate: Thu May 1 07:21:02 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed May 21 20:58:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57d418e5
dev-vcs/tortoisehg: 7.0.1 version bump Signed-off-by: Sergey Torokhov <torokhov-s-a <AT> yandex.ru> Part-of: https://github.com/gentoo/gentoo/pull/41874 Closes: https://github.com/gentoo/gentoo/pull/41874 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-vcs/tortoisehg/Manifest | 1 + dev-vcs/tortoisehg/tortoisehg-7.0.1.ebuild | 81 ++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) diff --git a/dev-vcs/tortoisehg/Manifest b/dev-vcs/tortoisehg/Manifest index f4f6985d819c..55b1eb15c855 100644 --- a/dev-vcs/tortoisehg/Manifest +++ b/dev-vcs/tortoisehg/Manifest @@ -1 +1,2 @@ DIST tortoisehg-6.9.tar.gz 8862668 BLAKE2B b7f917a8c9f0ca575e27ab1670bfe940e6257940691c53fca464b4012417283c9915fe5f604b0c1a5cb7f620ce20b47e945bb9e88b301f7ac036c19fcb4508b5 SHA512 f9f7ed9c3a1cdf633c453a12c7f68505027975fbd858c4e9cd4ce09920126f22043c1621a5d949391d31a9a13331cee2466d718635aa16dc8558bac5536d14fb +DIST tortoisehg-7.0.1.tar.gz 8863754 BLAKE2B fa2c750ac88a48d96845f026161a8f72979ea2caa2fcfcc7b25ed82726ffc68e57771ee4b7690f096c173cfbbb881cd9d1173020b2acb943d3a4c6a899b3c51c SHA512 237e14245af58c7f0d0976ea207c4d73c3b7738420ac0b6c2f9a7fb13e4b966ed5be9e3bbf6a4964b5ddbb78118603e151fa75a4d01f026696f641a6dd28dc7b diff --git a/dev-vcs/tortoisehg/tortoisehg-7.0.1.ebuild b/dev-vcs/tortoisehg/tortoisehg-7.0.1.ebuild new file mode 100644 index 000000000000..a4d35c489f73 --- /dev/null +++ b/dev-vcs/tortoisehg/tortoisehg-7.0.1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_USE_PEP517=setuptools +inherit desktop distutils-r1 optfeature xdg-utils + +if [[ ${PV} != *9999* ]]; then + KEYWORDS="~amd64 ~arm64 ~x86" + SRC_URI="https://foss.heptapod.net/mercurial/${PN}/thg/-/archive/${PV}/thg-${PV}.tar.gz -> ${P}.tar.gz" + HG_DEPEND=">=dev-vcs/mercurial-6.7[${PYTHON_USEDEP}] + <dev-vcs/mercurial-7.1[${PYTHON_USEDEP}]" + S="${WORKDIR}/thg-${PV}" +else + inherit mercurial + EHG_REPO_URI="https://foss.heptapod.net/mercurial/${PN}/thg" + EHG_REVISION="stable" + HG_DEPEND=">=dev-vcs/mercurial-6.7[${PYTHON_USEDEP}]" +fi + +DESCRIPTION="Set of graphical tools for Mercurial" +HOMEPAGE="https://tortoisehg.bitbucket.io/" + +LICENSE="GPL-2+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="${HG_DEPEND} + dev-python/iniparse[${PYTHON_USEDEP}] + dev-python/pygments[${PYTHON_USEDEP}] + dev-python/pyqt6[network,svg,${PYTHON_USEDEP}] + >=dev-python/qscintilla-2.14.1-r1[qt6(+),${PYTHON_USEDEP}] +" +DEPEND="${RDEPEND}" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] + ) +" + +distutils_enable_sphinx doc/source + +python_prepare_all() { + # Remove file that collides with >=mercurial-4.0 (bug #599266). + rm "${S}"/hgext3rd/__init__.py || die "can't remove /hgext3rd/__init__.py" + + sed -i -e 's:share/doc/tortoisehg:share/doc/'"${PF}"':' setup.py || die + sed -i -e '/^testedwith/s/6.9/6.9 7.0/' tortoisehg/util/hgversion.py || die + export THG_QT_API=PyQt6 + distutils-r1_python_prepare_all +} + +python_test() { + ${EPYTHON} tests/run-tests.py -m 'not largefiles' --disable-pytest-warnings --doctest-modules tests || die "Tests failed with ${EPYTHON}" + ${EPYTHON} tests/run-tests.py -m largefiles --disable-pytest-warnings tests || die "Tests failed with ${EPYTHON}" +} + +python_install_all() { + export THG_QT_API=PyQt6 + distutils-r1_python_install_all + dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc + newicon -s scalable icons/scalable/apps/thg.svg thg_logo.svg + domenu contrib/thg.desktop +} + +pkg_postinst() { + xdg_icon_cache_update + elog "When startup of ${PN} fails with an API version mismatch error" + elog "between dev-python/sip and dev-python/pyqt6 please rebuild" + elog "dev-python/qscintilla." + + optfeature "the core git extension support" dev-python/pygit2 +} + +pkg_postrm() { + xdg_icon_cache_update +}