commit:     b48367143260d18e0f997573f3eb23650dadbca8
Author:     Azamat H. Hackimov <azamat.hackimov <AT> gmail <DOT> com>
AuthorDate: Tue Aug 25 23:20:34 2020 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Sep 16 17:43:41 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b4836714

dev-vcs/tortoisehg: update live version

Update HG_URI_REPO and SRC_URI, fix keywords, misc fixes.
Closes: https://bugs.gentoo.org/737902
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Azamat H. Hackimov <azamat.hackimov <AT> gmail.com>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-vcs/tortoisehg/tortoisehg-9999.ebuild | 29 +++++++++++++++++------------
 1 file changed, 17 insertions(+), 12 deletions(-)

diff --git a/dev-vcs/tortoisehg/tortoisehg-9999.ebuild 
b/dev-vcs/tortoisehg/tortoisehg-9999.ebuild
index 6f020170726..fd6e1dce5cd 100644
--- a/dev-vcs/tortoisehg/tortoisehg-9999.ebuild
+++ b/dev-vcs/tortoisehg/tortoisehg-9999.ebuild
@@ -4,18 +4,18 @@
 EAPI=7
 PYTHON_COMPAT=( python3_{6,7,8} )
 
-inherit desktop distutils-r1
+inherit desktop distutils-r1 xdg-utils
 
 if [[ ${PV} != *9999* ]]; then
-       KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~sparc ~x86"
-       SRC_URI="https://www.bitbucket.org/${PN}/targz/downloads/${P}.tar.gz";
-       HG_DEPEND=" >=dev-vcs/mercurial-5.3.1
-               <dev-vcs/mercurial-5.4"
+       KEYWORDS="~amd64 ~arm64 ~x86"
+       
SRC_URI="https://www.mercurial-scm.org/release/tortoisehg/targz/${P}.tar.gz";
+       HG_DEPEND=">=dev-vcs/mercurial-5.4
+               <dev-vcs/mercurial-5.6"
 else
        inherit mercurial
-       EHG_REPO_URI="https://bitbucket.org/tortoisehg/thg";
+       EHG_REPO_URI="https://foss.heptapod.net/mercurial/tortoisehg/thg";
        EHG_REVISION="stable"
-       HG_DEPEND="dev-vcs/mercurial"
+       HG_DEPEND=">=dev-vcs/mercurial-5.4"
 fi
 
 DESCRIPTION="Set of graphical tools for Mercurial"
@@ -23,17 +23,17 @@ HOMEPAGE="https://tortoisehg.bitbucket.io/";
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="doc"
 
-distutils_enable_sphinx html
-
-RDEPEND="${HG_DEPEND}
+RDEPEND="
+       ${HG_DEPEND}
        dev-python/iniparse[${PYTHON_USEDEP}]
        dev-python/pygments[${PYTHON_USEDEP}]
-       dev-python/PyQt5[network,svg,${PYTHON_USEDEP}]
+       dev-python/PyQt5:=[network,svg,${PYTHON_USEDEP}]
        >=dev-python/qscintilla-python-2.9.4:=[qt5(+),${PYTHON_USEDEP}]"
 DEPEND="${RDEPEND}"
 
+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"
@@ -48,7 +48,12 @@ python_install_all() {
 }
 
 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/PyQt5 please rebuild"
        elog "dev-python/qscintilla-python."
 }
+
+pkg_postrm() {
+       xdg_icon_cache_update
+}

Reply via email to