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/mercurial/
Date: Wed, 04 Jul 2018 09:10:34
Message-Id: 1530695171.01451ef99cf227ce3f8ca56b6cf799aeb87aa7be.polynomial-c@gentoo
1 commit: 01451ef99cf227ce3f8ca56b6cf799aeb87aa7be
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 4 09:06:11 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 4 09:06:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01451ef9
7
8 dev-vcs/mercurial: Bump to version 4.6.2
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 dev-vcs/mercurial/Manifest | 1 +
13 dev-vcs/mercurial/mercurial-4.6.2.ebuild | 134 +++++++++++++++++++++++++++++++
14 2 files changed, 135 insertions(+)
15
16 diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest
17 index d90dc73db3c..747583db382 100644
18 --- a/dev-vcs/mercurial/Manifest
19 +++ b/dev-vcs/mercurial/Manifest
20 @@ -1,4 +1,5 @@
21 DIST mercurial-4.5.2.tar.gz 5779915 BLAKE2B 9abc5a8bafc43bc8e930bb51aa2e57397cd5858dc7bb31d9a37795a4e2799dc03b57130b23e29f89a07bd7502f136594a03d1a4bd5dfd04e2e968213b50413da SHA512 f70e40cba72b7955f0ecec9c1f53ffffac26f206188617cb182e22ce4f43dc8b970ce46d12c516ef88480c3fa076a59afcddd736dffb642d8e23befaf45b4941
22 DIST mercurial-4.5.3.tar.gz 5884837 BLAKE2B 61e61624cb397786b7a4f6ed62a3ba0c2ed7cbacc5918341d014a7e0fd9bbe07c91def00539411e71d231d18060de8461bef05590626bf1318691f791e0ad2b5 SHA512 9c23ffefb0a194b5a88ee783186347c21e7d973524ba40119439702953b35b01ad6fbc32ce09ae169f1020963e92312a39321b1da3ffe06db1d44158761abbec
23 DIST mercurial-4.6.1.tar.gz 6407380 BLAKE2B 02663a11c56bbd05f123a0903463d7e95cdf3f2e553b0f81b365b4ca296c15bccd735487162870a4e38253c6c0cb1d8f0cf1bbb1b05b3c3b721f2209e4e1b2ec SHA512 0c7737ca803691b135b4906cc527b20595e314009096d8a19f37814ee192b182e7c5360fbf993f632d6071da1f9fca38677e7190c14ed92bafa8add72a4a27d9
24 +DIST mercurial-4.6.2.tar.gz 6407989 BLAKE2B 22aa121b2544e3597f2ea4d3a7a80b3b8f5ca6f9de15326dbee555ca3d14b8a552042c4448aae17b1c015b4f302c3512c204f17a834b758f51fbcc2455ed4e6f SHA512 71afb9ed3f62b1b946563c55851dda1fc8b724afe82a4a253c7f4719ae9e1160d5f9644bed7fd27ee3a21d8e682352364fc9f47bafa552cd4cd7fac7c0d42bdd
25 DIST mercurial-4.6.tar.gz 6226745 BLAKE2B 9304fff7f6cc67523e9d1c36aee110f2cfbcf2f059f45072e9175b6cb057273ff13e5823bc7831ac04de2e40b54fa660051861d42426c85b0a62b2c759aaff60 SHA512 2a7e94a338727afc97aab9c33ce4810a17088f5f477a83b581dcbf594e455062e69e6a3782f1665b24ffc011963b0eead6f7e637a63f241d256378d30b006c45
26
27 diff --git a/dev-vcs/mercurial/mercurial-4.6.2.ebuild b/dev-vcs/mercurial/mercurial-4.6.2.ebuild
28 new file mode 100644
29 index 00000000000..55a97bb048e
30 --- /dev/null
31 +++ b/dev-vcs/mercurial/mercurial-4.6.2.ebuild
32 @@ -0,0 +1,134 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=6
37 +
38 +PYTHON_COMPAT=( python2_7 )
39 +PYTHON_REQ_USE="threads"
40 +
41 +inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
42 +
43 +DESCRIPTION="Scalable distributed SCM"
44 +HOMEPAGE="https://www.mercurial-scm.org/"
45 +SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
46 +
47 +LICENSE="GPL-2+"
48 +SLOT="0"
49 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
50 +IUSE="bugzilla emacs gpg test tk"
51 +
52 +RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
53 + gpg? ( app-crypt/gnupg )
54 + tk? ( dev-lang/tk )
55 + app-misc/ca-certificates"
56 +DEPEND="emacs? ( virtual/emacs )
57 + test? ( app-arch/unzip
58 + dev-python/pygments[${PYTHON_USEDEP}] )"
59 +
60 +SITEFILE="70${PN}-gentoo.el"
61 +
62 +PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" )
63 +
64 +python_prepare_all() {
65 + # fix up logic that won't work in Gentoo Prefix (also won't outside in
66 + # certain cases), bug #362891
67 + sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
68 +
69 + distutils-r1_python_prepare_all
70 +}
71 +
72 +python_configure_all() {
73 + strip-flags -ftracer -ftree-vectorize
74 + # Note: make it impl-conditional if py3 is supported
75 + append-flags -fno-strict-aliasing
76 +
77 + "${PYTHON}" setup.py build_mo || die
78 +}
79 +
80 +python_compile_all() {
81 + rm -r contrib/{win32,macosx} || die
82 + if use emacs; then
83 + cd contrib || die
84 + elisp-compile mercurial.el || die "elisp-compile failed!"
85 + fi
86 +}
87 +
88 +python_install_all() {
89 + distutils-r1_python_install_all
90 +
91 + newbashcomp contrib/bash_completion hg
92 +
93 + insinto /usr/share/zsh/site-functions
94 + newins contrib/zsh_completion _hg
95 +
96 + rm -f doc/*.?.txt
97 + dodoc CONTRIBUTORS
98 + cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
99 +
100 + dobin hgeditor
101 + dobin contrib/hgk
102 + python_foreach_impl python_doscript contrib/hg-ssh
103 +
104 + if use emacs; then
105 + elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
106 + elisp-site-file-install "${FILESDIR}"/${SITEFILE}
107 + fi
108 +
109 + local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
110 + *.el mercurial.spec)
111 + for f in ${RM_CONTRIB[@]}; do
112 + rm -r contrib/$f || die
113 + done
114 +
115 + dodoc -r contrib
116 + docompress -x /usr/share/doc/${PF}/contrib
117 + doman doc/*.?
118 +
119 + insinto /etc/mercurial/hgrc.d
120 + doins "${FILESDIR}/cacerts.rc"
121 +}
122 +
123 +src_test() {
124 + pushd tests &>/dev/null || die
125 + rm -rf *svn* # Subversion tests fail with 1.5
126 + rm -f test-archive* # Fails due to verbose tar output changes
127 + rm -f test-convert-baz* # GNU Arch baz
128 + rm -f test-convert-cvs* # CVS
129 + rm -f test-convert-darcs* # Darcs
130 + rm -f test-convert-git* # git
131 + rm -f test-convert-mtn* # monotone
132 + rm -f test-convert-tla* # GNU Arch tla
133 + #rm -f test-doctest* # doctest always fails with python 2.5.x
134 + rm -f test-largefiles* # tends to time out
135 +
136 + popd &>/dev/null || die
137 + distutils-r1_src_test
138 +}
139 +
140 +python_test() {
141 + local TEST_DIR
142 +
143 + rm -rf "${TMPDIR}"/test
144 + distutils_install_for_testing
145 + cd tests || die
146 + "${PYTHON}" run-tests.py --verbose \
147 + --tmpdir="${TMPDIR}"/test \
148 + --with-hg="${TEST_DIR}"/scripts/hg \
149 + || die "Tests fail with ${EPYTHON}"
150 +}
151 +
152 +pkg_postinst() {
153 + use emacs && elisp-site-regen
154 +
155 + elog "If you want to convert repositories from other tools using convert"
156 + elog "extension please install correct tool:"
157 + elog " dev-vcs/cvs"
158 + elog " dev-vcs/darcs"
159 + elog " dev-vcs/git"
160 + elog " dev-vcs/monotone"
161 + elog " dev-vcs/subversion"
162 +}
163 +
164 +pkg_postrm() {
165 + use emacs && elisp-site-regen
166 +}