|
Lines 1-22
Link Here
|
| 1 |
# Copyright 1999-2006 Gentoo Foundation |
1 |
# Copyright 1999-2006 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/dev-util/bzr/bzr-0.6.2.ebuild,v 1.1 2006/01/07 01:20:43 arj Exp $ |
3 |
# $Header: $ |
|
|
4 |
|
| 5 |
inherit distutils elisp-common |
| 4 |
|
6 |
|
| 5 |
inherit distutils |
|
|
| 6 |
MY_P="bzr-${PV}" |
| 7 |
PYTHON_MODNAME="bzrlib" |
7 |
PYTHON_MODNAME="bzrlib" |
| 8 |
DESCRIPTION="next generation distributed version control" |
8 |
DESCRIPTION="next generation distributed version control" |
| 9 |
HOMEPAGE="http://bazaar-ng.org/" |
9 |
HOMEPAGE="http://bazaar-ng.org/" |
| 10 |
SRC_URI="http://bazaar-ng.org/pkg/${MY_P}.tar.gz" |
10 |
SRC_URI="http://bazaar-ng.org/pkg/${P}.tar.gz" |
| 11 |
LICENSE="GPL-2" |
11 |
LICENSE="GPL-2" |
| 12 |
SLOT="0" |
12 |
SLOT="0" |
| 13 |
KEYWORDS="~amd64 ~ppc ~x86" |
13 |
KEYWORDS="~x86" |
| 14 |
IUSE="" |
14 |
IUSE="emacs" |
| 15 |
DEPEND=">=dev-lang/python-2.4 |
15 |
DEPEND=">=dev-lang/python-2.4 |
| 16 |
dev-python/elementtree" |
16 |
dev-python/elementtree |
| 17 |
S="${WORKDIR}/${MY_P}" |
17 |
emacs? ( virtual/emacs )" |
|
|
18 |
|
| 19 |
src_compile() { |
| 20 |
distutils_src_compile |
| 21 |
if use emacs; then |
| 22 |
einfo "Compiling Emacs support..." |
| 23 |
elisp-compile ${S}/contrib/emacs/bzr-mode.el || die "Emacs modules failed!" |
| 24 |
fi |
| 25 |
} |
| 26 |
|
| 27 |
src_install() { |
| 28 |
distutils_src_install |
| 29 |
if use emacs; then |
| 30 |
insinto /usr/share/emacs/site-lisp |
| 31 |
doins contrib/emacs/bzr-mode.el* |
| 32 |
elisp-site-file-install ${FILESDIR}/70bzr-gentoo.el |
| 33 |
fi |
| 34 |
} |
| 18 |
|
35 |
|
| 19 |
pkg_postinst() { |
36 |
pkg_postinst() { |
| 20 |
distutils_pkg_postinst |
37 |
distutils_pkg_postinst |
|
|
38 |
euse emacs && elisp-site-regen |
| 21 |
einfo "You may optionally \033[1memerge dev-python/celementtree\033[0m for faster processing." |
39 |
einfo "You may optionally \033[1memerge dev-python/celementtree\033[0m for faster processing." |
| 22 |
} |
40 |
} |
|
|
41 |
|
| 42 |
pkg_postrm() { |
| 43 |
distutils_pkg_postrm |
| 44 |
has_version virtual/emacs && elisp-site-regen |
| 45 |
} |