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