Gentoo Archives: gentoo-commits

From: "Krzysztof Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/mercurial: ChangeLog mercurial-2.1.2.ebuild
Date: Mon, 30 Apr 2012 08:51:07
Message-Id: 20120430085052.2DB152004B@flycatcher.gentoo.org
1 nelchael 12/04/30 08:50:52
2
3 Modified: ChangeLog
4 Added: mercurial-2.1.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.1.10.57/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.70 dev-vcs/mercurial/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.70&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.70&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?r1=1.69&r2=1.70
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v
20 retrieving revision 1.69
21 retrieving revision 1.70
22 diff -u -r1.69 -r1.70
23 --- ChangeLog 6 Mar 2012 21:59:24 -0000 1.69
24 +++ ChangeLog 30 Apr 2012 08:50:52 -0000 1.70
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/mercurial
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.69 2012/03/06 21:59:24 ranger Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.70 2012/04/30 08:50:52 nelchael Exp $
30 +
31 +*mercurial-2.1.2 (30 Apr 2012)
32 +
33 + 30 Apr 2012; Krzysztof Pawlik <nelchael@g.o> +mercurial-2.1.2.ebuild:
34 + Version bump.
35
36 06 Mar 2012; Brent Baude <ranger@g.o> mercurial-2.0.ebuild:
37 Marking mercurial-2.0 ppc64 for bug 393265
38
39
40
41 1.1 dev-vcs/mercurial/mercurial-2.1.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-2.1.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-2.1.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mercurial-2.1.2.ebuild
47 ===================================================================
48 # Copyright 1999-2012 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.1.2.ebuild,v 1.1 2012/04/30 08:50:52 nelchael Exp $
51
52 EAPI=3
53 PYTHON_DEPEND="2"
54 PYTHON_USE_WITH="threads"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
57
58 inherit bash-completion-r1 elisp-common eutils distutils
59
60 DESCRIPTION="Scalable distributed SCM"
61 HOMEPAGE="http://mercurial.selenic.com/"
62 SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~x64-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
67 IUSE="bugzilla emacs gpg test tk zsh-completion"
68
69 RDEPEND="bugzilla? ( dev-python/mysql-python )
70 gpg? ( app-crypt/gnupg )
71 tk? ( dev-lang/tk )
72 zsh-completion? ( app-shells/zsh )"
73 DEPEND="emacs? ( virtual/emacs )
74 test? ( app-arch/unzip
75 dev-python/pygments )"
76
77 PYTHON_CFLAGS=(
78 "2.* + -fno-strict-aliasing"
79 "* - -ftracer -ftree-vectorize"
80 )
81
82 PYTHON_MODNAME="${PN} hgext"
83 SITEFILE="70${PN}-gentoo.el"
84
85 src_prepare() {
86 distutils_src_prepare
87
88 # fix up logic that won't work in Gentoo Prefix (also won't outside in
89 # certain cases), bug #362891
90 sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
91 }
92
93 src_compile() {
94 distutils_src_compile
95
96 if use emacs; then
97 cd "${S}"/contrib || die
98 elisp-compile mercurial.el || die "elisp-compile failed!"
99 fi
100
101 rm -rf contrib/{win32,macosx} || die
102 }
103
104 src_install() {
105 distutils_src_install
106
107 newbashcomp contrib/bash_completion ${PN} || die
108
109 if use zsh-completion ; then
110 insinto /usr/share/zsh/site-functions
111 newins contrib/zsh_completion _hg || die
112 fi
113
114 rm -f doc/*.?.txt || die
115 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt || die
116 cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
117
118 dobin hgeditor || die
119 dobin contrib/hgk || die
120 dobin contrib/hg-ssh || die
121
122 rm -f contrib/hgk contrib/hg-ssh || die
123
124 rm -f contrib/bash_completion || die
125 cp -r contrib "${ED}"/usr/share/doc/${PF}/ || die
126 doman doc/*.? || die
127
128 cat > "${T}/80mercurial" <<-EOF
129 HG="${EPREFIX}/usr/bin/hg"
130 EOF
131 doenvd "${T}/80mercurial" || die
132
133 if use emacs; then
134 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
135 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
136 fi
137 }
138
139 src_test() {
140 cd "${S}/tests/" || die
141 rm -rf *svn* || die # Subversion tests fail with 1.5
142 rm -f test-archive || die # Fails due to verbose tar output changes
143 rm -f test-convert-baz* || die # GNU Arch baz
144 rm -f test-convert-cvs* || die # CVS
145 rm -f test-convert-darcs* || die # Darcs
146 rm -f test-convert-git* || die # git
147 rm -f test-convert-mtn* || die # monotone
148 rm -f test-convert-tla* || die # GNU Arch tla
149 rm -f test-doctest* || die # doctest always fails with python 2.5.x
150 if [[ ${EUID} -eq 0 ]]; then
151 einfo "Removing tests which require user privileges to succeed"
152 rm -f test-command-template || die # Test is broken when run as root
153 rm -f test-convert || die # Test is broken when run as root
154 rm -f test-lock-badness || die # Test is broken when run as root
155 rm -f test-permissions || die # Test is broken when run as root
156 rm -f test-pull-permission || die # Test is broken when run as root
157 rm -f test-clone-failure || die
158 rm -f test-journal-exists || die
159 rm -f test-repair-strip || die
160 fi
161
162 testing() {
163 local testdir="${T}/tests-${PYTHON_ABI}"
164 rm -rf "${testdir}" || die
165 "$(PYTHON)" run-tests.py --tmpdir="${testdir}"
166 }
167 python_execute_function testing
168 }
169
170 pkg_postinst() {
171 distutils_pkg_postinst
172 use emacs && elisp-site-regen
173
174 elog "If you want to convert repositories from other tools using convert"
175 elog "extension please install correct tool:"
176 elog " dev-vcs/cvs"
177 elog " dev-vcs/darcs"
178 elog " dev-vcs/git"
179 elog " dev-vcs/monotone"
180 elog " dev-vcs/subversion"
181 }
182
183 pkg_postrm() {
184 distutils_pkg_postrm
185 use emacs && elisp-site-regen
186 }