Gentoo Archives: gentoo-commits

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