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-1.7.3.ebuild
Date: Sun, 02 Jan 2011 18:32:08
Message-Id: 20110102183157.827F820054@flycatcher.gentoo.org
1 djc 11/01/02 18:31:57
2
3 Modified: ChangeLog
4 Added: mercurial-1.7.3.ebuild
5 Log:
6 Version bump to 1.7.3.
7
8 (Portage version: 2.1.9.26/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.33 dev-vcs/mercurial/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.33&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.33&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?r1=1.32&r2=1.33
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v
20 retrieving revision 1.32
21 retrieving revision 1.33
22 diff -u -r1.32 -r1.33
23 --- ChangeLog 26 Dec 2010 13:45:10 -0000 1.32
24 +++ ChangeLog 2 Jan 2011 18:31:57 -0000 1.33
25 @@ -1,6 +1,11 @@
26 # ChangeLog for dev-vcs/mercurial
27 -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.32 2010/12/26 13:45:10 maekke Exp $
29 +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.33 2011/01/02 18:31:57 djc Exp $
31 +
32 +*mercurial-1.7.3 (02 Jan 2011)
33 +
34 + 02 Jan 2011; Dirkjan Ochtman <djc@g.o> +mercurial-1.7.3.ebuild:
35 + Version bump to 1.7.3.
36
37 26 Dec 2010; Markus Meier <maekke@g.o> mercurial-1.7.ebuild:
38 arm stable, bug #348499
39
40
41
42 1.1 dev-vcs/mercurial/mercurial-1.7.3.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-1.7.3.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-1.7.3.ebuild?rev=1.1&content-type=text/plain
46
47 Index: mercurial-1.7.3.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-1.7.3.ebuild,v 1.1 2011/01/02 18:31: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.*"
58
59 inherit bash-completion 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 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~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 DEPEND="emacs? ( virtual/emacs )
75 test? ( app-arch/unzip
76 dev-python/pygments )"
77
78 PYTHON_CFLAGS=(
79 "2.* + -fno-strict-aliasing"
80 "* - -ftracer -ftree-vectorize"
81 )
82
83 PYTHON_MODNAME="${PN} hgext"
84 SITEFILE="70${PN}-gentoo.el"
85
86 src_compile() {
87 distutils_src_compile
88
89 if use emacs; then
90 cd "${S}"/contrib
91 elisp-compile mercurial.el || die "elisp-compile failed!"
92 fi
93
94 rm -rf contrib/{win32,macosx}
95 }
96
97 src_install() {
98 distutils_src_install
99
100 dobashcompletion contrib/bash_completion ${PN}
101
102 if use zsh-completion ; then
103 insinto /usr/share/zsh/site-functions
104 newins contrib/zsh_completion _hg
105 fi
106
107 rm -f doc/*.?.txt
108 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt
109 cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/
110
111 dobin hgeditor
112 dobin contrib/hgk
113 dobin contrib/hg-ssh
114
115 rm -f contrib/hgk contrib/hg-ssh
116
117 rm -f contrib/bash_completion
118 cp -r contrib "${ED}"/usr/share/doc/${PF}/
119 doman doc/*.?
120
121 cat > "${T}/80mercurial" <<-EOF
122 HG="${EPREFIX}/usr/bin/hg"
123 EOF
124 doenvd "${T}/80mercurial"
125
126 if use emacs; then
127 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
128 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
129 fi
130 }
131
132 src_test() {
133 cd "${S}/tests/"
134 rm -rf *svn* # Subversion tests fail with 1.5
135 rm -f test-archive # Fails due to verbose tar output changes
136 rm -f test-convert-baz* # GNU Arch baz
137 rm -f test-convert-cvs* # CVS
138 rm -f test-convert-darcs* # Darcs
139 rm -f test-convert-git* # git
140 rm -f test-convert-mtn* # monotone
141 rm -f test-convert-tla* # GNU Arch tla
142 rm -f test-doctest* # doctest always fails with python 2.5.x
143 if [[ ${EUID} -eq 0 ]]; then
144 einfo "Removing tests which require user privileges to succeed"
145 rm -f test-command-template # Test is broken when run as root
146 rm -f test-convert # Test is broken when run as root
147 rm -f test-lock-badness # Test is broken when run as root
148 rm -f test-permissions # Test is broken when run as root
149 rm -f test-pull-permission # Test is broken when run as root
150 rm -f test-clone-failure
151 rm -f test-journal-exists
152 rm -f test-repair-strip
153 fi
154
155 testing() {
156 local testdir="${T}/tests-${PYTHON_ABI}"
157 rm -rf "${testdir}"
158 "$(PYTHON)" run-tests.py -j4 --tmpdir="${testdir}"
159 }
160 python_execute_function testing
161 }
162
163 pkg_postinst() {
164 distutils_pkg_postinst
165 use emacs && elisp-site-regen
166 bash-completion_pkg_postinst
167
168 elog "If you want to convert repositories from other tools using convert"
169 elog "extension please install correct tool:"
170 elog " dev-vcs/cvs"
171 elog " dev-vcs/darcs"
172 elog " dev-vcs/git"
173 elog " dev-vcs/monotone"
174 elog " dev-vcs/subversion"
175 }
176
177 pkg_postrm() {
178 distutils_pkg_postrm
179 use emacs && elisp-site-regen
180 }