summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app-emacs/slime/ChangeLog10
-rw-r--r--app-emacs/slime/files/2.0_p20080731/70slime-gentoo.el3
-rw-r--r--app-emacs/slime/metadata.xml3
-rw-r--r--app-emacs/slime/slime-2.0_p20080731-r1.ebuild86
4 files changed, 97 insertions, 5 deletions
diff --git a/app-emacs/slime/ChangeLog b/app-emacs/slime/ChangeLog
index 45fd5c29eef4..ea734072d77a 100644
--- a/app-emacs/slime/ChangeLog
+++ b/app-emacs/slime/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-emacs/slime
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emacs/slime/ChangeLog,v 1.67 2009/03/25 14:02:26 ulm Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/slime/ChangeLog,v 1.68 2010/02/03 19:24:02 ulm Exp $
+
+*slime-2.0_p20080731-r1 (03 Feb 2010)
+
+ 03 Feb 2010; Ulrich Mueller <ulm@gentoo.org>
+ +slime-2.0_p20080731-r1.ebuild, metadata.xml:
+ Add prefix keywords, change EAPI to 3. New xref USE flag.
25 Mar 2009; Ulrich Mueller <ulm@gentoo.org>
files/2.0_p20080731/70slime-gentoo.el:
diff --git a/app-emacs/slime/files/2.0_p20080731/70slime-gentoo.el b/app-emacs/slime/files/2.0_p20080731/70slime-gentoo.el
index d5b3f82e0536..6dfd505133e2 100644
--- a/app-emacs/slime/files/2.0_p20080731/70slime-gentoo.el
+++ b/app-emacs/slime/files/2.0_p20080731/70slime-gentoo.el
@@ -1,6 +1,3 @@
-
-;;; slime site-lisp configuration
-
(add-to-list 'load-path "@SITELISP@")
(add-to-list 'load-path "@SITELISP@/contrib")
(autoload 'slime-highlight-edits-mode "slime-highlight-edits" nil t)
diff --git a/app-emacs/slime/metadata.xml b/app-emacs/slime/metadata.xml
index 206871240493..d33d27c275c4 100644
--- a/app-emacs/slime/metadata.xml
+++ b/app-emacs/slime/metadata.xml
@@ -28,4 +28,7 @@ systems such Emacs Lisp and ILISP. Feature highlights include:
* Inspector: Interactive object-inspector in an Emacs buffer.
</longdescription>
+<use>
+ <flag name='xref'>Install xref.lisp cross-referencing tool</flag>
+</use>
</pkgmetadata>
diff --git a/app-emacs/slime/slime-2.0_p20080731-r1.ebuild b/app-emacs/slime/slime-2.0_p20080731-r1.ebuild
new file mode 100644
index 000000000000..f90afdfe79db
--- /dev/null
+++ b/app-emacs/slime/slime-2.0_p20080731-r1.ebuild
@@ -0,0 +1,86 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emacs/slime/slime-2.0_p20080731-r1.ebuild,v 1.1 2010/02/03 19:24:02 ulm Exp $
+
+EAPI=3
+
+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? ( xref.lisp )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="doc xref"
+
+RDEPEND="virtual/commonlisp dev-lisp/cl-asdf"
+DEPEND="${RDEPEND}
+ doc? ( virtual/texi2dvi )"
+
+CLPACKAGE=swank
+SITEFILE="70${PN}-gentoo.el"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}/module-load-gentoo.patch
+ epatch "${FILESDIR}"/${PV}/dont-call-init.patch
+ epatch "${FILESDIR}"/${PV}/inspect-presentations.patch
+ epatch "${FILESDIR}"/${PV}/fix-ecl.patch
+ epatch "${FILESDIR}"/${PV}/fix-swank-listener-hooks-contrib.patch
+ epatch "${FILESDIR}"/${PV}/fix-slime-indentation.patch
+ epatch "${FILESDIR}"/${PV}/changelog-date.patch
+
+ # extract date of last update from ChangeLog, bug 233270
+ SLIME_CHANGELOG_DATE=$(awk '/^[-0-9]+ / { print $1; exit; }' ChangeLog)
+ [ -n "${SLIME_CHANGELOG_DATE}" ] || die "cannot determine ChangeLog date"
+
+ sed -i "/(defvar \*swank-wire-protocol-version\*/s:nil:\"${SLIME_CHANGELOG_DATE}\":" swank.lisp \
+ || die "sed swank.lisp failed"
+ sed -i "s:@SLIME-CHANGELOG-DATE@:${SLIME_CHANGELOG_DATE}:" slime.el \
+ || die "sed slime.el failed"
+
+ # Remove xref.lisp (which is non-free) unless USE flag is set
+ use xref || rm -f xref.lisp
+}
+
+src_compile() {
+ elisp-compile *.el || die "Cannot compile core Elisp files"
+ BYTECOMPFLAGS="${BYTECOMPFLAGS} -L contrib -l slime" \
+ elisp-compile contrib/*.el || die "Cannot compile contrib Elisp files"
+ emake -j1 -C doc slime.info || die "Cannot build info docs"
+ if use doc; then
+ VARTEXFONTS="${T}"/fonts \
+ emake -j1 -C doc slime.{ps,pdf} || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ ## install core
+ elisp-install ${PN} *.el{,c} "${FILESDIR}"/swank-loader.lisp \
+ || die "Cannot install SLIME core"
+ sed "s:/usr/:${EPREFIX}&:" "${FILESDIR}"/${PV}/${SITEFILE} \
+ >"${T}"/${SITEFILE} || die "sed failed"
+ elisp-site-file-install "${T}"/${SITEFILE} || die
+ cp "${FILESDIR}"/${PV}/swank.asd "${S}"
+ # remove upstream swank-loader, since it won't be used
+ rm "${S}"/swank-loader.lisp
+ insinto "${CLSOURCEROOT%/}"/swank
+ doins *.lisp "${FILESDIR}"/${PV}/swank.asd
+ dodir "${CLSYSTEMROOT}"
+ dosym "${CLSOURCEROOT%/}"/swank/swank.asd "${CLSYSTEMROOT}"
+ dosym "${SITELISP}"/${PN}/swank-version.el "${CLSOURCEROOT%/}"/swank
+
+ ## install contribs
+ elisp-install ${PN}/contrib/ contrib/*.{el,elc,scm,goo} \
+ || die "Cannot install contribs"
+ insinto "${CLSOURCEROOT%/}"/swank/contrib
+ doins contrib/*.lisp
+
+ ## install docs
+ dodoc README* ChangeLog HACKING NEWS PROBLEMS
+ newdoc contrib/README README.contrib
+ newdoc contrib/ChangeLog ChangeLog.contrib
+ doinfo doc/slime.info
+ use doc && dodoc doc/slime.{ps,pdf}
+}