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