/[gentoo-x86]/app-emacs/slime/slime-2.0_p20101103.ebuild
Gentoo

Contents of /app-emacs/slime/slime-2.0_p20101103.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Jul 11 08:44:28 2014 UTC (7 weeks ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +3 -3 lines
Stable on amd64 #511170

(Portage version: 2.2.10/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-emacs/slime/slime-2.0_p20101103.ebuild,v 1.3 2013/10/03 06:24:56 gienah Exp $
4
5 EAPI=3
6
7 inherit common-lisp elisp eutils
8
9 DESCRIPTION="SLIME, the Superior Lisp Interaction Mode (Extended)"
10 HOMEPAGE="http://common-lisp.net/project/slime/"
11 SRC_URI="mirror://gentoo/${P}.tar.bz2
12 mirror://gentoo/${P}-patches.tar.bz2"
13
14 LICENSE="GPL-2 xref? ( xref.lisp )"
15 SLOT="0"
16 KEYWORDS="amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
17 IUSE="doc xref"
18
19 RDEPEND="virtual/commonlisp
20 dev-lisp/asdf"
21 DEPEND="${RDEPEND}
22 doc? ( virtual/texi2dvi )"
23
24 CLPACKAGE=swank
25 SITEFILE="70${PN}-gentoo.el"
26
27 src_prepare() {
28 EPATCH_SUFFIX=patch epatch
29 mv "${WORKDIR}/swank.asd" "${S}" || die
30
31 # extract date of last update from ChangeLog, bug 233270
32 SLIME_CHANGELOG_DATE=$(awk '/^[-0-9]+ / { print $1; exit; }' ChangeLog)
33 [ -n "${SLIME_CHANGELOG_DATE}" ] || die "cannot determine ChangeLog date"
34
35 sed -i '/^section :=/d' doc/Makefile || die
36 sed -i "/(defvar \*swank-wire-protocol-version\*/s:nil:\"${SLIME_CHANGELOG_DATE}\":" swank.lisp || die
37 sed -i "s:@SLIME-CHANGELOG-DATE@:${SLIME_CHANGELOG_DATE}:" slime.el || die
38 sed -i "s/@itemx INIT-FUNCTION/@item INIT-FUNCTION/" doc/slime.texi \
39 || die "sed doc/slime.texi failed"
40
41 # Remove xref.lisp (which is non-free) unless USE flag is set
42 use xref || rm -f xref.lisp
43 }
44
45 src_compile() {
46 elisp-compile *.el || die
47 BYTECOMPFLAGS="${BYTECOMPFLAGS} -L contrib -l slime" \
48 elisp-compile contrib/*.el || die
49 emake -j1 -C doc slime.info || die
50
51 if use doc; then
52 VARTEXFONTS="${T}/fonts" emake -j1 -C doc slime.pdf || die
53 fi
54 }
55
56 src_install() {
57 ## install core
58 elisp-install ${PN} *.{el,elc} "${FILESDIR}/swank-loader.lisp" || die
59 sed "s:/usr/:${EPREFIX}&:g" "${FILESDIR}/${SITEFILE}" >"${T}/${SITEFILE}" \
60 || die
61 elisp-site-file-install "${T}/${SITEFILE}" || die
62
63 # remove upstream swank-loader, since it won't be used
64 rm "${S}/swank-loader.lisp"
65
66 insinto "${CLSOURCEROOT%/}/swank"
67 doins *.lisp swank.asd || die
68 dodir "${CLSYSTEMROOT}" || die
69 dosym "${CLSOURCEROOT%/}/swank/swank.asd" "${CLSYSTEMROOT}" || die
70
71 ## install contribs
72 elisp-install ${PN}/contrib/ contrib/*.{el,elc,scm,goo} || die
73 insinto "${CLSOURCEROOT%/}/swank/contrib"
74 doins contrib/*.lisp || die
75
76 ## install docs
77 doinfo doc/slime.info || die
78 dodoc README* ChangeLog HACKING NEWS PROBLEMS
79 newdoc contrib/README README.contrib
80 newdoc contrib/ChangeLog ChangeLog.contrib
81 use doc && dodoc doc/slime.pdf
82 }

  ViewVC Help
Powered by ViewVC 1.1.20