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: Tue, 12 Mar 2019 09:08:43
Message-Id: 1552381576.5ed3938ac8a8cf65bb6f0684cb68ab76decbceb1.polynomial-c@gentoo
1 commit: 5ed3938ac8a8cf65bb6f0684cb68ab76decbceb1
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 12 09:06:16 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Mar 12 09:06:16 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ed3938a
7
8 dev-vcs/tortoisehg: Bump to version 4.9
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 dev-vcs/tortoisehg/Manifest | 1 +
14 dev-vcs/tortoisehg/tortoisehg-4.9.ebuild | 79 ++++++++++++++++++++++++++++++++
15 2 files changed, 80 insertions(+)
16
17 diff --git a/dev-vcs/tortoisehg/Manifest b/dev-vcs/tortoisehg/Manifest
18 index 684acbd4aff..4cae39a5717 100644
19 --- a/dev-vcs/tortoisehg/Manifest
20 +++ b/dev-vcs/tortoisehg/Manifest
21 @@ -4,3 +4,4 @@ DIST tortoisehg-4.6.1.tar.gz 7947844 BLAKE2B 68d0e8672febb9bfdca763e77cbaff8de79
22 DIST tortoisehg-4.7.2.tar.gz 7948303 BLAKE2B 9439b86cfd004aa78fc39941cee005b3fe7fcf3a7a5d5dab4c0e0ac12477338000f07105fd7ee6c67def731f406313280acb6af7d5f1d70c51331d7339b21038 SHA512 d4d3c2bb097d12f69594d25c0029bf347f6aee7e4eb3fdecf3d49f3c679b11112376410a87733bb5e29ffdef2c6837e47f7af18121cb5b14ccef22f27a55ebfe
23 DIST tortoisehg-4.8.1.tar.gz 7950273 BLAKE2B 91babad30d7fc34d6115babe86a6cf3a2a8afde73719bfec7220633f7824f953f3b6f6128a0f2956c0cafa568e3b12a4fd92d4a955f3b729c47a375c90ed500f SHA512 6ee1efe504265a7a43cae88d6fe25777ffb9109f4b01056e6248b6df1a0214a6f9eacc3121c458e6e0ea051dc56faf48acb2bda73f6e89fc3f686026fa0528b2
24 DIST tortoisehg-4.8.2.tar.gz 8961094 BLAKE2B 3230ccd1f5fbfe44e1a656c5942592023d392816972663030df4d7c604dbea79a757b1695e60c450637d74aa53e0a821fd1e159ee9f1560ea6e48c766fd13dcb SHA512 46357dd982bdb1ecde419b63ae845f60523769e1be8145e883fcd6928008bac63a4c206423e764d4e6723049bd7ebad5fcd8027fa11beea485287fe3e74be566
25 +DIST tortoisehg-4.9.tar.gz 7960163 BLAKE2B bc13032ba1e36ed3e6aca978cb3917b2e5fdcf1b7dab2e66a34a0aca2e084960954f9ec135a1c2120e09931b876db7d1f3d0f3a8f69f950ff939eea9d7814523 SHA512 cc7b0360c6b362b0b9695a484b59eea879e1d4e28ed68e98ce6975342a22ddafc97976c5b0cdea289bfd78932dacf76c0b236e36bec48acd48ee361f2c09ff13
26
27 diff --git a/dev-vcs/tortoisehg/tortoisehg-4.9.ebuild b/dev-vcs/tortoisehg/tortoisehg-4.9.ebuild
28 new file mode 100644
29 index 00000000000..a56dfb73838
30 --- /dev/null
31 +++ b/dev-vcs/tortoisehg/tortoisehg-4.9.ebuild
32 @@ -0,0 +1,79 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +PYTHON_COMPAT=( python2_7 )
38 +
39 +inherit desktop distutils-r1
40 +
41 +if [[ ${PV} != *9999* ]]; then
42 + KEYWORDS="~amd64 ~x86"
43 + SRC_URI="https://www.bitbucket.org/${PN}/targz/downloads/${P}.tar.gz"
44 + HG_DEPEND=">=dev-vcs/mercurial-4.8 <dev-vcs/mercurial-4.10"
45 +else
46 + inherit mercurial
47 + EHG_REPO_URI="https://bitbucket.org/tortoisehg/thg"
48 + EHG_REVISION="stable"
49 + HG_DEPEND="dev-vcs/mercurial"
50 +fi
51 +
52 +DESCRIPTION="Set of graphical tools for Mercurial"
53 +HOMEPAGE="https://tortoisehg.bitbucket.io/"
54 +
55 +LICENSE="GPL-2"
56 +SLOT="0"
57 +IUSE="doc"
58 +
59 +RDEPEND="${HG_DEPEND}
60 + dev-python/iniparse[${PYTHON_USEDEP}]
61 + dev-python/pygments[${PYTHON_USEDEP}]
62 + dev-python/PyQt5[network,svg,${PYTHON_USEDEP}]
63 + >=dev-python/qscintilla-python-2.9.4:=[qt5(+),${PYTHON_USEDEP}]"
64 +DEPEND="${RDEPEND}
65 + doc? ( >=dev-python/sphinx-1.0.3 )"
66 +
67 +# Workaround race condition in build_qt
68 +DISTUTILS_IN_SOURCE_BUILD=1
69 +
70 +python_prepare_all() {
71 + if [[ ${L10N+set} ]]; then
72 + cd i18n/tortoisehg || die
73 + local x y keep
74 + for x in *.po; do
75 + keep=false
76 + for y in ${L10N}; do
77 + if [[ ${y} == ${x%.po}* ]]; then
78 + keep=true
79 + break
80 + fi
81 + done
82 + ${keep} || rm "${x}" || die
83 + done
84 + cd "${S}" || die
85 + fi
86 + distutils-r1_python_prepare_all
87 +}
88 +
89 +python_compile_all() {
90 + use doc && emake -C doc html
91 +}
92 +
93 +python_install_all() {
94 + distutils-r1_python_install_all
95 + dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc
96 + if use doc ; then
97 + dohtml -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/PyQt5 please rebuild"
110 + elog "dev-python/qscintilla-python."
111 +}