# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later ECLASS="jdee" S="${WORKDIR}/${MY_P}" SRC_URI="http://unc.dl.sourceforge.net/sourceforge/cedet/${MY_P}.tar.gz" HOMEPAGE="http://cedet.sourceforge.net/${PN}.shtml" LICENSE="GPL" SITE="/usr/share/emacs/site-lisp" ADDPATH="(add-to-list 'load-path (expand-file-name "${SITE}/${PN}"))" DEPEND="virtual/glibc virtual/emacs" RDEPEND="virtual/emacs" SLOT="0" src_compile(){ emake || die } src_install(){ insinto ${SITE}/${P} doins ${S}/* dosym ${SITE}/${P} ${SITE}/${PN} doinfo ${PN}.info } pkg_postinst(){ einfo "" einfo "To load ${PN} into emacs, add the following to your ~/.emacs:" einfo "${ADDPATH}" einfo "" } pkg_postrm(){ einfo "" einfo "Make sure to remove ${ADDPATH} from your ~/.emacs" einfo "Also, if there are other version of eieio installed," einfo "the symlink has been removed." einfo "Run 'ebuild ${P} config' to restore it." einfo "" } pkg_config(){ dosym ${SITE}/${P} ${SITE}/${PN} einfo "Still to come: will edit ~/.emacs to add the load path:" einfo ${ADDPATH} }