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