Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/tortoisehg/
Date: Sat, 09 Dec 2017 23:52:41
Message-Id: 1512863519.b87dec3c2c5646b2690bb5c82f4f5736f29c5d01.asturm@gentoo
1 commit: b87dec3c2c5646b2690bb5c82f4f5736f29c5d01
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 9 23:33:44 2017 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 9 23:51:59 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b87dec3c
7
8 dev-vcs/tortoisehg: Switch to Qt5
9
10 Bug: https://bugs.gentoo.org/634976
11 Package-Manager: Portage-2.3.17, Repoman-2.3.6
12
13 dev-vcs/tortoisehg/tortoisehg-4.4.1-r1.ebuild | 79 +++++++++++++++++++++++++++
14 1 file changed, 79 insertions(+)
15
16 diff --git a/dev-vcs/tortoisehg/tortoisehg-4.4.1-r1.ebuild b/dev-vcs/tortoisehg/tortoisehg-4.4.1-r1.ebuild
17 new file mode 100644
18 index 00000000000..10ea4192888
19 --- /dev/null
20 +++ b/dev-vcs/tortoisehg/tortoisehg-4.4.1-r1.ebuild
21 @@ -0,0 +1,79 @@
22 +# Copyright 1999-2017 Gentoo Foundation
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=6
26 +PYTHON_COMPAT=( python2_7 )
27 +
28 +inherit distutils-r1 eutils
29 +
30 +if [[ ${PV} != *9999* ]]; then
31 + KEYWORDS="~amd64 ~x86"
32 + SRC_URI="https://www.bitbucket.org/${PN}/targz/downloads/${P}.tar.gz"
33 + HG_DEPEND=">=dev-vcs/mercurial-4.3 <dev-vcs/mercurial-4.5"
34 +else
35 + inherit mercurial
36 + EHG_REPO_URI="https://bitbucket.org/tortoisehg/thg"
37 + EHG_REVISION="stable"
38 + HG_DEPEND="dev-vcs/mercurial"
39 +fi
40 +
41 +DESCRIPTION="Set of graphical tools for Mercurial"
42 +HOMEPAGE="https://tortoisehg.bitbucket.io/"
43 +
44 +LICENSE="GPL-2"
45 +SLOT="0"
46 +IUSE="doc"
47 +
48 +RDEPEND="${HG_DEPEND}
49 + dev-python/iniparse[${PYTHON_USEDEP}]
50 + dev-python/pygments[${PYTHON_USEDEP}]
51 + dev-python/PyQt5[svg,${PYTHON_USEDEP}]
52 + >=dev-python/qscintilla-python-2.9.4:=[qt5(+),${PYTHON_USEDEP}]"
53 +DEPEND="${RDEPEND}
54 + doc? ( >=dev-python/sphinx-1.0.3 )"
55 +
56 +# Workaround race condition in build_qt
57 +DISTUTILS_IN_SOURCE_BUILD=1
58 +
59 +python_prepare_all() {
60 + if [[ ${LINGUAS+set} ]]; then
61 + cd i18n/tortoisehg || die
62 + local x y keep
63 + for x in *.po; do
64 + keep=false
65 + for y in ${LINGUAS}; do
66 + if [[ ${y} == ${x%.po}* ]]; then
67 + keep=true
68 + break
69 + fi
70 + done
71 + ${keep} || rm "${x}" || die
72 + done
73 + cd "${S}" || die
74 + fi
75 + distutils-r1_python_prepare_all
76 +}
77 +
78 +python_compile_all() {
79 + use doc && emake -C doc html
80 +}
81 +
82 +python_install_all() {
83 + distutils-r1_python_install_all
84 + dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc
85 + if use doc ; then
86 + dohtml -r doc/build/html/
87 + fi
88 + newicon -s scalable icons/scalable/apps/thg.svg thg_logo.svg
89 + domenu contrib/thg.desktop
90 +
91 + # Remove file that collides with >=mercurial-4.0 (bug #599266).
92 + rm "${ED}"/usr/$(get_libdir)/${EPYTHON}/site-packages/hgext3rd/__init__.py \
93 + || die
94 +}
95 +
96 +pkg_postinst() {
97 + elog "When startup of ${PN} fails with an API version mismatch error"
98 + elog "between dev-python/sip and dev-python/PyQt5 please rebuild"
99 + elog "dev-python/qscintilla-python."
100 +}