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: Fri, 11 Aug 2017 09:51:47
Message-Id: 1502445080.60a0f4fd5e43e5df63e9b9f8cfd2a1fccc081c44.polynomial-c@gentoo
1 commit: 60a0f4fd5e43e5df63e9b9f8cfd2a1fccc081c44
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 11 09:51:20 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 11 09:51:20 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60a0f4fd
7
8 dev-vcs/mercurial: Bump to version 4.2.3 and 4.3.1
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.3
11
12 dev-vcs/mercurial/Manifest | 2 +
13 dev-vcs/mercurial/mercurial-4.2.3.ebuild | 134 +++++++++++++++++++++++++++++++
14 dev-vcs/mercurial/mercurial-4.3.1.ebuild | 134 +++++++++++++++++++++++++++++++
15 dev-vcs/mercurial/metadata.xml | 2 +-
16 4 files changed, 271 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest
19 index ba851c077e7..f40206246f7 100644
20 --- a/dev-vcs/mercurial/Manifest
21 +++ b/dev-vcs/mercurial/Manifest
22 @@ -2,5 +2,7 @@ DIST mercurial-3.8.4.tar.gz 4775341 SHA256 4b2e3ef19d34fa1d781cb7425506a05d4b6b1
23 DIST mercurial-4.1.3.tar.gz 5134965 SHA256 103d2ae187d5c94110c0e86ccc3b46f55fcd8e21c78d1c209bac7b59a73e86d8 SHA512 794c513b7e061bc56d270ef57adc0fadeffd5bcc988da0934b24db686b76bf573aef2bbaa3baa9220f31463795bc6e6a99fc1284ebcf8d7e49f42b8129347811 WHIRLPOOL a2f5d5e3e89f794415521bf0bc93ff0e8a67aec6c39951437b6b585f9f6d604bd556af10cce50951128c746719db54ea48f86fb7c262a36a29576ba539be1e79
24 DIST mercurial-4.2.1.tar.gz 5317692 SHA256 d7d5572f5aa0797fbf2168440eaa51149df88645fe37af8b15fa660d9a8158a0 SHA512 0349fb5343210869bacb2247d30546676e5cf486f64fb8ebb2b1c6cdf7d564e7b754a43fb5b61c7d7e66a67609c514c8e15f415f4189bccbebb2fbb5a5474645 WHIRLPOOL f64df61fe2a10abca4765f150952e5d529034909666f1bee6df40d628af52d650086bd51c5d2db2e0ce2874f38fd439bb9d958bda3d2d63dccbf861b933d51f1
25 DIST mercurial-4.2.2.tar.gz 5319282 SHA256 b20132dec5ae6d27ee43a133144069895befe09f7e454bfa9e39950a185f0afe SHA512 16324fec97146d749fe6bdb4c35466f6f1786213451015a34d34f8a0d042870d7fc29b6fd74d720191d24e84e57b3d931bb58594bcd7a89399bfbb427e7af994 WHIRLPOOL 9a82b7af0ca793aa17cbcce184a4d292689cbc503ba16ab2a1d349397c2ea9b01d7585eb5a1c4f260145f42de2b34de0b577747ee7b47d2abcf1184c0dc3f71f
26 +DIST mercurial-4.2.3.tar.gz 5322850 SHA256 04908fc7d89e5810edf3d2762f5aecce5b5c0cb8534f3dbff7d0d848d11ff7ac SHA512 d6c4bf4fd38eaaee8cf2e5c30cd8f15c3651992d27bf4431ab42dffde7dfc06eb59641d9e7087f7851580b1740a84a8806169d8f224cd0d6ce1fb0b167a97647 WHIRLPOOL bc3c0cdbe88441f9d4349b174b65e032d2150a52c07450982d2f28b14ef0ed0629ef4df859581a4b5873cc8712857c40854bd013d6299b65d0f0b5317ee52e99
27 DIST mercurial-4.2.tar.gz 5303367 SHA256 23a412308fc9c2b354a0e91a89588a4af2af061b47da80bc4233ccb0cceef47d SHA512 bd03134a70fe0576a31d86cb6ca2d232b8f98bd9b038dc972a4d332889bb39c776f47d44ea9c45588d6e53590a8e3fbd48ca25238525919b8e44beab3d3c79cb WHIRLPOOL 930882698c0e662f5fadc8a57a14ce00270cce70f7a9f8f0081647a28c3558aeda1a4d7bc5aa7e264cb60ec85051dae6a16cc62df0f51be3cc406bf587ff5485
28 +DIST mercurial-4.3.1.tar.gz 5475042 SHA256 2b12f02e3a452adff4ec9cf007017bab0cadb3f37eaf12f4b25a662df73618a2 SHA512 4c42d06b7f111a3e825dd927704a30f88f0b2225cf87ab8954bf53a7fbc0edf561374dd49b13d9c10140d98ff5853a64acb5a744349727abae81d32da401922b WHIRLPOOL 4360763be405d75ffc0e3e2356fcfe44079bf9818c07211964ba7433932956283feb329379af329e0a7d70acc5c6a163a9c08976abb902197d6a6f0180a3a958
29 DIST mercurial-4.3.tar.gz 5469979 SHA256 ebf11176e9b5354ec7a1bde6c5382c914d10c397410531faf89f8b5124a7cb65 SHA512 d74ae5f35d8c415c07737b59e6c5455963dfbf5d038c43d683fd34dd84423b9ccf9cd670667f458db20d8580fc7c7d9e5609d29d990e1e94683734694211c417 WHIRLPOOL 54583dbc826fdec3e737dc49d1a8ce180d29579d091c86e48a3b7c68bb4a2d399c5aff3b2ff0e30cd911e8955537a621c73c330d70a55f7efcdeafd21257178f
30
31 diff --git a/dev-vcs/mercurial/mercurial-4.2.3.ebuild b/dev-vcs/mercurial/mercurial-4.2.3.ebuild
32 new file mode 100644
33 index 00000000000..a04546c6f07
34 --- /dev/null
35 +++ b/dev-vcs/mercurial/mercurial-4.2.3.ebuild
36 @@ -0,0 +1,134 @@
37 +# Copyright 1999-2017 Gentoo Foundation
38 +# Distributed under the terms of the GNU General Public License v2
39 +
40 +EAPI=6
41 +
42 +PYTHON_COMPAT=( python2_7 )
43 +PYTHON_REQ_USE="threads"
44 +
45 +inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
46 +
47 +DESCRIPTION="Scalable distributed SCM"
48 +HOMEPAGE="https://www.mercurial-scm.org/"
49 +SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
50 +
51 +LICENSE="GPL-2"
52 +SLOT="0"
53 +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"
54 +IUSE="bugzilla emacs gpg test tk"
55 +
56 +RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
57 + gpg? ( app-crypt/gnupg )
58 + tk? ( dev-lang/tk )
59 + app-misc/ca-certificates"
60 +DEPEND="emacs? ( virtual/emacs )
61 + test? ( app-arch/unzip
62 + dev-python/pygments[${PYTHON_USEDEP}] )"
63 +
64 +SITEFILE="70${PN}-gentoo.el"
65 +
66 +PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" )
67 +
68 +python_prepare_all() {
69 + # fix up logic that won't work in Gentoo Prefix (also won't outside in
70 + # certain cases), bug #362891
71 + sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
72 +
73 + distutils-r1_python_prepare_all
74 +}
75 +
76 +python_configure_all() {
77 + strip-flags -ftracer -ftree-vectorize
78 + # Note: make it impl-conditional if py3 is supported
79 + append-flags -fno-strict-aliasing
80 +
81 + "${PYTHON}" setup.py build_mo || die
82 +}
83 +
84 +python_compile_all() {
85 + rm -r contrib/{win32,macosx} || die
86 + if use emacs; then
87 + cd contrib || die
88 + elisp-compile mercurial.el || die "elisp-compile failed!"
89 + fi
90 +}
91 +
92 +python_install_all() {
93 + distutils-r1_python_install_all
94 +
95 + newbashcomp contrib/bash_completion hg
96 +
97 + insinto /usr/share/zsh/site-functions
98 + newins contrib/zsh_completion _hg
99 +
100 + rm -f doc/*.?.txt
101 + dodoc CONTRIBUTORS
102 + cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
103 +
104 + dobin hgeditor
105 + dobin contrib/hgk
106 + python_foreach_impl python_doscript contrib/hg-ssh
107 +
108 + if use emacs; then
109 + elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
110 + elisp-site-file-install "${FILESDIR}"/${SITEFILE}
111 + fi
112 +
113 + local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
114 + *.el mercurial.spec)
115 + for f in ${RM_CONTRIB[@]}; do
116 + rm -r contrib/$f || die
117 + done
118 +
119 + dodoc -r contrib
120 + docompress -x /usr/share/doc/${PF}/contrib
121 + doman doc/*.?
122 +
123 + insinto /etc/mercurial/hgrc.d
124 + doins "${FILESDIR}/cacerts.rc"
125 +}
126 +
127 +src_test() {
128 + pushd tests &>/dev/null || die
129 + rm -rf *svn* # Subversion tests fail with 1.5
130 + rm -f test-archive* # Fails due to verbose tar output changes
131 + rm -f test-convert-baz* # GNU Arch baz
132 + rm -f test-convert-cvs* # CVS
133 + rm -f test-convert-darcs* # Darcs
134 + rm -f test-convert-git* # git
135 + rm -f test-convert-mtn* # monotone
136 + rm -f test-convert-tla* # GNU Arch tla
137 + #rm -f test-doctest* # doctest always fails with python 2.5.x
138 + rm -f test-largefiles* # tends to time out
139 +
140 + popd &>/dev/null || die
141 + distutils-r1_src_test
142 +}
143 +
144 +python_test() {
145 + local TEST_DIR
146 +
147 + rm -rf "${TMPDIR}"/test
148 + distutils_install_for_testing
149 + cd tests || die
150 + "${PYTHON}" run-tests.py --verbose \
151 + --tmpdir="${TMPDIR}"/test \
152 + --with-hg="${TEST_DIR}"/scripts/hg \
153 + || die "Tests fail with ${EPYTHON}"
154 +}
155 +
156 +pkg_postinst() {
157 + use emacs && elisp-site-regen
158 +
159 + elog "If you want to convert repositories from other tools using convert"
160 + elog "extension please install correct tool:"
161 + elog " dev-vcs/cvs"
162 + elog " dev-vcs/darcs"
163 + elog " dev-vcs/git"
164 + elog " dev-vcs/monotone"
165 + elog " dev-vcs/subversion"
166 +}
167 +
168 +pkg_postrm() {
169 + use emacs && elisp-site-regen
170 +}
171
172 diff --git a/dev-vcs/mercurial/mercurial-4.3.1.ebuild b/dev-vcs/mercurial/mercurial-4.3.1.ebuild
173 new file mode 100644
174 index 00000000000..a04546c6f07
175 --- /dev/null
176 +++ b/dev-vcs/mercurial/mercurial-4.3.1.ebuild
177 @@ -0,0 +1,134 @@
178 +# Copyright 1999-2017 Gentoo Foundation
179 +# Distributed under the terms of the GNU General Public License v2
180 +
181 +EAPI=6
182 +
183 +PYTHON_COMPAT=( python2_7 )
184 +PYTHON_REQ_USE="threads"
185 +
186 +inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
187 +
188 +DESCRIPTION="Scalable distributed SCM"
189 +HOMEPAGE="https://www.mercurial-scm.org/"
190 +SRC_URI="https://www.mercurial-scm.org/release/${P}.tar.gz"
191 +
192 +LICENSE="GPL-2"
193 +SLOT="0"
194 +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"
195 +IUSE="bugzilla emacs gpg test tk"
196 +
197 +RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
198 + gpg? ( app-crypt/gnupg )
199 + tk? ( dev-lang/tk )
200 + app-misc/ca-certificates"
201 +DEPEND="emacs? ( virtual/emacs )
202 + test? ( app-arch/unzip
203 + dev-python/pygments[${PYTHON_USEDEP}] )"
204 +
205 +SITEFILE="70${PN}-gentoo.el"
206 +
207 +PATCHES=( "${FILESDIR}/${PN}-3.0.1-po_fixes.patch" )
208 +
209 +python_prepare_all() {
210 + # fix up logic that won't work in Gentoo Prefix (also won't outside in
211 + # certain cases), bug #362891
212 + sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
213 +
214 + distutils-r1_python_prepare_all
215 +}
216 +
217 +python_configure_all() {
218 + strip-flags -ftracer -ftree-vectorize
219 + # Note: make it impl-conditional if py3 is supported
220 + append-flags -fno-strict-aliasing
221 +
222 + "${PYTHON}" setup.py build_mo || die
223 +}
224 +
225 +python_compile_all() {
226 + rm -r contrib/{win32,macosx} || die
227 + if use emacs; then
228 + cd contrib || die
229 + elisp-compile mercurial.el || die "elisp-compile failed!"
230 + fi
231 +}
232 +
233 +python_install_all() {
234 + distutils-r1_python_install_all
235 +
236 + newbashcomp contrib/bash_completion hg
237 +
238 + insinto /usr/share/zsh/site-functions
239 + newins contrib/zsh_completion _hg
240 +
241 + rm -f doc/*.?.txt
242 + dodoc CONTRIBUTORS
243 + cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
244 +
245 + dobin hgeditor
246 + dobin contrib/hgk
247 + python_foreach_impl python_doscript contrib/hg-ssh
248 +
249 + if use emacs; then
250 + elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
251 + elisp-site-file-install "${FILESDIR}"/${SITEFILE}
252 + fi
253 +
254 + local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
255 + *.el mercurial.spec)
256 + for f in ${RM_CONTRIB[@]}; do
257 + rm -r contrib/$f || die
258 + done
259 +
260 + dodoc -r contrib
261 + docompress -x /usr/share/doc/${PF}/contrib
262 + doman doc/*.?
263 +
264 + insinto /etc/mercurial/hgrc.d
265 + doins "${FILESDIR}/cacerts.rc"
266 +}
267 +
268 +src_test() {
269 + pushd tests &>/dev/null || die
270 + rm -rf *svn* # Subversion tests fail with 1.5
271 + rm -f test-archive* # Fails due to verbose tar output changes
272 + rm -f test-convert-baz* # GNU Arch baz
273 + rm -f test-convert-cvs* # CVS
274 + rm -f test-convert-darcs* # Darcs
275 + rm -f test-convert-git* # git
276 + rm -f test-convert-mtn* # monotone
277 + rm -f test-convert-tla* # GNU Arch tla
278 + #rm -f test-doctest* # doctest always fails with python 2.5.x
279 + rm -f test-largefiles* # tends to time out
280 +
281 + popd &>/dev/null || die
282 + distutils-r1_src_test
283 +}
284 +
285 +python_test() {
286 + local TEST_DIR
287 +
288 + rm -rf "${TMPDIR}"/test
289 + distutils_install_for_testing
290 + cd tests || die
291 + "${PYTHON}" run-tests.py --verbose \
292 + --tmpdir="${TMPDIR}"/test \
293 + --with-hg="${TEST_DIR}"/scripts/hg \
294 + || die "Tests fail with ${EPYTHON}"
295 +}
296 +
297 +pkg_postinst() {
298 + use emacs && elisp-site-regen
299 +
300 + elog "If you want to convert repositories from other tools using convert"
301 + elog "extension please install correct tool:"
302 + elog " dev-vcs/cvs"
303 + elog " dev-vcs/darcs"
304 + elog " dev-vcs/git"
305 + elog " dev-vcs/monotone"
306 + elog " dev-vcs/subversion"
307 +}
308 +
309 +pkg_postrm() {
310 + use emacs && elisp-site-regen
311 +}
312
313 diff --git a/dev-vcs/mercurial/metadata.xml b/dev-vcs/mercurial/metadata.xml
314 index 9ff07aed001..6f2bedbfd60 100644
315 --- a/dev-vcs/mercurial/metadata.xml
316 +++ b/dev-vcs/mercurial/metadata.xml
317 @@ -8,6 +8,6 @@
318 <use>
319 <flag name="bugzilla">Support bugzilla integration.</flag>
320 <flag name="gpg">Support signing with GnuPG.</flag>
321 - <flag name="tk">Install dev-lang/tk for hgk script.</flag>
322 + <flag name="tk">Install dev-lang/tk for hgk script.</flag>
323 </use>
324 </pkgmetadata>