Gentoo Archives: gentoo-commits

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