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