Gentoo Archives: gentoo-commits

From: "José María Alonso" <nimiux@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/lisp:master commit in: app-emacs/slime/
Date: Wed, 30 May 2018 18:47:57
Message-Id: 1527706066.41aeac9f1226b6ddce9e618663151038332bc31c.nimiux@gentoo
1 commit: 41aeac9f1226b6ddce9e618663151038332bc31c
2 Author: Chema Alonso Josa <nimiux <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 30 18:47:46 2018 +0000
4 Commit: José María Alonso <nimiux <AT> gentoo <DOT> org>
5 CommitDate: Wed May 30 18:47:46 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/lisp.git/commit/?id=41aeac9f
7
8 app-emacs/slime: Fix bug #656760
9
10 app-emacs/slime/slime-2.20-r1.ebuild | 74 ++++++++++++++++++++++++++++++++++++
11 1 file changed, 74 insertions(+)
12
13 diff --git a/app-emacs/slime/slime-2.20-r1.ebuild b/app-emacs/slime/slime-2.20-r1.ebuild
14 new file mode 100644
15 index 00000000..8c79ae0d
16 --- /dev/null
17 +++ b/app-emacs/slime/slime-2.20-r1.ebuild
18 @@ -0,0 +1,74 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +
24 +inherit elisp
25 +
26 +DESCRIPTION="SLIME, the Superior Lisp Interaction Mode (Extended)"
27 +HOMEPAGE="http://common-lisp.net/project/slime/"
28 +SRC_URI="https://github.com/slime/slime/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29 +
30 +LICENSE="GPL-2 xref? ( xref.lisp )"
31 +SLOT="0"
32 +KEYWORDS="~amd64 ~ppc ~sparc ~x86"
33 +IUSE="doc xref"
34 +RESTRICT=test # tests fail to contact sbcl
35 +
36 +RDEPEND="virtual/commonlisp
37 + dev-lisp/asdf"
38 +DEPEND="${RDEPEND}
39 + >=sys-apps/texinfo-5.1
40 + doc? ( virtual/texi2dvi )"
41 +
42 +CLPACKAGE=swank
43 +CLSYSTEMS=swank
44 +SITEFILE=70${PN}-gentoo.el
45 +
46 +PATCHES=(
47 + # Should be fixed in >=app-emacs/slime-2.20
48 + "${FILESDIR}/${PN}-2.20-fix-doc-build.patch"
49 +)
50 +
51 +src_prepare() {
52 + default
53 + # Remove xref.lisp (which is non-free) unless USE flag is set
54 + use xref || rm -f xref.lisp
55 +}
56 +
57 +src_compile() {
58 + elisp-compile *.el || die
59 + BYTECOMPFLAGS="${BYTECOMPFLAGS} -L contrib -l slime" \
60 + elisp-compile contrib/*.el lib/*.el || die
61 +
62 + emake -C doc slime.info || die
63 + if use doc ; then
64 + VARTEXFONTS="${T}"/fonts \
65 + emake -C doc all
66 + fi
67 +}
68 +
69 +src_install() {
70 + # Install core
71 + elisp-install ${PN} *.{el,elc,lisp} || die "Cannot install SLIME core"
72 +
73 + # Install contribs
74 + elisp-install ${PN}/contrib/ contrib/*.{el,elc,lisp,scm,goo} \
75 + || die "Cannot install contribs"
76 +
77 + # Install lib
78 + elisp-install ${PN}/lib/ lib/*.{el,elc} || die "Cannot install libs"
79 +
80 + # Install swank
81 + elisp-install ${PN}/swank/ swank/*.lisp || die "Cannot install swank"
82 +
83 + elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die "Cannon install site file"
84 + # Install docs
85 + dodoc README.md CONTRIBUTING.md NEWS PROBLEMS
86 + newdoc contrib/README.md README-contrib.md
87 + doinfo doc/slime.info
88 + use doc && dodoc doc/*.pdf
89 +
90 + # Bug #656760
91 + touch "${ED}${SITELISP}/${PN}/lib/.nosearch" || die
92 +}