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.6.ebuild
Date: Thu, 01 Jul 2010 19:27:50
Message-Id: 20100701192746.59C092C621@corvid.gentoo.org
1 djc 10/07/01 19:27:45
2
3 Modified: ChangeLog
4 Added: mercurial-1.6.ebuild
5 Log:
6 Version bump dev-vcs/mercurial to 1.6.
7 (Portage version: 2.1.8.3/cvs/Linux x86_64, RepoMan options: --force)
8
9 Revision Changes Path
10 1.19 dev-vcs/mercurial/ChangeLog
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.19&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?rev=1.19&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/ChangeLog?r1=1.18&r2=1.19
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v
19 retrieving revision 1.18
20 retrieving revision 1.19
21 diff -u -r1.18 -r1.19
22 --- ChangeLog 25 Jun 2010 17:13:06 -0000 1.18
23 +++ ChangeLog 1 Jul 2010 19:27:44 -0000 1.19
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-vcs/mercurial
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.18 2010/06/25 17:13:06 armin76 Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/ChangeLog,v 1.19 2010/07/01 19:27:44 djc Exp $
29 +
30 +*mercurial-1.6 (01 Jul 2010)
31 +
32 + 01 Jul 2010; Dirkjan Ochtman <djc@g.o> +mercurial-1.6.ebuild:
33 + Version bump to 1.6.
34
35 25 Jun 2010; Raúl Porcel <armin76@g.o> mercurial-1.5.ebuild:
36 alpha/arm/ia64/sparc stable wrt #314945
37
38
39
40 1.1 dev-vcs/mercurial/mercurial-1.6.ebuild
41
42 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-1.6.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/mercurial/mercurial-1.6.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mercurial-1.6.ebuild
46 ===================================================================
47 # Copyright 1999-2010 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/dev-vcs/mercurial/mercurial-1.6.ebuild,v 1.1 2010/07/01 19:27:44 djc Exp $
50
51 EAPI=3
52
53 inherit bash-completion elisp-common flag-o-matic eutils distutils
54
55 DESCRIPTION="Scalable distributed SCM"
56 HOMEPAGE="http://mercurial.selenic.com/"
57 SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
58
59 LICENSE="GPL-2"
60 SLOT="0"
61 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"
62 IUSE="bugzilla emacs gpg test tk zsh-completion"
63
64 CDEPEND=">=dev-lang/python-2.4[threads]"
65 RDEPEND="${CDEPEND}
66 bugzilla? ( dev-python/mysql-python )
67 gpg? ( app-crypt/gnupg )
68 tk? ( dev-lang/tk )
69 zsh-completion? ( app-shells/zsh )"
70 DEPEND="${CDEPEND}
71 emacs? ( virtual/emacs )
72 test? ( app-arch/unzip
73 dev-python/pygments )"
74
75 PYTHON_MODNAME="${PN} hgext"
76 SITEFILE="70${PN}-gentoo.el"
77
78 src_compile() {
79 filter-flags -ftracer -ftree-vectorize
80
81 distutils_src_compile
82
83 if use emacs; then
84 cd "${S}"/contrib
85 elisp-compile mercurial.el || die "elisp-compile failed!"
86 fi
87
88 rm -rf contrib/{win32,macosx}
89 }
90
91 src_install() {
92 distutils_src_install
93
94 dobashcompletion contrib/bash_completion ${PN}
95
96 if use zsh-completion ; then
97 insinto /usr/share/zsh/site-functions
98 newins contrib/zsh_completion _hg
99 fi
100
101 rm -f doc/*.?.txt
102 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt
103 cp hgweb*.cgi "${ED}"/usr/share/doc/${PF}/
104
105 dobin hgeditor
106 dobin contrib/hgk
107 dobin contrib/hg-ssh
108
109 rm -f contrib/hgk contrib/hg-ssh
110
111 rm -f contrib/bash_completion
112 cp -r contrib "${ED}"/usr/share/doc/${PF}/
113 doman doc/*.?
114
115 cat > "${T}/80mercurial" <<-EOF
116 HG="${EPREFIX}/usr/bin/hg"
117 EOF
118 doenvd "${T}/80mercurial"
119
120 if use emacs; then
121 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
122 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
123 fi
124 }
125
126 src_test() {
127 cd "${S}/tests/"
128 rm -rf *svn* # Subversion tests fail with 1.5
129 rm -f test-archive # Fails due to verbose tar output changes
130 rm -f test-convert-baz* # GNU Arch baz
131 rm -f test-convert-cvs* # CVS
132 rm -f test-convert-darcs* # Darcs
133 rm -f test-convert-git* # git
134 rm -f test-convert-mtn* # monotone
135 rm -f test-convert-tla* # GNU Arch tla
136 rm -f test-doctest* # doctest always fails with python 2.5.x
137 if [[ ${EUID} -eq 0 ]]; then
138 einfo "Removing tests which require user privileges to succeed"
139 rm -f test-command-template # Test is broken when run as root
140 rm -f test-convert # Test is broken when run as root
141 rm -f test-lock-badness # Test is broken when run as root
142 rm -f test-permissions # Test is broken when run as root
143 rm -f test-pull-permission # Test is broken when run as root
144 rm -f test-clone-failure
145 rm -f test-journal-exists
146 rm -f test-repair-strip
147 fi
148 local testdir="${T}/tests"
149 rm -rf "${testdir}"
150 einfo "Running Mercurial tests ..."
151 python run-tests.py --tmpdir="${testdir}" || die "test failed"
152 }
153
154 pkg_postinst() {
155 distutils_pkg_postinst
156 use emacs && elisp-site-regen
157 bash-completion_pkg_postinst
158
159 elog "If you want to convert repositories from other tools using convert"
160 elog "extension please install correct tool:"
161 elog " dev-vcs/cvs"
162 elog " dev-vcs/darcs"
163 elog " dev-vcs/git"
164 elog " dev-vcs/monotone"
165 elog " dev-util/subversion"
166 }
167
168 pkg_postrm() {
169 distutils_pkg_postrm
170 use emacs && elisp-site-regen
171 }