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.3.ebuild
Date: Mon, 01 Feb 2010 20:32:01
Message-Id: E1Nc2w8-0005c9-1L@stork.gentoo.org
1 djc 10/02/01 20:31:56
2
3 Modified: ChangeLog
4 Added: mercurial-1.4.3.ebuild
5 Log:
6 Version bump to 1.4.3.
7 (Portage version: 2.1.7.16/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.124 dev-util/mercurial/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?rev=1.124&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?rev=1.124&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?r1=1.123&r2=1.124
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v
19 retrieving revision 1.123
20 retrieving revision 1.124
21 diff -u -r1.123 -r1.124
22 --- ChangeLog 1 Feb 2010 19:49:41 -0000 1.123
23 +++ ChangeLog 1 Feb 2010 20:31:55 -0000 1.124
24 @@ -1,6 +1,11 @@
25 # ChangeLog for dev-util/mercurial
26 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.123 2010/02/01 19:49:41 djc Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.124 2010/02/01 20:31:55 djc Exp $
29 +
30 +*mercurial-1.4.3 (01 Feb 2010)
31 +
32 + 01 Feb 2010; Dirkjan Ochtman <djc@g.o> +mercurial-1.4.3.ebuild:
33 + Newly released 1.4.3.
34
35 01 Feb 2010; Dirkjan Ochtman <djc@g.o> -mercurial-1.2.1.ebuild,
36 -mercurial-1.3.1-r1.ebuild:
37
38
39
40 1.1 dev-util/mercurial/mercurial-1.4.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/mercurial-1.4.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/mercurial-1.4.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mercurial-1.4.3.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-util/mercurial/mercurial-1.4.3.ebuild,v 1.1 2010/02/01 20:31:55 djc Exp $
50
51 EAPI=2
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"
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 "${D}"/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 "${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 }