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-util/mercurial: ChangeLog mercurial-1.4.2.ebuild
Date: Sat, 02 Jan 2010 09:16:30
Message-Id: E1NR05y-0000ti-Mb@stork.gentoo.org
1 djc 10/01/02 09:16:26
2
3 Modified: ChangeLog
4 Added: mercurial-1.4.2.ebuild
5 Log:
6 Version bump dev-util/mercurial to 1.4.2.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.115 dev-util/mercurial/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?rev=1.115&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?rev=1.115&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?r1=1.114&r2=1.115
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v
19 retrieving revision 1.114
20 retrieving revision 1.115
21 diff -u -r1.114 -r1.115
22 --- ChangeLog 24 Dec 2009 13:48:27 -0000 1.114
23 +++ ChangeLog 2 Jan 2010 09:16:26 -0000 1.115
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/mercurial
26 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.114 2009/12/24 13:48:27 djc Exp $
28 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.115 2010/01/02 09:16:26 djc Exp $
30 +
31 +*mercurial-1.4.2 (02 Jan 2010)
32 +
33 + 02 Jan 2010; Dirkjan Ochtman <djc@g.o> +mercurial-1.4.2.ebuild:
34 + Version bump to 1.4.2.
35
36 24 Dec 2009; Dirkjan Ochtman <djc@g.o> -mercurial-1.3.ebuild,
37 -mercurial-1.3.1.ebuild, -mercurial-1.4.ebuild:
38
39
40
41 1.1 dev-util/mercurial/mercurial-1.4.2.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/mercurial-1.4.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/mercurial-1.4.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: mercurial-1.4.2.ebuild
47 ===================================================================
48 # Copyright 1999-2010 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/mercurial-1.4.2.ebuild,v 1.1 2010/01/02 09:16:26 djc Exp $
51
52 EAPI=2
53
54 inherit bash-completion elisp-common flag-o-matic eutils distutils
55
56 DESCRIPTION="Scalable distributed SCM"
57 HOMEPAGE="http://mercurial.selenic.com/"
58 SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
59
60 LICENSE="GPL-2"
61 SLOT="0"
62 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
63 IUSE="bugzilla emacs gpg test tk zsh-completion"
64
65 CDEPEND=">=dev-lang/python-2.4[threads]"
66 RDEPEND="${CDEPEND}
67 bugzilla? ( dev-python/mysql-python )
68 gpg? ( app-crypt/gnupg )
69 tk? ( dev-lang/tk )
70 zsh-completion? ( app-shells/zsh )"
71 DEPEND="${CDEPEND}
72 emacs? ( virtual/emacs )
73 test? ( app-arch/unzip
74 dev-python/pygments )"
75
76 PYTHON_MODNAME="${PN} hgext"
77 SITEFILE="70${PN}-gentoo.el"
78
79 src_compile() {
80 filter-flags -ftracer -ftree-vectorize
81
82 distutils_src_compile
83
84 if use emacs; then
85 cd "${S}"/contrib
86 elisp-compile mercurial.el || die "elisp-compile failed!"
87 fi
88
89 rm -rf contrib/{win32,macosx}
90 }
91
92 src_install() {
93 distutils_src_install
94
95 dobashcompletion contrib/bash_completion ${PN}
96
97 if use zsh-completion ; then
98 insinto /usr/share/zsh/site-functions
99 newins contrib/zsh_completion _hg
100 fi
101
102 rm -f doc/*.?.txt
103 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt
104 cp hgweb*.cgi "${D}"/usr/share/doc/${PF}/
105
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 "${D}"/usr/share/doc/${PF}/
113 doman doc/*.?
114
115 cat > "${T}/80mercurial" <<-EOF
116 HG=/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 fi
145 local testdir="${T}/tests"
146 rm -rf "${testdir}"
147 einfo "Running Mercurial tests ..."
148 python run-tests.py --tmpdir="${testdir}" || die "test failed"
149 }
150
151 pkg_postinst() {
152 distutils_pkg_postinst
153 use emacs && elisp-site-regen
154 bash-completion_pkg_postinst
155
156 elog "If you want to convert repositories from other tools using convert"
157 elog "extension please install correct tool:"
158 elog " dev-util/cvs"
159 elog " dev-util/darcs"
160 elog " dev-util/git"
161 elog " dev-util/monotone"
162 elog " dev-util/subversion"
163 }
164
165 pkg_postrm() {
166 distutils_pkg_postrm
167 use emacs && elisp-site-regen
168 }