Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/mercurial: ChangeLog mercurial-2.8.1.ebuild
Date: Tue, 03 Dec 2013 11:37:49
Message-Id: 20131203113745.9A61B2004B@flycatcher.gentoo.org
1 polynomial-c 13/12/03 11:37:45
2
3 Modified: ChangeLog
4 Added: mercurial-2.8.1.ebuild
5 Log:
6 Version bump
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
9
10 Revision Changes Path
11 1.131 dev-vcs/mercurial/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.131&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.131&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?r1=1.130&r2=1.131
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v
20 retrieving revision 1.130
21 retrieving revision 1.131
22 diff -u -r1.130 -r1.131
23 --- ChangeLog 4 Nov 2013 16:13:26 -0000 1.130
24 +++ ChangeLog 3 Dec 2013 11:37:45 -0000 1.131
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/mercurial
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.130 2013/11/04 16:13:26 polynomial-c Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.131 2013/12/03 11:37:45 polynomial-c Exp $
30 +
31 +*mercurial-2.8.1 (03 Dec 2013)
32 +
33 + 03 Dec 2013; Lars Wendler <polynomial-c@g.o> +mercurial-2.8.1.ebuild:
34 + Version bump.
35
36 *mercurial-2.8 (04 Nov 2013)
37
38
39
40
41 1.1 dev-vcs/mercurial/mercurial-2.8.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-2.8.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-2.8.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mercurial-2.8.1.ebuild
47 ===================================================================
48 # Copyright 1999-2013 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-2.8.1.ebuild,v 1.1 2013/12/03 11:37:45 polynomial-c Exp $
51
52 EAPI=5
53
54 PYTHON_COMPAT=( python{2_6,2_7} )
55 PYTHON_REQ_USE="threads"
56
57 inherit bash-completion-r1 elisp-common eutils distutils-r1 flag-o-matic
58
59 DESCRIPTION="Scalable distributed SCM"
60 HOMEPAGE="http://mercurial.selenic.com/"
61 SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
62
63 LICENSE="GPL-2"
64 SLOT="0"
65 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~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"
66 IUSE="bugzilla emacs gpg test tk zsh-completion"
67
68 RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
69 gpg? ( app-crypt/gnupg )
70 tk? ( dev-lang/tk )
71 zsh-completion? ( app-shells/zsh )
72 app-misc/ca-certificates"
73 DEPEND="emacs? ( virtual/emacs )
74 test? ( app-arch/unzip
75 dev-python/pygments[${PYTHON_USEDEP}] )"
76
77 SITEFILE="70${PN}-gentoo.el"
78
79 python_prepare_all() {
80 # fix up logic that won't work in Gentoo Prefix (also won't outside in
81 # certain cases), bug #362891
82 sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
83
84 distutils-r1_python_prepare_all
85 }
86
87 python_configure_all() {
88 strip-flags -ftracer -ftree-vectorize
89 # Note: make it impl-conditional if py3 is supported
90 append-flags -fno-strict-aliasing
91
92 "${PYTHON}" setup.py build_mo || die
93 }
94
95 python_compile_all() {
96 rm -r contrib/{win32,macosx} || die
97 if use emacs; then
98 cd contrib || die
99 elisp-compile mercurial.el || die "elisp-compile failed!"
100 fi
101 }
102
103 python_install_all() {
104 distutils-r1_python_install_all
105
106 newbashcomp contrib/bash_completion hg
107
108 if use zsh-completion ; then
109 insinto /usr/share/zsh/site-functions
110 newins contrib/zsh_completion _hg
111 fi
112
113 rm -f doc/*.?.txt
114 dodoc CONTRIBUTORS
115 cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
116
117 dobin hgeditor
118 dobin contrib/hgk
119 python_foreach_impl python_doscript contrib/hg-ssh
120
121 if use emacs; then
122 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
123 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
124 fi
125
126 local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
127 *.el mercurial.spec)
128 for f in ${RM_CONTRIB[@]}; do
129 rm -rf contrib/$f || die
130 done
131
132 dodoc -r contrib
133 docompress -x /usr/share/doc/${PF}/contrib
134 doman doc/*.?
135
136 cat > "${T}/80mercurial" <<-EOF
137 HG="${EPREFIX}/usr/bin/hg"
138 EOF
139 doenvd "${T}/80mercurial"
140
141 insinto /etc/mercurial/hgrc.d
142 doins "${FILESDIR}/cacerts.rc"
143 }
144
145 src_test() {
146 cd tests || die
147 rm -rf *svn* || die # Subversion tests fail with 1.5
148 rm -f test-archive* || die # Fails due to verbose tar output changes
149 rm -f test-convert-baz* || die # GNU Arch baz
150 rm -f test-convert-cvs* || die # CVS
151 rm -f test-convert-darcs* || die # Darcs
152 rm -f test-convert-git* || die # git
153 rm -f test-convert-mtn* || die # monotone
154 rm -f test-convert-tla* || die # GNU Arch tla
155 rm -f test-doctest* || die # doctest always fails with python 2.5.x
156 rm -f test-largefiles* || die # tends to time out
157 if [[ ${EUID} -eq 0 ]]; then
158 einfo "Removing tests which require user privileges to succeed"
159 rm -f test-command-template* || die # Test is broken when run as root
160 rm -f test-convert* || die # Test is broken when run as root
161 rm -f test-lock-badness* || die # Test is broken when run as root
162 rm -f test-permissions* || die # Test is broken when run as root
163 rm -f test-pull-permission* || die # Test is broken when run as root
164 rm -f test-clone-failure* || die
165 rm -f test-journal-exists* || die
166 rm -f test-repair-strip* || die
167 fi
168
169 cd .. || die
170 distutils-r1_src_test
171 }
172
173 python_test() {
174 local TEST_DIR
175
176 rm -rf "${TMPDIR}"/test
177 distutils_install_for_testing
178 cd tests || die
179 "${PYTHON}" run-tests.py --verbose \
180 --tmpdir="${TMPDIR}"/test \
181 --with-hg="${TEST_DIR}"/scripts/hg \
182 || die "Tests fail with ${EPYTHON}"
183 }
184
185 pkg_postinst() {
186 use emacs && elisp-site-regen
187
188 elog "If you want to convert repositories from other tools using convert"
189 elog "extension please install correct tool:"
190 elog " dev-vcs/cvs"
191 elog " dev-vcs/darcs"
192 elog " dev-vcs/git"
193 elog " dev-vcs/monotone"
194 elog " dev-vcs/subversion"
195 }
196
197 pkg_postrm() {
198 use emacs && elisp-site-regen
199 }