Gentoo Archives: gentoo-commits

From: "Krzysiek Pawlik (nelchael)" <nelchael@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/mercurial: ChangeLog mercurial-1.3.ebuild
Date: Thu, 02 Jul 2009 20:10:05
Message-Id: E1MMSay-0007Tx-4F@stork.gentoo.org
1 nelchael 09/07/02 20:09:24
2
3 Modified: ChangeLog
4 Added: mercurial-1.3.ebuild
5 Log:
6 Version bump.
7 (Portage version: 2.1.6.13/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.99 dev-util/mercurial/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?rev=1.99&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?rev=1.99&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/ChangeLog?r1=1.98&r2=1.99
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v
19 retrieving revision 1.98
20 retrieving revision 1.99
21 diff -u -r1.98 -r1.99
22 --- ChangeLog 16 May 2009 16:47:42 -0000 1.98
23 +++ ChangeLog 2 Jul 2009 20:09:24 -0000 1.99
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.98 2009/05/16 16:47:42 nelchael Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/ChangeLog,v 1.99 2009/07/02 20:09:24 nelchael Exp $
29 +
30 +*mercurial-1.3 (02 Jul 2009)
31 +
32 + 02 Jul 2009; Krzysiek Pawlik <nelchael@g.o> +mercurial-1.3.ebuild:
33 + Version bump.
34
35 16 May 2009; Krzysiek Pawlik <nelchael@g.o>
36 -mercurial-1.0.2.ebuild, -mercurial-1.2.ebuild:
37
38
39
40 1.1 dev-util/mercurial/mercurial-1.3.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/mercurial-1.3.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/mercurial/mercurial-1.3.ebuild?rev=1.1&content-type=text/plain
44
45 Index: mercurial-1.3.ebuild
46 ===================================================================
47 # Copyright 1999-2009 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.3.ebuild,v 1.1 2009/07/02 20:09:24 nelchael Exp $
50
51 inherit bash-completion elisp-common flag-o-matic eutils distutils
52
53 DESCRIPTION="Scalable distributed SCM"
54 HOMEPAGE="http://mercurial.selenic.com/"
55 SRC_URI="http://mercurial.selenic.com/release/${P}.tar.gz"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
60 IUSE="bugzilla emacs gpg test tk zsh-completion"
61
62 CDEPEND=">=dev-lang/python-2.4"
63 RDEPEND="${CDEPEND}
64 bugzilla? ( dev-python/mysql-python )
65 gpg? ( app-crypt/gnupg )
66 tk? ( dev-lang/tk )
67 zsh-completion? ( app-shells/zsh )"
68 DEPEND="${CDEPEND}
69 emacs? ( virtual/emacs )
70 test? ( app-arch/unzip
71 dev-python/pygments )"
72
73 PYTHON_MODNAME="${PN} hgext"
74 SITEFILE="70${PN}-gentoo.el"
75
76 src_compile() {
77 filter-flags -ftracer -ftree-vectorize
78
79 distutils_src_compile
80
81 if use emacs; then
82 cd "${S}"/contrib
83 elisp-compile mercurial.el || die "elisp-compile failed!"
84 fi
85
86 rm -rf contrib/{win32,macosx}
87 }
88
89 src_install() {
90 distutils_src_install
91
92 dobashcompletion contrib/bash_completion ${PN}
93
94 if use zsh-completion ; then
95 insinto /usr/share/zsh/site-functions
96 newins contrib/zsh_completion _hg
97 fi
98
99 rm -f doc/*.?.txt
100 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt
101 cp hgweb*.cgi "${D}"/usr/share/doc/${PF}/
102
103 dobin contrib/hgk
104 dobin contrib/hg-relink
105 dobin contrib/hg-ssh
106
107 rm -f contrib/hgk contrib/hg-relink contrib/hg-ssh
108
109 rm -f contrib/bash_completion
110 cp -r contrib "${D}"/usr/share/doc/${PF}/
111 doman doc/*.?
112
113 cat > "${T}/80mercurial" <<-EOF
114 HG=/usr/bin/hg
115 EOF
116 doenvd "${T}/80mercurial"
117
118 if use emacs; then
119 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
120 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
121 fi
122 }
123
124 src_test() {
125 local testdir="${T}/tests"
126 mkdir -p -m1777 "${testdir}" || die
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 ! has userpriv ${FEATURES}; 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 einfo "Running Mercurial tests ..."
146 python run-tests.py --tmpdir="${testdir}" || die "test failed"
147 }
148
149 pkg_postinst() {
150 distutils_pkg_postinst
151 use emacs && elisp-site-regen
152 bash-completion_pkg_postinst
153
154 elog "If you want to convert repositories from other tools using convert"
155 elog "extension please install correct tool:"
156 elog " dev-util/cvs"
157 elog " dev-util/darcs"
158 elog " dev-util/git"
159 elog " dev-util/monotone"
160 elog " dev-util/subversion"
161 }
162
163 pkg_postrm() {
164 distutils_pkg_postrm
165 use emacs && elisp-site-regen
166 }