# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later ECLASS="jdee" EXPORT_FUNCTIONS src_compile src_install pkg_postinst pkg_postrm pkg_config 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" jdee_src_compile(){ emake || die } jdee_src_install(){ insinto ${SITE}/${P} doins ${S}/* dosym ${SITE}/${P} ${SITE}/${PN} doinfo ${PN}.info } jdee_pkg_postinst(){ einfo "" einfo "To load ${PN} into emacs, add the following to your ~/.emacs:" einfo "${ADDPATH}" einfo "" } jdee_pkg_postrm(){ einfo "" einfo "Make sure to remove ${ADDPATH} from your ~/.emacs" einfo "Also, if there are other version of ${PN} installed, the symlink has been removed." einfo "Run 'ebuild ${PN}-version.ebuild config' to restore it." einfo "" } jdee_pkg_config(){ ln -s ${SITE}/${P} ${SITE}/${PN} }