summaryrefslogtreecommitdiff
blob: f30cd5136e381a0362ec6f75d609962a46b9fb2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Manages Emacs versions"
HOMEPAGE="http://www.gentoo.org/proj/en/lisp/emacs/"
MY_EU_P="emacs-updater-0.3"
SRC_URI="mirror://gentoo/${P}.tar.bz2
	http://dev.gentoo.org/~ulm/distfiles/${MY_EU_P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd"
IUSE=""

DEPEND=""
# Remove the blocker on emacs-updater when this goes into Portage
RDEPEND=">=app-admin/eselect-1.0.10
	!app-admin/emacs-updater"
# Now this should really be in RDEPEND, but it would result in blockers when
# updating from <=eselect-emacs-1.3. Leave it as PDEPEND for the time being.
PDEPEND="app-admin/eselect-ctags"

src_install() {
	insinto /usr/share/eselect/modules
	doins emacs.eselect || die "doins failed"
	doman emacs.eselect.5 || die "doman failed"
	dodoc ChangeLog || die "dodoc failed"

	dosbin "${WORKDIR}/${MY_EU_P}/emacs-updater" || die "dosbin failed"
}