diff options
Diffstat (limited to 'app-emacs/slime/slime-1.2.1.20051211.ebuild')
-rw-r--r-- | app-emacs/slime/slime-1.2.1.20051211.ebuild | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/app-emacs/slime/slime-1.2.1.20051211.ebuild b/app-emacs/slime/slime-1.2.1.20051211.ebuild new file mode 100644 index 000000000000..4559adeede4a --- /dev/null +++ b/app-emacs/slime/slime-1.2.1.20051211.ebuild @@ -0,0 +1,71 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emacs/slime/slime-1.2.1.20051211.ebuild,v 1.1 2005/12/11 19:09:19 mkennedy Exp $ + +inherit elisp eutils + +MY_PV_CVS=${PV:6:4}-${PV:10:2}-${PV:12:2} +MY_PV_BASE=${PV:0:5} + +DESCRIPTION="SLIME, the Superior Lisp Interaction Mode (Extended)" +HOMEPAGE="http://common-lisp.net/project/slime/" + +SRC_URI="http://www.common-lisp.net/project/slime/slime-${MY_PV_BASE}.tar.gz + mirror://gentoo/slime-${MY_PV_BASE}-CVS-${MY_PV_CVS}-gentoo.patch.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="doc" + +DEPEND="virtual/emacs + dev-lisp/common-lisp-controller + virtual/commonlisp + doc? ( sys-apps/texinfo )" + +S="${WORKDIR}/slime-${MY_PV_BASE}" + +CLPACKAGE=swank + +src_unpack() { + unpack ${A} + epatch slime-${MY_PV_BASE}-CVS-${MY_PV_CVS}-gentoo.patch || die +} + +src_compile() { + elisp-comp *.el || die + use doc && make -C doc slime.info +} + +src_install() { + elisp-install ${PN} *.{el,elc} ${FILESDIR}/${PV}/swank-loader.lisp + elisp-site-file-install ${FILESDIR}/${PV}/70slime-gentoo.el + dodoc README* ChangeLog + zcat ${D}/usr/share/doc/${PF}/ChangeLog.gz \ + >${D}/usr/share/emacs/site-lisp/slime/ChangeLog + insinto /usr/share/common-lisp/source/swank + doins *.lisp ${FILESDIR}/${PV}/swank.asd + dodir /usr/share/common-lisp/systems + dosym /usr/share/common-lisp/source/swank/swank.asd \ + /usr/share/common-lisp/systems + dodoc ${FILESDIR}/${PV}/README.Gentoo + if use doc; then + doinfo doc/slime.info + fi +} + +pkg_preinst() { + unregister-common-lisp-source $CLPACKAGE || die +} + +pkg_postrm() { + if ! [ -d /usr/share/common-lisp/source/$CLPACKAGE ]; then + unregister-common-lisp-source $CLPACKAGE || die + fi + elisp-site-regen || die +} + +pkg_postinst() { + register-common-lisp-source $CLPACKAGE || die + elisp-site-regen || die + zcat /usr/share/doc/${PF}/README.Gentoo |while read line; do einfo "${line}"; done +} |