summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/slime/slime-2.0_p20070816-r2.ebuild')
-rw-r--r--app-emacs/slime/slime-2.0_p20070816-r2.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/app-emacs/slime/slime-2.0_p20070816-r2.ebuild b/app-emacs/slime/slime-2.0_p20070816-r2.ebuild
new file mode 100644
index 000000000000..41bb3815f064
--- /dev/null
+++ b/app-emacs/slime/slime-2.0_p20070816-r2.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/slime/slime-2.0_p20070816-r2.ebuild,v 1.1 2008/07/30 09:12:29 ulm Exp $
+
+inherit common-lisp elisp eutils
+
+DESCRIPTION="SLIME, the Superior Lisp Interaction Mode (Extended)"
+HOMEPAGE="http://common-lisp.net/project/slime/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="GPL-2 xref.lisp"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND="virtual/commonlisp"
+DEPEND="${RDEPEND}
+ doc? ( virtual/texi2dvi )"
+
+CLPACKAGE=swank
+SWANK_VERSION="2007-08-16"
+SITEFILE=71${PN}-gentoo.el
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/${PN}-set-swank-wire-protocol-version.patch
+ epatch "${FILESDIR}"/${PN}-changelog-date.patch
+ epatch "${FILESDIR}"/${P}-save-restriction-if-possible.patch
+
+ # extract date of last update from ChangeLog, bug 233270
+ SLIME_CHANGELOG_DATE=$(sed -n \
+ 's/^\([0-9]\{4\}-[0-9]\{2\}-[0-9]\{2\}\)[ \t].*/\1/;T;p;q' ChangeLog)
+ [ -n "${SLIME_CHANGELOG_DATE}" ] || die "cannot determine ChangeLog date"
+
+ sed -i "s:@SWANK-WIRE-PROTOCOL-VERSION@:${SWANK_VERSION}:" swank.lisp \
+ || die "sed swank.lisp failed"
+ sed -i "s:@SLIME-CHANGELOG-DATE@:${SLIME_CHANGELOG_DATE}:" slime.el \
+ || die "sed slime.el failed"
+}
+
+src_compile() {
+ elisp-comp *.el || die "elisp-comp failed"
+ emake -j1 -C doc slime.info || die "emake slime.info failed"
+ if use doc; then
+ VARTEXFONTS="${T}"/fonts \
+ emake -j1 -C doc slime.{ps,pdf} || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ elisp-install ${PN} *.el{,c} "${FILESDIR}"/swank-loader.lisp \
+ || die "Cannot install SLIME core"
+ elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
+ || die "elisp-site-file-install failed"
+ insinto "${CLSOURCEROOT}"/swank
+ doins *.lisp "${FILESDIR}"/swank.asd
+ dodir "${CLSYSTEMROOT}"
+ dosym "${CLSOURCEROOT}"/swank/swank.asd "${CLSYSTEMROOT}"
+ dosym "${SITELISP}"/${PN}/swank-version.el "${CLSOURCEROOT}"/swank
+
+ dodoc README* ChangeLog HACKING NEWS PROBLEMS || die "dodoc failed"
+ doinfo doc/slime.info
+ if use doc; then
+ dodoc doc/slime.{ps,pdf} || die "dodoc failed"
+ fi
+}