Gentoo Archives: gentoo-commits

From: Dirkjan Ochtman <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/mercurial/
Date: Sat, 02 Jul 2016 19:45:18
Message-Id: 1467488696.ad1518dfd81bc6d79255db197625bb81fff45f35.djc@gentoo
1 commit: ad1518dfd81bc6d79255db197625bb81fff45f35
2 Author: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jul 2 19:44:56 2016 +0000
4 Commit: Dirkjan Ochtman <djc <AT> gentoo <DOT> org>
5 CommitDate: Sat Jul 2 19:44:56 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad1518df
7
8 dev-vcs/mercurial: version bump to 3.8.4
9
10 Package-Manager: portage-2.2.28
11
12 dev-vcs/mercurial/Manifest | 1 +
13 dev-vcs/mercurial/mercurial-3.8.4.ebuild | 135 +++++++++++++++++++++++++++++++
14 2 files changed, 136 insertions(+)
15
16 diff --git a/dev-vcs/mercurial/Manifest b/dev-vcs/mercurial/Manifest
17 index 7dba839..209730f 100644
18 --- a/dev-vcs/mercurial/Manifest
19 +++ b/dev-vcs/mercurial/Manifest
20 @@ -2,3 +2,4 @@ DIST mercurial-3.3.2.tar.gz 4165131 SHA256 67c617c740ac706f923371a26f02339b27cd6
21 DIST mercurial-3.7.3.tar.gz 4636732 SHA256 c099c42d74e2d520b61dd372cd996b0fa7605c06617834fd7b13c79b9a9a5b30 SHA512 7f9f97229e40c7092c16ccf227b19a08a9839d8ce19a9d057341fff75876bff32241ee9aa10eab293f779ea3e8a1d97577597187bd96251fb499cbb1075a82cf WHIRLPOOL 51d7f152a0af27924fec8b39933796f5584867efff7f271147139e740302d05f8976f3c2aa95cb724b774ba4951040483bb51b02eed1495d8b15012301ba060e
22 DIST mercurial-3.8.2.tar.gz 4771143 SHA256 cb78b16956140625266a8a6d1fadc7c868969d994086e1ec60279a66bf20bffd SHA512 16705396e71d86e7b0eec5d42e39d013812169f62cee10998bdfc088570759576aadcb7845f438b0e12664a3d8487fe5cd19c034811aefda8b2ee59e3d9a0f60 WHIRLPOOL e4428c5bc0274d4b50cc61084a6766f485df58e4ed80b0637a11033729a7e3224bd9ce7378c5d929b0e361a91e22b2e5a27c65af9a4d935b2fa05d6c435d8c4d
23 DIST mercurial-3.8.3.tar.gz 4772901 SHA256 f84556cdf9a331984261549d9d08143ab9da33d7c03f0aa323b0ee52d0782a4c SHA512 d6106fe942406fa3fe85039fa67ca47659b934cf2a027dfe24bfaff2f26130051ea1ee6064b30648769a12c4d6c7de2764463fb29a8194f50d79bcd63a4c5246 WHIRLPOOL 3c97a8032f030bd8b3c3a2a402eb847a069b6e8345f872d551fd705adb3d027dc8602d28cf2ff4f30ecf4cfb7017774821a21279140c9dc03f7e0cf6df2ca925
24 +DIST mercurial-3.8.4.tar.gz 4775341 SHA256 4b2e3ef19d34fa1d781cb7425506a05d4b6b1172bab69d6ea78874175fdf3da6 SHA512 2ee785f631f9ae346e10ca77251a9ce6d3dacd598588c39f1a69ce1f4b668866f6109d682428512c37c300b26741b74672195538d66845e85cfff5ead886cf4c WHIRLPOOL 1f0a12cc6d00f3544ab00e011a9ff9308fe1652c0598045ddba2a41ba17b55c291da200bce85d4c600d673b8746e936c441ffa7398ad810d1069bd97fb32f2db
25
26 diff --git a/dev-vcs/mercurial/mercurial-3.8.4.ebuild b/dev-vcs/mercurial/mercurial-3.8.4.ebuild
27 new file mode 100644
28 index 0000000..1e1d7b5
29 --- /dev/null
30 +++ b/dev-vcs/mercurial/mercurial-3.8.4.ebuild
31 @@ -0,0 +1,135 @@
32 +# Copyright 1999-2016 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +# $Id$
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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-interix ~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 +}