From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A02B21382C5 for ; Sun, 30 May 2021 09:53:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E2F0CE0817; Sun, 30 May 2021 09:53:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BDECBE0817 for ; Sun, 30 May 2021 09:53:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CC42C340F05 for ; Sun, 30 May 2021 09:53:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 446D379E for ; Sun, 30 May 2021 09:53:05 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1622368375.64ef96bc67f5033124d34df1329775cb09065203.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/tortoisehg/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/tortoisehg/Manifest dev-vcs/tortoisehg/tortoisehg-5.8.ebuild dev-vcs/tortoisehg/tortoisehg-9999.ebuild X-VCS-Directories: dev-vcs/tortoisehg/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 64ef96bc67f5033124d34df1329775cb09065203 X-VCS-Branch: master Date: Sun, 30 May 2021 09:53:05 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d89d93df-d8a5-481f-8051-3aabcce6223f X-Archives-Hash: 9f9338b6360124340e816fe43ae8d70a commit: 64ef96bc67f5033124d34df1329775cb09065203 Author: Sergey Torokhov yandex ru> AuthorDate: Wed May 12 20:35:29 2021 +0000 Commit: Sam James gentoo org> CommitDate: Sun May 30 09:52:55 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64ef96bc dev-vcs/tortoisehg: 5.8 version bump; 9999.ebuild update Since tarball from 'https://www.mercurial-scm.org/release/tortoisehg/targz/' doesn't provide 'tests' directory the SRC_URI is replaced with url for upstream repository 'https://foss.heptapod.net/mercurial/tortoisehg/' like as for 9999.ebuild is curretly used. This allows to add USE="test" both for 5.8 and 9999 ebuilds with conditional DEPEND="dev-python/mock dev-python/pytest" and appropriate calls for tests run in python_test() phase. Additionally the QA issue is fixed: "The ebuild is installing to one or more unexpected paths: /usr/share/doc/tortoisehg Please fix the ebuild to use correct FHS/Gentoo policy paths." for "COPYING.txt" file installation by patching 'setup.py' within python_prepare_all() phase. New runtime dependency 'dev-python/pygit2' for the core git extension support is added via optfeature call. Signed-off-by: Sergey Torokhov yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/20788 Signed-off-by: Sam James gentoo.org> dev-vcs/tortoisehg/Manifest | 1 + ...ortoisehg-9999.ebuild => tortoisehg-5.8.ebuild} | 32 +++++++++++++++++----- dev-vcs/tortoisehg/tortoisehg-9999.ebuild | 32 +++++++++++++++++----- 3 files changed, 51 insertions(+), 14 deletions(-) diff --git a/dev-vcs/tortoisehg/Manifest b/dev-vcs/tortoisehg/Manifest index e9ead221698..2c89d8773a5 100644 --- a/dev-vcs/tortoisehg/Manifest +++ b/dev-vcs/tortoisehg/Manifest @@ -1 +1,2 @@ DIST tortoisehg-5.7.tar.gz 8910721 BLAKE2B ebca9526fc39c94c26f28db6dd70527c528308d9003fca0d9cfb61f984a9a5d80f910d68d0d1449221bbb4e040d2919ed34fec1e0aee4d9f5ed55cbcdb8ba714 SHA512 d143c9e83d3b0771ffd4a3bd9cd50e8bc169e5d29e33a0681c3234898a7566427f070ff3ad8668709b5e4d63be92fd700211dee03e98ff16c7c23fc0870c9e4c +DIST tortoisehg-5.8.tar.gz 8636455 BLAKE2B 1f4171ca4eb465aabacaf53b97785c5f05fc501a11329af008695f706d8d2cb9c5eee5e64bb5a60fdf7234f33ed6a937dfacce49cb36ac9e9b8505be271b4f35 SHA512 b9fe80a98cfafe0dbc90be5fe6f83b466fe596b4ec135d0eacc5618e39c0249a3a352bed640a7cecb99d53eaf60908d60d7748009492cbd8202fc191ef428278 diff --git a/dev-vcs/tortoisehg/tortoisehg-9999.ebuild b/dev-vcs/tortoisehg/tortoisehg-5.8.ebuild similarity index 62% copy from dev-vcs/tortoisehg/tortoisehg-9999.ebuild copy to dev-vcs/tortoisehg/tortoisehg-5.8.ebuild index 439a13c2c81..f54b981fe3d 100644 --- a/dev-vcs/tortoisehg/tortoisehg-9999.ebuild +++ b/dev-vcs/tortoisehg/tortoisehg-5.8.ebuild @@ -6,18 +6,19 @@ PYTHON_COMPAT=( python3_{7..9} ) DISTUTILS_USE_SETUPTOOLS=no -inherit desktop distutils-r1 xdg-utils +inherit desktop distutils-r1 optfeature xdg-utils if [[ ${PV} != *9999* ]]; then KEYWORDS="~amd64 ~arm64 ~x86" - SRC_URI="https://www.mercurial-scm.org/release/tortoisehg/targz/${P}.tar.gz" - HG_DEPEND=">=dev-vcs/mercurial-5.6[${PYTHON_USEDEP}] - =dev-python/qscintilla-python-2.9.4[qt5(+),${PYTHON_USEDEP}] " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/mock + dev-python/pytest + ) +" 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 distutils-r1_python_prepare_all } +python_test() { + ${EPYTHON} tests/run-tests.py -m 'not largefiles' --doctest-modules tests || die + ${EPYTHON} tests/run-tests.py -m largefiles tests || die +} + python_install_all() { distutils-r1_python_install_all dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc @@ -55,6 +71,8 @@ pkg_postinst() { elog "When startup of ${PN} fails with an API version mismatch error" elog "between dev-python/sip and dev-python/PyQt5 please rebuild" elog "dev-python/qscintilla-python." + + optfeature "the core git extension support" dev-python/pygit2 } pkg_postrm() { diff --git a/dev-vcs/tortoisehg/tortoisehg-9999.ebuild b/dev-vcs/tortoisehg/tortoisehg-9999.ebuild index 439a13c2c81..f54b981fe3d 100644 --- a/dev-vcs/tortoisehg/tortoisehg-9999.ebuild +++ b/dev-vcs/tortoisehg/tortoisehg-9999.ebuild @@ -6,18 +6,19 @@ PYTHON_COMPAT=( python3_{7..9} ) DISTUTILS_USE_SETUPTOOLS=no -inherit desktop distutils-r1 xdg-utils +inherit desktop distutils-r1 optfeature xdg-utils if [[ ${PV} != *9999* ]]; then KEYWORDS="~amd64 ~arm64 ~x86" - SRC_URI="https://www.mercurial-scm.org/release/tortoisehg/targz/${P}.tar.gz" - HG_DEPEND=">=dev-vcs/mercurial-5.6[${PYTHON_USEDEP}] - =dev-python/qscintilla-python-2.9.4[qt5(+),${PYTHON_USEDEP}] " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/mock + dev-python/pytest + ) +" 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 distutils-r1_python_prepare_all } +python_test() { + ${EPYTHON} tests/run-tests.py -m 'not largefiles' --doctest-modules tests || die + ${EPYTHON} tests/run-tests.py -m largefiles tests || die +} + python_install_all() { distutils-r1_python_install_all dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc @@ -55,6 +71,8 @@ pkg_postinst() { elog "When startup of ${PN} fails with an API version mismatch error" elog "between dev-python/sip and dev-python/PyQt5 please rebuild" elog "dev-python/qscintilla-python." + + optfeature "the core git extension support" dev-python/pygit2 } pkg_postrm() {