Gentoo Archives: gentoo-commits

From: "Dirkjan Ochtman (djc)" <djc@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-vcs/mercurial: ChangeLog mercurial-2.4.1-r1.ebuild
Date: Sun, 30 Dec 2012 15:22:08
Message-Id: 20121230152157.87AAD2171D@flycatcher.gentoo.org
1 djc 12/12/30 15:21:57
2
3 Modified: ChangeLog
4 Added: mercurial-2.4.1-r1.ebuild
5 Log:
6 Make Mercurial aware of cacerts by default (bug 429470).
7
8 (Portage version: 2.1.11.38/cvs/Linux x86_64, signed Manifest commit with key 6B065BFB)
9
10 Revision Changes Path
11 1.93 dev-vcs/mercurial/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.93&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.93&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?r1=1.92&r2=1.93
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v
20 retrieving revision 1.92
21 retrieving revision 1.93
22 diff -u -r1.92 -r1.93
23 --- ChangeLog 27 Dec 2012 18:47:52 -0000 1.92
24 +++ ChangeLog 30 Dec 2012 15:21:57 -0000 1.93
25 @@ -1,6 +1,12 @@
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.92 2012/12/27 18:47:52 ottxor Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.93 2012/12/30 15:21:57 djc Exp $
30 +
31 +*mercurial-2.4.1-r1 (30 Dec 2012)
32 +
33 + 30 Dec 2012; Dirkjan Ochtman <djc@g.o> +mercurial-2.4.1-r1.ebuild,
34 + +files/cacerts.rc:
35 + Make Mercurial aware of cacerts by default (bug 429470).
36
37 27 Dec 2012; Christoph Junghans <ottxor@g.o> mercurial-9999.ebuild:
38 mercurial.eclass respects now
39
40
41
42 1.1 dev-vcs/mercurial/mercurial-2.4.1-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-2.4.1-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-2.4.1-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mercurial-2.4.1-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2012 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-2.4.1-r1.ebuild,v 1.1 2012/12/30 15:21:57 djc Exp $
52
53 EAPI=3
54 PYTHON_DEPEND="2"
55 PYTHON_USE_WITH="threads"
56 SUPPORT_PYTHON_ABIS="1"
57 RESTRICT_PYTHON_ABIS="3.* *-jython 2.7-pypy-*"
58
59 inherit bash-completion-r1 elisp-common eutils distutils
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 ~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 )
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 )"
78
79 PYTHON_CFLAGS=(
80 "2.* + -fno-strict-aliasing"
81 "* - -ftracer -ftree-vectorize"
82 )
83
84 PYTHON_MODNAME="${PN} hgext"
85 SITEFILE="70${PN}-gentoo.el"
86
87 src_prepare() {
88 distutils_src_prepare
89
90 # fix up logic that won't work in Gentoo Prefix (also won't outside in
91 # certain cases), bug #362891
92 sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
93 }
94
95 src_compile() {
96 distutils_src_compile
97
98 if use emacs; then
99 cd "${S}"/contrib || die
100 elisp-compile mercurial.el || die "elisp-compile failed!"
101 fi
102
103 rm -rf contrib/{win32,macosx} || die
104 }
105
106 src_install() {
107 distutils_src_install
108 python_convert_shebangs 2 contrib/hg-ssh
109
110 newbashcomp contrib/bash_completion ${PN} || die
111
112 if use zsh-completion ; then
113 insinto /usr/share/zsh/site-functions
114 newins contrib/zsh_completion _hg || die
115 fi
116
117 rm -f doc/*.?.txt || die
118 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt || die
119 cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
120
121 dobin hgeditor || die
122 dobin contrib/hgk || die
123 dobin contrib/hg-ssh || die
124
125 rm -f contrib/hgk contrib/hg-ssh || die
126
127 rm -f contrib/bash_completion || die
128 cp -r contrib "${ED}"/usr/share/doc/${PF}/ || die
129 doman doc/*.? || die
130
131 cat > "${T}/80mercurial" <<-EOF
132 HG="${EPREFIX}/usr/bin/hg"
133 EOF
134 doenvd "${T}/80mercurial" || die
135
136 if use emacs; then
137 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
138 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
139 fi
140
141 insinto /etc/mercurial/hgrc.d
142 doins "${FILESDIR}/cacerts.rc"
143 }
144
145 src_test() {
146 cd "${S}/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 if [[ ${EUID} -eq 0 ]]; then
157 einfo "Removing tests which require user privileges to succeed"
158 rm -f test-command-template || die # Test is broken when run as root
159 rm -f test-convert || die # Test is broken when run as root
160 rm -f test-lock-badness || die # Test is broken when run as root
161 rm -f test-permissions || die # Test is broken when run as root
162 rm -f test-pull-permission || die # Test is broken when run as root
163 rm -f test-clone-failure || die
164 rm -f test-journal-exists || die
165 rm -f test-repair-strip || die
166 fi
167
168 testing() {
169 local testdir="${T}/tests-${PYTHON_ABI}"
170 rm -rf "${testdir}" || die
171 "$(PYTHON)" run-tests.py --tmpdir="${testdir}"
172 }
173 python_execute_function testing
174 }
175
176 pkg_postinst() {
177 distutils_pkg_postinst
178 use emacs && elisp-site-regen
179
180 elog "If you want to convert repositories from other tools using convert"
181 elog "extension please install correct tool:"
182 elog " dev-vcs/cvs"
183 elog " dev-vcs/darcs"
184 elog " dev-vcs/git"
185 elog " dev-vcs/monotone"
186 elog " dev-vcs/subversion"
187 }
188
189 pkg_postrm() {
190 distutils_pkg_postrm
191 use emacs && elisp-site-regen
192 }