1 |
commit: 3a99274f5b95c9046eadd8a68f1640ac8da4b3f4 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 29 23:28:04 2017 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 23:38:27 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a99274f |
7 |
|
8 |
dev-vcs/tortoisehg: Bump to version 4.4.1 |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
dev-vcs/tortoisehg/Manifest | 1 + |
13 |
dev-vcs/tortoisehg/tortoisehg-4.4.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 56ce4214209..f3e6c033a61 100644 |
18 |
--- a/dev-vcs/tortoisehg/Manifest |
19 |
+++ b/dev-vcs/tortoisehg/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST tortoisehg-4.3.1.tar.gz 7930491 SHA256 5698db60320574769c73e4f910909e75a8e32ba84adcea902f9457899bbcb753 SHA512 dc43f2acd780a7868b642d6ce8a8dbf8f32be94134ddbb72178d7f1eab1e9f58c8e9bcfc75ad589ec9404cabefd9ccfc697af9ccd037c20bd933ee862e812f99 WHIRLPOOL 0275b5d2d76483559d829a6c32b8888af2134fc58367407ff670da21a8d0ae5d98815410520955f41e227af1eb55dd37052af19534756f49d9cb09a91b441de1 |
22 |
+DIST tortoisehg-4.4.1.tar.gz 7923557 BLAKE2B b2574bb87693a3fb824c3c02424b8f5828c1e3673b111ae82ff0692588083eec639a67b200ce6e3def58e5a0e021898c3df62a053fa61d477f92d4226d3a1b69 SHA512 b364e6d16845c03aacaf691e8528e0bd87151026f9f55bcaf61ba67d1eebfc3f9935457e5ca3391e29417682367b9b33803a9870817c22db31f1dd26850e9d53 |
23 |
|
24 |
diff --git a/dev-vcs/tortoisehg/tortoisehg-4.4.1.ebuild b/dev-vcs/tortoisehg/tortoisehg-4.4.1.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..809f95e7806 |
27 |
--- /dev/null |
28 |
+++ b/dev-vcs/tortoisehg/tortoisehg-4.4.1.ebuild |
29 |
@@ -0,0 +1,80 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+PYTHON_COMPAT=( python2_7 ) |
35 |
+ |
36 |
+inherit distutils-r1 eutils |
37 |
+ |
38 |
+if [[ ${PV} != *9999* ]]; then |
39 |
+ KEYWORDS="~amd64 ~x86" |
40 |
+ SRC_URI="https://www.bitbucket.org/${PN}/targz/downloads/${P}.tar.gz" |
41 |
+ HG_DEPEND=">=dev-vcs/mercurial-4.3 <dev-vcs/mercurial-4.5" |
42 |
+else |
43 |
+ inherit mercurial |
44 |
+ EHG_REPO_URI="https://bitbucket.org/tortoisehg/thg" |
45 |
+ EHG_REVISION="stable" |
46 |
+ HG_DEPEND="dev-vcs/mercurial" |
47 |
+fi |
48 |
+ |
49 |
+DESCRIPTION="Set of graphical tools for Mercurial" |
50 |
+HOMEPAGE="https://tortoisehg.bitbucket.io/" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0" |
54 |
+IUSE="doc" |
55 |
+ |
56 |
+RDEPEND="${HG_DEPEND} |
57 |
+ dev-python/iniparse[${PYTHON_USEDEP}] |
58 |
+ dev-python/pygments[${PYTHON_USEDEP}] |
59 |
+ dev-python/PyQt4[svg,${PYTHON_USEDEP}] |
60 |
+ dev-python/qscintilla-python[qt4(+),${PYTHON_USEDEP}]" |
61 |
+DEPEND="${RDEPEND} |
62 |
+ doc? ( >=dev-python/sphinx-1.0.3 )" |
63 |
+ |
64 |
+# Workaround race condition in build_qt |
65 |
+DISTUTILS_IN_SOURCE_BUILD=1 |
66 |
+ |
67 |
+python_prepare_all() { |
68 |
+ if [[ ${LINGUAS+set} ]]; then |
69 |
+ cd i18n/tortoisehg || die |
70 |
+ local x y keep |
71 |
+ for x in *.po; do |
72 |
+ keep=false |
73 |
+ for y in ${LINGUAS}; do |
74 |
+ if [[ ${y} == ${x%.po}* ]]; then |
75 |
+ keep=true |
76 |
+ break |
77 |
+ fi |
78 |
+ done |
79 |
+ ${keep} || rm "${x}" || die |
80 |
+ done |
81 |
+ cd "${S}" || die |
82 |
+ fi |
83 |
+ distutils-r1_python_prepare_all |
84 |
+} |
85 |
+ |
86 |
+python_compile_all() { |
87 |
+ use doc && emake -C doc html |
88 |
+} |
89 |
+ |
90 |
+python_install_all() { |
91 |
+ distutils-r1_python_install_all |
92 |
+ dodoc doc/ReadMe*.txt doc/TODO contrib/mergetools.rc |
93 |
+ if use doc ; then |
94 |
+ docinto html |
95 |
+ dodoc -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/PyQt4 please rebuild" |
108 |
+ elog "dev-python/qscintilla-python." |
109 |
+} |