annotate dev-util/mercurial/mercurial-1.0.ebuild @ 1:dab1199d9829

hg 1.0 :-)
author holger@hoho.dyndns.org
date Tue, 25 Mar 2008 16:58:48 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
1 # Copyright 1999-2008 Gentoo Foundation
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/mercurial/mercurial-0.9.5-r1.ebuild,v 1.5 2008/01/21 09:36:03 nelchael Exp $
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
4
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
5 inherit bash-completion distutils elisp-common flag-o-matic eutils
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
6
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
7 DESCRIPTION="Scalable distributed SCM"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
8 HOMEPAGE="http://www.selenic.com/mercurial/"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
9 SRC_URI="http://www.selenic.com/mercurial/release/${P}.tar.gz"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
10
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
11 LICENSE="GPL-2"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
12 SLOT="0"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
13 KEYWORDS="alpha amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
14 IUSE="bugzilla cvs darcs emacs git gpg subversion test zsh-completion"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
15
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
16 CDEPEND=">=dev-lang/python-2.3"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
17 RDEPEND="${CDEPEND}
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
18 bugzilla? ( dev-python/mysql-python )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
19 cvs? ( dev-util/cvs )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
20 darcs? ( || ( dev-python/celementtree dev-python/elementtree ) )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
21 git? ( dev-util/git )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
22 gpg? ( app-crypt/gnupg )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
23 subversion? ( dev-util/subversion )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
24 zsh-completion? ( app-shells/zsh )"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
25 DEPEND="${CDEPEND}
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
26 emacs? ( virtual/emacs )
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
27 test? ( app-arch/unzip )"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
28
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
29 PYTHON_MODNAME="${PN} hgext"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
30 SITEFILE="70${PN}-gentoo.el"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
31
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
32 src_unpack() {
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
33 distutils_src_unpack
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
34 }
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
35
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
36 src_compile() {
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
37 filter-flags -ftracer -ftree-vectorize
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
38
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
39 distutils_src_compile
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
40
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
41 if use emacs; then
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
42 cd "${S}"/contrib
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
43 elisp-compile mercurial.el || die "elisp-compile failed!"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
44 fi
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
45
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
46 rm -rf contrib/{win32,macosx}
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
47 }
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
48
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
49 src_install() {
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
50 distutils_src_install
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
51
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
52 dobashcompletion contrib/bash_completion ${PN}
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
53
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
54 if use zsh-completion ; then
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
55 insinto /usr/share/zsh/site-functions
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
56 newins contrib/zsh_completion _hg
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
57 fi
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
58
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
59 dodoc CONTRIBUTORS PKG-INFO README doc/*.txt
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
60 cp hgweb*.cgi "${D}"/usr/share/doc/${PF}/
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
61 rm -f contrib/bash_completion
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
62 cp -r contrib "${D}"/usr/share/doc/${PF}/
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
63 doman doc/*.?
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
64
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
65 if use emacs; then
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
66 elisp-install ${PN} contrib/mercurial.el* || die "elisp-install failed!"
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
67 elisp-site-file-install "${FILESDIR}"/${SITEFILE}
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
68 fi
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
69 }
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
70
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
71 pkg_postinst() {
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
72 distutils_pkg_postinst
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
73 use emacs && elisp-site-regen
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
74 bash-completion_pkg_postinst
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
75 }
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
76
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
77 pkg_postrm() {
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
78 distutils_pkg_postrm
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
79 use emacs && elisp-site-regen
dab1199d9829 hg 1.0 :-)
holger@hoho.dyndns.org
parents:
diff changeset
80 }