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: mercurial-3.0.ebuild ChangeLog
Date: Fri, 02 May 2014 06:58:52
Message-Id: 20140502065700.3C8E52004C@flycatcher.gentoo.org
1 djc 14/05/02 06:57:00
2
3 Modified: ChangeLog
4 Added: mercurial-3.0.ebuild
5 Log:
6 Version bump mercurial to 3.0
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 30380381)
9
10 Revision Changes Path
11 1.144 dev-vcs/mercurial/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.144&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.144&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?r1=1.143&r2=1.144
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v
20 retrieving revision 1.143
21 retrieving revision 1.144
22 diff -u -r1.143 -r1.144
23 --- ChangeLog 2 Apr 2014 14:44:13 -0000 1.143
24 +++ ChangeLog 2 May 2014 06:57:00 -0000 1.144
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/mercurial
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.143 2014/04/02 14:44:13 polynomial-c Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.144 2014/05/02 06:57:00 djc Exp $
30 +
31 +*mercurial-3.0 (02 May 2014)
32 +
33 + 02 May 2014; Dirkjan Ochtman <djc@g.o> +mercurial-3.0.ebuild:
34 + Version bump mercurial to 3.0
35
36 *mercurial-2.9.2 (02 Apr 2014)
37
38
39
40
41 1.1 dev-vcs/mercurial/mercurial-3.0.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-3.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-3.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mercurial-3.0.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-3.0.ebuild,v 1.1 2014/05/02 06:57:00 djc 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"
67
68 RDEPEND="bugzilla? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
69 gpg? ( app-crypt/gnupg )
70 tk? ( dev-lang/tk )
71 app-misc/ca-certificates"
72 DEPEND="emacs? ( virtual/emacs )
73 test? ( app-arch/unzip
74 dev-python/pygments[${PYTHON_USEDEP}] )"
75
76 SITEFILE="70${PN}-gentoo.el"
77
78 python_prepare_all() {
79 # fix up logic that won't work in Gentoo Prefix (also won't outside in
80 # certain cases), bug #362891
81 sed -i -e 's:xcodebuild:nocodebuild:' setup.py || die
82
83 distutils-r1_python_prepare_all
84 }
85
86 python_configure_all() {
87 strip-flags -ftracer -ftree-vectorize
88 # Note: make it impl-conditional if py3 is supported
89 append-flags -fno-strict-aliasing
90
91 "${PYTHON}" setup.py build_mo || die
92 }
93
94 python_compile_all() {
95 rm -r contrib/{win32,macosx} || die
96 if use emacs; then
97 cd contrib || die
98 elisp-compile mercurial.el || die "elisp-compile failed!"
99 fi
100 }
101
102 python_install_all() {
103 distutils-r1_python_install_all
104
105 newbashcomp contrib/bash_completion hg
106
107 insinto /usr/share/zsh/site-functions
108 newins contrib/zsh_completion _hg
109
110 rm -f doc/*.?.txt
111 dodoc CONTRIBUTORS
112 cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/ || die
113
114 dobin hgeditor
115 dobin contrib/hgk
116 python_foreach_impl python_doscript contrib/hg-ssh
117
118 if use emacs; then
119 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
120 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
121 fi
122
123 local RM_CONTRIB=(hgk hg-ssh bash_completion zsh_completion wix buildrpm plan9
124 *.el mercurial.spec)
125 for f in ${RM_CONTRIB[@]}; do
126 rm -r contrib/$f || die
127 done
128
129 dodoc -r contrib
130 docompress -x /usr/share/doc/${PF}/contrib
131 doman doc/*.?
132
133 cat > "${T}/80mercurial" <<-EOF
134 HG="${EPREFIX}/usr/bin/hg"
135 EOF
136 doenvd "${T}/80mercurial"
137
138 insinto /etc/mercurial/hgrc.d
139 doins "${FILESDIR}/cacerts.rc"
140 }
141
142 src_test() {
143 pushd tests &>/dev/null || die
144 rm -rf *svn* # Subversion tests fail with 1.5
145 rm -f test-archive* # Fails due to verbose tar output changes
146 rm -f test-convert-baz* # GNU Arch baz
147 rm -f test-convert-cvs* # CVS
148 rm -f test-convert-darcs* # Darcs
149 rm -f test-convert-git* # git
150 rm -f test-convert-mtn* # monotone
151 rm -f test-convert-tla* # GNU Arch tla
152 #rm -f test-doctest* # doctest always fails with python 2.5.x
153 rm -f test-largefiles* # tends to time out
154
155 popd &>/dev/null || die
156 distutils-r1_src_test
157 }
158
159 python_test() {
160 local TEST_DIR
161
162 rm -rf "${TMPDIR}"/test
163 distutils_install_for_testing
164 cd tests || die
165 "${PYTHON}" run-tests.py --verbose \
166 --tmpdir="${TMPDIR}"/test \
167 --with-hg="${TEST_DIR}"/scripts/hg \
168 || die "Tests fail with ${EPYTHON}"
169 }
170
171 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 use emacs && elisp-site-regen
185 }