forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-vcs/tortoisehg: 5.7 version bump
Signed-off-by: Sergey Torokhov <[email protected]> Signed-off-by: Joonas Niilola <[email protected]>
- Loading branch information
1 parent
7902297
commit 65228ea
Showing
2 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
# Copyright 1999-2021 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
PYTHON_COMPAT=( python3_{7,8} ) | ||
|
||
DISTUTILS_USE_SETUPTOOLS=no | ||
|
||
inherit desktop distutils-r1 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-vcs/mercurial-5.8[${PYTHON_USEDEP}]" | ||
else | ||
inherit mercurial | ||
EHG_REPO_URI="https://foss.heptapod.net/mercurial/tortoisehg/thg" | ||
EHG_REVISION="stable" | ||
HG_DEPEND=">=dev-vcs/mercurial-5.6[${PYTHON_USEDEP}]" | ||
fi | ||
|
||
DESCRIPTION="Set of graphical tools for Mercurial" | ||
HOMEPAGE="https://tortoisehg.bitbucket.io/" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
|
||
RDEPEND=" | ||
${HG_DEPEND} | ||
dev-python/iniparse[${PYTHON_USEDEP}] | ||
dev-python/pygments[${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" | ||
distutils-r1_python_prepare_all | ||
} | ||
|
||
python_install_all() { | ||
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/PyQt5 please rebuild" | ||
elog "dev-python/qscintilla-python." | ||
} | ||
|
||
pkg_postrm() { | ||
xdg_icon_cache_update | ||
} |