# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit elisp DESCRIPTION="Planner is a PersonalInformationManager (PIM) by JohnWiegley. You can use it to manage your tasks, schedule, notes, and anything else you want to store in a free-text richly-hyperlinked personal information manager integrated into Emacs." HOMEPAGE="http://sacha.free.net.ph/notebook/emacs" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="virtual/emacs app-emacs/emacs-wiki" DEPEND="${RDEPEND} dev-util/tla" PDEPEND="app-emacs/remember" S=${WORKDIR}/${PN} SITEFILE=50planner-gentoo.el src_unpack() { local MODULE_DIR="${DISTDIR}/cvs-src/" addwrite ${MODULE_DIR} cd ${MODULE_DIR} if [ -d ${PN} ] then cd ${PN} einfo "updating source..." tla update || die "update failed." else einfo "checking out lastest source..." tla register-archive sacha@free.net.ph--main http://sacha.free.net.ph/notebook/arch tla get sacha@free.net.ph--main/planner--dev--1.0 planner || die "check out failed." fi einfo "copying source to ${S}" cp -R ${MODULE_DIR}/${PN} ${WORKDIR} } src_compile() { #don't die even compile failed... elisp-compile *.el makeinfo planner.texi || die "makeinfo failed." } src_install() { elisp-install ${PN} *.el *.elc elisp-site-file-install ${FILESDIR}/${SITEFILE} doinfo PlannerMode.info dodoc ChangeLog PLANNER-README } pkg_postinst() { elisp-site-regen } pkg_postrm() { elisp-site-regen }