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, 14 Aug 2017 07:16:18
Message-Id: 1502694969.2327afcaa9ab48076172499679d43b79a5cdffae.polynomial-c@gentoo
1 commit: 2327afcaa9ab48076172499679d43b79a5cdffae
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Mon Aug 14 07:15:22 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 14 07:16:09 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2327afca
7
8 dev-vcs/tortoisehg: Bump to version 4.3.1
9
10 Package-Manager: Portage-2.3.7, Repoman-2.3.3
11
12 dev-vcs/tortoisehg/Manifest | 1 +
13 dev-vcs/tortoisehg/tortoisehg-4.3.1.ebuild | 80 ++++++++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/dev-vcs/tortoisehg/Manifest b/dev-vcs/tortoisehg/Manifest
17 index d2f6265fbef..3e437a81601 100644
18 --- a/dev-vcs/tortoisehg/Manifest
19 +++ b/dev-vcs/tortoisehg/Manifest
20 @@ -2,3 +2,4 @@ DIST tortoisehg-3.8.4.tar.gz 7817508 SHA256 c8608ab7f063d0edd46c1fdae3181ef8216e
21 DIST tortoisehg-4.1.3.tar.gz 7919254 SHA256 003ca6b45b2e32c754dc1fa3905f76b82181e51734ca32450a115d7a9e015c4d SHA512 a33bc596bc36fa81612917409099cee6424daf3f31f96daa3ee15b88f94f15b90018fc6a58715ed4a04b92ce5a1e172d3627e6571cf7c6ec2e74c1b1d1f021c0 WHIRLPOOL 1285da85691ab6c58199fb750d4b9f8704ddc92adb0fb51090bcf3462c80b6d675001ccbc839b02efac0f722a8e9bf90c78fb3940c7c8696549d13bd8c62ab6b
22 DIST tortoisehg-4.2.1.tar.gz 7921681 SHA256 e821b9c4fc2c8ab8a1d743c56b6f002c4994d737120b388d38b4891dcd57ecca SHA512 cc3c54b69d14a8058c4cfe4e19a4108815f2725cffc82b370128c7a9560b2e55e22187470735d0aec087ea8375d4830ed9ce0c87d98cca4a96d6bc43ceec0382 WHIRLPOOL cb6847e6cdc9436ae3ac97ad52078f444b92c52c788be82ae4ad9d504e1a079f7bce81ca7c57c5047b9168799452a3c171ca42026db112d337ad8c02d071b203
23 DIST tortoisehg-4.2.2.tar.gz 7922997 SHA256 332a96ad20035d306c24ce7561b5c4aa21ed34fe02903aece61d281eead61df3 SHA512 3adff354ca5571842d877031ba5d53cf59226f4a0315e57e344398b09742bf10bf8f175a926c2aa7243a840abe97e8ef31941fa5984ec388ea3f23567ad3beee WHIRLPOOL 95fcd049888692a75832c7a46a5975e7d2e2bcc4b5d6ccae4e6a9bb8a7d325b567bfd9ff2dc7483c4f2458b1a3c72f4e1e22cc6234441d42e03225ddce95331b
24 +DIST tortoisehg-4.3.1.tar.gz 7930491 SHA256 5698db60320574769c73e4f910909e75a8e32ba84adcea902f9457899bbcb753 SHA512 dc43f2acd780a7868b642d6ce8a8dbf8f32be94134ddbb72178d7f1eab1e9f58c8e9bcfc75ad589ec9404cabefd9ccfc697af9ccd037c20bd933ee862e812f99 WHIRLPOOL 0275b5d2d76483559d829a6c32b8888af2134fc58367407ff670da21a8d0ae5d98815410520955f41e227af1eb55dd37052af19534756f49d9cb09a91b441de1
25
26 diff --git a/dev-vcs/tortoisehg/tortoisehg-4.3.1.ebuild b/dev-vcs/tortoisehg/tortoisehg-4.3.1.ebuild
27 new file mode 100644
28 index 00000000000..830b1ef37ee
29 --- /dev/null
30 +++ b/dev-vcs/tortoisehg/tortoisehg-4.3.1.ebuild
31 @@ -0,0 +1,80 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python2_7 )
37 +
38 +inherit distutils-r1 eutils
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-4.2 <dev-vcs/mercurial-4.4"
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.org"
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/PyQt4[svg,${PYTHON_USEDEP}]
62 + dev-python/qscintilla-python[qt4(+),${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 [[ ${LINGUAS+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 ${LINGUAS}; 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 + docinto html
97 + dodoc -r doc/build/html/
98 + fi
99 + newicon -s scalable icons/scalable/apps/thg.svg thg_logo.svg
100 + domenu contrib/thg.desktop
101 +
102 + # Remove file that collides with >=mercurial-4.0 (bug #599266).
103 + rm "${ED}"/usr/$(get_libdir)/${EPYTHON}/site-packages/hgext3rd/__init__.py \
104 + || die
105 +}
106 +
107 +pkg_postinst() {
108 + elog "When startup of ${PN} fails with an API version mismatch error"
109 + elog "between dev-python/sip and dev-python/PyQt4 please rebuild"
110 + elog "dev-python/qscintilla-python."
111 +}