summaryrefslogtreecommitdiff
blob: d5d5578b8e6f8dfa7a3c2a48b6549666d66bba5e (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/cedet/cedet-1.0_beta3.ebuild,v 1.3 2004/08/01 20:55:58 dholm Exp $

inherit elisp

MY_SUBPV=a
MY_PV=${PV:0:3}${PV:4:5}${MY_SUBPV}

IUSE=""
DESCRIPTION="CEDET: Collection of Emacs Development Tools"
HOMEPAGE="http://cedet.sourceforge.net/"
SRC_URI="mirror://sourceforge/cedet/${PN}-${MY_PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
DEPEND="virtual/emacs
	!app-emacs/semantic
	!app-emacs/eieio
	!app-emacs/speedbar"

S="${WORKDIR}/${PN}-${MY_PV}"

SITEFILE="60cedet-gentoo.el"

src_compile() {
	make EMACS=/usr/bin/emacs || die
}

src_install() {
	dodir /usr/share/emacs/site-lisp/cedet
	tar --create --verbose \
		--exclude=Makefile \
		--exclude=\*texi \
		--exclude=\*info\* \
		--exclude=README \
		--exclude=INSTALL \
		--exclude=\*NEWS \
		--exclude=ChangeLog \
		--exclude=\*~ \
		. | tar --extract --directory ${D}/usr/share/emacs/site-lisp/cedet/
	dodoc INSTALL
	doinfo `find . -type f -name \*.info\*`
	# The following finds documentation in sub-directories and flattens
	# the path names for dodoc
	mkdir docs || true
	find . -type f \( -name ChangeLog -o -name README -o -name AUTHORS -o -name \*NEWS \) -print \
		| sed -e 's,^./\(.*\)/\(.*\),cp \0 docs/\2.\1,g' \
		| sh -x
	dodoc docs/*
	elisp-site-file-install ${FILESDIR}/${SITEFILE}
}