Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/sly/files/, app-emacs/sly/
Date: Fri, 29 Apr 2022 09:48:04
Message-Id: 1651225654.c4d71c55f2dac9faaf80fef5be268082d3f6a5f2.xgqt@gentoo
1 commit: c4d71c55f2dac9faaf80fef5be268082d3f6a5f2
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 29 09:47:23 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 29 09:47:34 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4d71c55
7
8 app-emacs/sly: new package; add version 1.0.43
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 app-emacs/sly/Manifest | 1 +
13 app-emacs/sly/files/50sly-gentoo.el | 3 ++
14 app-emacs/sly/metadata.xml | 36 ++++++++++++++++++++
15 app-emacs/sly/sly-1.0.43.ebuild | 67 +++++++++++++++++++++++++++++++++++++
16 4 files changed, 107 insertions(+)
17
18 diff --git a/app-emacs/sly/Manifest b/app-emacs/sly/Manifest
19 new file mode 100644
20 index 000000000000..b29638518d9b
21 --- /dev/null
22 +++ b/app-emacs/sly/Manifest
23 @@ -0,0 +1 @@
24 +DIST sly-1.0.43.tar.gz 1835404 BLAKE2B ab6868f3ee29d3d98d80984de4dd1ba39076279b86d86de49ce4e95323c419cbd6a16da81d9cbdff8bc8d12fb2d868096ecffd681b276e35a192feb723f99baf SHA512 e2785a34cabc3537efb06cd2ce9da05aef02ce7077ef73e2d82ace4e3534c00d9269969319294207759e11e2682111ca4d150f1d3d8e02b8f682752394640447
25
26 diff --git a/app-emacs/sly/files/50sly-gentoo.el b/app-emacs/sly/files/50sly-gentoo.el
27 new file mode 100644
28 index 000000000000..c69b93515bcb
29 --- /dev/null
30 +++ b/app-emacs/sly/files/50sly-gentoo.el
31 @@ -0,0 +1,3 @@
32 +(add-to-list 'load-path "@SITELISP@")
33 +(add-to-list 'load-path "@SITELISP@/contrib")
34 +(require 'sly-autoloads)
35
36 diff --git a/app-emacs/sly/metadata.xml b/app-emacs/sly/metadata.xml
37 new file mode 100644
38 index 000000000000..1f4866127cad
39 --- /dev/null
40 +++ b/app-emacs/sly/metadata.xml
41 @@ -0,0 +1,36 @@
42 +<?xml version="1.0" encoding="UTF-8"?>
43 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
44 +
45 +<pkgmetadata>
46 + <maintainer type="project">
47 + <email>gnu-emacs@g.o</email>
48 + <name>Gentoo GNU Emacs project</name>
49 + </maintainer>
50 + <longdescription>
51 + SLY is Sylvester the Cat's Common Lisp IDE for Emacs.
52 + SLY is a fork of SLIME. All SLIME's familar features (debugger, inspector,
53 + xref, etc...) are still available, with improved overall UX. SLY's
54 + highlights are:
55 + A full-featured REPL based on Emacs's comint.el. Everything can be copied
56 + to the REPL;
57 + Stickers, or live code annotations that record values as code traverses
58 + them.
59 + Flex-style completion out-of-the-box, using Emacs's completion API.
60 + Company, Helm, and other supported natively, no plugin required;
61 + An interactive Trace Dialog;
62 + Cleanly ASDF-loaded by default, including contribs, enabled out-of-the-box;
63 + Multiple inspectors and multiple REPLs;
64 + "Presentations" replaced by interactive backreferences which highlight the
65 + object and remain stable throughout the REPL session;
66 + Support for NAMED-READTABLES, macrostep.el and quicklisp.
67 + A portable, annotation-based stepper in early but functional prototype
68 + stage.
69 + </longdescription>
70 + <use>
71 + <flag name="xref">Install xref.lisp cross-referencing tool</flag>
72 + </use>
73 + <upstream>
74 + <bugs-to>https://github.com/joaotavora/sly/issues/</bugs-to>
75 + <remote-id type="github">joaotavora/sly</remote-id>
76 + </upstream>
77 +</pkgmetadata>
78
79 diff --git a/app-emacs/sly/sly-1.0.43.ebuild b/app-emacs/sly/sly-1.0.43.ebuild
80 new file mode 100644
81 index 000000000000..ebec756037f0
82 --- /dev/null
83 +++ b/app-emacs/sly/sly-1.0.43.ebuild
84 @@ -0,0 +1,67 @@
85 +# Copyright 1999-2022 Gentoo Authors
86 +# Distributed under the terms of the GNU General Public License v2
87 +
88 +EAPI=8
89 +
90 +inherit elisp
91 +
92 +DESCRIPTION="Sylvester the Cat's Common Lisp IDE for GNU Emacs"
93 +HOMEPAGE="https://github.com/joaotavora/sly/"
94 +SRC_URI="https://github.com/joaotavora/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
95 +
96 +LICENSE="public-domain GPL-2+ GPL-3+ LLGPL-2.1 ZLIB xref? ( xref.lisp )"
97 +SLOT="0"
98 +KEYWORDS="~amd64 ~x86"
99 +IUSE="doc xref"
100 +
101 +RDEPEND="
102 + dev-lisp/asdf
103 + dev-lisp/sbcl
104 +"
105 +DEPEND="${RDEPEND}"
106 +BDEPEND="
107 + sys-apps/texinfo
108 + doc? ( virtual/texi2dvi )
109 +"
110 +
111 +SITEFILE="50${PN}-gentoo.el"
112 +
113 +src_prepare() {
114 + default
115 +
116 + # Remove failing tests (sly-fontifying-fu-tests is a part of "check-fancy")
117 + rm test/sly-fontifying-fu-tests.el || die
118 +
119 + # Remove xref.lisp (which is non-free) unless USE flag is set
120 + use xref || rm slynk/xref.lisp || die
121 +}
122 +
123 +src_compile() {
124 + emake EMACS="${EMACS}" compile compile-contrib
125 +
126 + emake -C doc ${PN}.info
127 +
128 + if use doc ; then
129 + VARTEXFONTS="${T}"/fonts emake -C doc all
130 + fi
131 +}
132 +
133 +src_test() {
134 + # NOTICE: "check-core" has some failing tests under root/portage user
135 + emake check-fancy
136 +}
137 +
138 +src_install() {
139 + elisp-install ${PN} *el{,c}
140 + elisp-site-file-install "${FILESDIR}/${SITEFILE}"
141 +
142 + elisp-install ${PN}/contrib/ contrib/*
143 + elisp-install ${PN}/lib/ lib/* lib/.nosearch
144 + elisp-install ${PN}/slynk/ slynk/*
145 + elisp-install ${PN}/slynk/backend/ slynk/backend/*
146 +
147 + doinfo doc/${PN}.info
148 + dodoc CONTRIBUTING.md NEWS.md PROBLEMS.md README.md
149 +
150 + use doc && dodoc doc/*.pdf
151 +}