# Copyright 1999-2003 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.3 2003/07/11 22:55:50 vapier Exp $ inherit elisp eutils 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" 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.new && \ mv ecb-help.el.new ecb-help.el sed -e "s,@ECBHTMLFILE@,/usr/share/doc/${P}/html/ecb.html,g" ecb-help.el.new && \ mv ecb-help.el.new ecb-help.el edos2unix 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 }