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
53
54
55
56
57
58
59
60
61
62
63
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emacs/ecb/ecb-1.80.ebuild,v 1.1 2002/11/01 02:52:01 mkennedy Exp $
inherit elisp
IUSE=""
DESCRIPTION="ECB is source code browser for Emacs. It is a global minor-mode which displays a couple of windows that can be used to browse directories, files and methods. It supports method parsing for Java, C, C++, Elisp etc."
HOMEPAGE="http://home.swipnet.se/mayhem/ecb.html"
SRC_URI="mirror://sourceforge/ecb/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
DEPEND="virtual/emacs
app-emacs/speedbar
app-emacs/eieio
app-emacs/jde
app-emacs/elib
app-misc/fixdos"
S="${WORKDIR}/${P}"
src_unpack() {
unpack ${A}
cd ${S}
patch -p0 <${FILESDIR}/ecb.texi-gentoo.patch || die
patch -p0 <${FILESDIR}/ecb-help.el-gentoo.patch || die
sed -e "s,@ECBINFOFILE@,/usr/share/info/ecb.info.gz,g" <ecb-help.el >ecb-help.el.new && \
mv ecb-help.el.new ecb-help.el
sed -e "s,@ECBHTMLFILE@,/usr/share/doc/${P}/html/ecb.html,g" <ecb-help.el >ecb-help.el.new && \
mv ecb-help.el.new ecb-help.el
# Hi, Welcome to Unix...
crlf -u ecb.texi
}
src_compile() {
make LOADPATH="${SITELISP}/elib ${SITELISP}/semantic ${SITELISP}/eieio ${SITELISP}/jde/lisp" || die
}
src_install() {
elisp-install ${PN} *.el *.elc
elisp-site-file-install ${FILESDIR}/50ecb-gentoo.el
dodoc HISTORY README RELEASE_NOTES
makeinfo --force ecb.texi
doinfo ecb.info*
dohtml ecb.html
}
pkg_postinst() {
elisp-site-regen
einfo ""
einfo "Add the following to your ~/.emacs to use ECB:"
einfo " (require 'ecb)"
einfo "To start ECB:"
einfo " M-x ecb-activate"
einfo ""
}
pkg_postrm() {
elisp-site-regen
}
|