View | Details | Raw Unified | Return to bug 253991 | Differences between
and this patch

Collapse All | Expand All

(-)editors/sly/Makefile (+53 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	sly
4
DISTVERSION=	1.0.43
5
CATEGORIES=	editors elisp
6
PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
7
8
MAINTAINER=	olce.freebsd.ports@certner.fr
9
COMMENT=	Sylvester the Cat's Common Lisp IDE for Emacs
10
11
LICENSE=	PD
12
13
BUILD_DEPENDS=	texinfo>=5.2:print/texinfo
14
15
USES=		emacs gmake
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	joaotavora
18
19
NO_ARCH=	yes
20
21
INFO=		sly
22
23
ALL_TARGET=	all doc-sly.info
24
DOCS_ALL_TARGET=${GENERATED_DOCS_FILES:%=doc-%}
25
26
THIS_LISPDIR=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/sly
27
PLIST_SUB+=	THIS_LISPDIR=${THIS_LISPDIR}
28
29
OPTIONS_DEFINE=	DOCS
30
31
ROOT_DOCS_FILES=	CONTRIBUTING.md NEWS.md PROBLEMS.md README.md
32
GENERATED_DOCS_FILES=	sly.pdf sly.html sly-refcard.pdf
33
34
PORTDOCS=	CONTRIBUTING.md NEWS.md PROBLEMS.md README.md \
35
		${GENERATED_DOCS_FILES}
36
37
do-install:
38
	@${MKDIR} ${STAGEDIR}${THIS_LISPDIR}
39
	(cd ${WRKSRC} && \
40
		${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \
41
		"! ( -depth 1 ( -name Makefile -o -name *\.md -o \
42
				-name \.[^.]* ) -o \
43
			-path \./doc* )")
44
	${INSTALL_DATA} ${WRKSRC}/doc/${INFO}.info \
45
		${STAGEDIR}${PREFIX}/${INFO_PATH}
46
47
post-install-DOCS-on:
48
	${MKDIR} ${STAGEDIR}${DOCSDIR}
49
	${INSTALL_DATA} ${ROOT_DOCS_FILES:%=${WRKSRC}/%} \
50
		${GENERATED_DOCS_FILES:%=${WRKSRC}/doc/%} \
51
		${STAGEDIR}${DOCSDIR}
52
53
.include <bsd.port.mk>
(-)editors/sly/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1613556780
2
SHA256 (joaotavora-sly-1.0.43_GH0.tar.gz) = 84b2d8326a429dcc621022d2ebbde7ed4813594d7445f264cb6ff5bf5f3bf9e9
3
SIZE (joaotavora-sly-1.0.43_GH0.tar.gz) = 1835404
(-)editors/sly/files/patch-doc_Makefile (+20 lines)
Line 0 Link Here
1
--- doc/Makefile.orig	2021-01-14 09:12:56 UTC
2
+++ doc/Makefile
3
@@ -14,7 +14,7 @@ INSTALL_CMD=install -m 644
4
 # Info files generated here.
5
 infofiles=sly.info
6
 
7
-TEXI = sly.texi contributors.texi
8
+TEXI = sly.texi
9
 
10
 help:
11
 	@echo -e "\
12
@@ -38,7 +38,7 @@ sly.info: $(TEXI)
13
 	makeinfo $<
14
 
15
 sly.html: $(TEXI)
16
-	texi2html --css-include=sly.css $<
17
+	makeinfo -o $@ --css-include=sly.css --html --no-split $<
18
 
19
 html/index.html: $(TEXI)
20
 	makeinfo -o html --css-include=sly.css --html $<
(-)editors/sly/files/patch-doc_sly.texi (+25 lines)
Line 0 Link Here
1
--- doc/sly.texi.orig	2021-01-14 09:12:56 UTC
2
+++ doc/sly.texi
3
@@ -3157,17 +3157,13 @@ buffer you can enter Lisp expressions and evaluate the
4
 @unnumberedsec Hackers of the good hack
5
 
6
 @SLY{} is a fork of SLIME which is itself an Extension
7
-of @acronym{SLIM} by Eric Marsden. At the time of writing, the authors
8
-and code-contributors of @SLY{} are:
9
+of @acronym{SLIM} by Eric Marsden. Please consult the Git repository
10
+for a list of authors and code-contributors of @SLY{}, as well as the
11
+bundled code from @file{hyperspec.el}, @cite{CLOCC}, and the @cite{CMU
12
+AI Repository}.
13
 
14
-@include contributors.texi
15
-
16
-... not counting the bundled code from @file{hyperspec.el},
17
-@cite{CLOCC}, and the @cite{CMU AI Repository}.
18
-
19
 Many people on the @code{sly-devel} mailing list have made non-code
20
-contributions to @SLY{}. Life is hard though: you gotta send code to
21
-get your name in the manual. @code{:-)}
22
+contributions to @SLY{}.
23
 
24
 @unnumberedsec Thanks!
25
 
(-)editors/sly/files/patch-sly.el (+46 lines)
Line 0 Link Here
1
--- sly.el.orig	2021-01-14 09:12:56 UTC
2
+++ sly.el
3
@@ -7463,22 +7463,30 @@ can be found."
4
 ;;;###autoload
5
 (add-hook 'lisp-mode-hook 'sly-editing-mode)
6
 
7
-(cond
8
- ((or (not (memq 'slime-lisp-mode-hook lisp-mode-hook))
9
-      noninteractive
10
-      (prog1
11
-          (y-or-n-p "[sly] SLIME detected in `lisp-mode-hook', causes keybinding conflicts.  Remove it for this Emacs session?")
12
-        (warn "To restore SLIME in this session, customize `lisp-mode-hook'
13
-and replace `sly-editing-mode' with `slime-lisp-mode-hook'.")))
14
-  (remove-hook 'lisp-mode-hook 'slime-lisp-mode-hook)
15
+(let ((proceed-p
16
+       (if noninteractive
17
+           (lambda () t)
18
+         (let (asked resp)
19
+           (lambda ()
20
+             (unless asked
21
+               (setq resp
22
+                     (y-or-n-p
23
+                      (eval-when-compile
24
+                        (concat "[sly] SLIME detected. Try to disable it "
25
+                                "for this Emacs session?")))
26
+                     asked t))
27
+             resp)))))
28
+  (when (and (memq 'slime-lisp-mode-hook lisp-mode-hook)
29
+             (funcall proceed-p))
30
+    (warn "To restore SLIME in this session, customize `lisp-mode-hook' and
31
+replace `sly-editing-mode' with `slime-lisp-mode-hook'.")
32
+    (remove-hook 'lisp-mode-hook 'slime-lisp-mode-hook))
33
   (dolist (buffer (buffer-list))
34
     (with-current-buffer buffer
35
       (when (eq major-mode 'lisp-mode)
36
-        (sly-editing-mode 1)
37
-        (ignore-errors (funcall 'slime-mode -1))))))
38
- (t
39
-  (warn
40
-   "`sly.el' loaded OK. To use SLY, customize `lisp-mode-hook' and remove `slime-lisp-mode-hook'.")))
41
+        (when (and (boundp 'slime-mode) slime-mode (funcall proceed-p))
42
+          (ignore-errors (funcall 'slime-mode -1)))
43
+        (sly-editing-mode 1)))))
44
 
45
 (provide 'sly)
46
 
(-)editors/sly/pkg-descr (+19 lines)
Line 0 Link Here
1
SLY is a fork of SLIME. We track its bugfixes, particularly to the
2
implementation backends. All SLIME's familiar features (debugger, inspector,
3
xref, etc...) are still available, with improved overall UX.
4
5
SLY's highlights are:
6
- A full-featured REPL based on Emacs's comint.el. Everything can be copied to
7
  the REPL.
8
- Stickers, or live code annotations that record values as code traverses them.
9
- Flex-style completion out-of-the-box, using Emacs's completion API. Company,
10
  Helm, and other supported natively, no plugin required.
11
- An interactive Trace Dialog.
12
- Cleanly ASDF-loaded by default, including contribs, enabled out-of-the-box.
13
- Multiple inspectors and multiple REPLs.
14
- "Presentations" replaced by interactive backreferences which highlight the
15
  object and remain stable throughout the REPL session.
16
- Support for NAMED-READTABLES, macrostep.el and quicklisp.
17
- A portable, annotation-based stepper in early but functional prototype stage.
18
19
WWW: https://github.com/joaotavora/sly
(-)editors/sly/pkg-message (+27 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
To enable autoloading of SLY, add this to some Emacs init file:
5
(require 'sly-autoloads)
6
7
You should specify some Lisp implementation. This works for both SLY and SLIME:
8
(setq inferior-lisp-program "path_to_your_lisp_binary")
9
SLY however has convenient specific variables for more complex
10
configurations. E.g.:
11
(setq sly-default-lisp 'sbcl
12
      sly-lisp-implementations '((sbcl ("sbcl"))))
13
Please see their documentation.
14
15
Contribs in `sly-contribs' list are automatically loaded and enabled (and those
16
not in it are disabled) each time a new session is launched, or `sly-setup' is
17
called. If you define `sly-contribs' in some initialization file, be sure to
18
include sly-fancy in it (instead, you can add to the list using `add-to-list',
19
after the `require' above).
20
21
If you just want to immediately enable a contrib, you can instead use
22
`sly-enable-contrib', but be aware that the effect will be temporary. It will
23
last up to the next connection established or `sly-setup' call, unless you add
24
the contrib to `sly-contribs' in the meantime.
25
EOM
26
}
27
]
(-)editors/sly/pkg-plist (+91 lines)
Line 0 Link Here
1
%%THIS_LISPDIR%%/contrib/sly-autodoc.el
2
%%THIS_LISPDIR%%/contrib/sly-autodoc.elc
3
%%THIS_LISPDIR%%/contrib/sly-fancy-inspector.el
4
%%THIS_LISPDIR%%/contrib/sly-fancy-inspector.elc
5
%%THIS_LISPDIR%%/contrib/sly-fancy-trace.el
6
%%THIS_LISPDIR%%/contrib/sly-fancy-trace.elc
7
%%THIS_LISPDIR%%/contrib/sly-fancy.el
8
%%THIS_LISPDIR%%/contrib/sly-fancy.elc
9
%%THIS_LISPDIR%%/contrib/sly-fontifying-fu.el
10
%%THIS_LISPDIR%%/contrib/sly-fontifying-fu.elc
11
%%THIS_LISPDIR%%/contrib/sly-indentation.el
12
%%THIS_LISPDIR%%/contrib/sly-indentation.elc
13
%%THIS_LISPDIR%%/contrib/sly-mrepl.el
14
%%THIS_LISPDIR%%/contrib/sly-mrepl.elc
15
%%THIS_LISPDIR%%/contrib/sly-package-fu.el
16
%%THIS_LISPDIR%%/contrib/sly-package-fu.elc
17
%%THIS_LISPDIR%%/contrib/sly-profiler.el
18
%%THIS_LISPDIR%%/contrib/sly-profiler.elc
19
%%THIS_LISPDIR%%/contrib/sly-retro.el
20
%%THIS_LISPDIR%%/contrib/sly-retro.elc
21
%%THIS_LISPDIR%%/contrib/sly-scratch.el
22
%%THIS_LISPDIR%%/contrib/sly-scratch.elc
23
%%THIS_LISPDIR%%/contrib/sly-stickers.el
24
%%THIS_LISPDIR%%/contrib/sly-stickers.elc
25
%%THIS_LISPDIR%%/contrib/sly-trace-dialog.el
26
%%THIS_LISPDIR%%/contrib/sly-trace-dialog.elc
27
%%THIS_LISPDIR%%/contrib/sly-tramp.el
28
%%THIS_LISPDIR%%/contrib/sly-tramp.elc
29
%%THIS_LISPDIR%%/contrib/slynk-arglists.lisp
30
%%THIS_LISPDIR%%/contrib/slynk-fancy-inspector.lisp
31
%%THIS_LISPDIR%%/contrib/slynk-indentation.lisp
32
%%THIS_LISPDIR%%/contrib/slynk-mrepl.lisp
33
%%THIS_LISPDIR%%/contrib/slynk-package-fu.lisp
34
%%THIS_LISPDIR%%/contrib/slynk-profiler.lisp
35
%%THIS_LISPDIR%%/contrib/slynk-retro.lisp
36
%%THIS_LISPDIR%%/contrib/slynk-stickers.lisp
37
%%THIS_LISPDIR%%/contrib/slynk-trace-dialog.lisp
38
%%THIS_LISPDIR%%/contrib/sylvesters.txt
39
%%THIS_LISPDIR%%/lib/.nosearch
40
%%THIS_LISPDIR%%/lib/hyperspec.el
41
%%THIS_LISPDIR%%/lib/hyperspec.elc
42
%%THIS_LISPDIR%%/lib/sly-buttons.el
43
%%THIS_LISPDIR%%/lib/sly-buttons.elc
44
%%THIS_LISPDIR%%/lib/sly-cl-indent.el
45
%%THIS_LISPDIR%%/lib/sly-cl-indent.elc
46
%%THIS_LISPDIR%%/lib/sly-common.el
47
%%THIS_LISPDIR%%/lib/sly-common.elc
48
%%THIS_LISPDIR%%/lib/sly-completion.el
49
%%THIS_LISPDIR%%/lib/sly-completion.elc
50
%%THIS_LISPDIR%%/lib/sly-messages.el
51
%%THIS_LISPDIR%%/lib/sly-messages.elc
52
%%THIS_LISPDIR%%/lib/sly-parse.el
53
%%THIS_LISPDIR%%/lib/sly-parse.elc
54
%%THIS_LISPDIR%%/lib/sly-tests.el
55
%%THIS_LISPDIR%%/lib/sly-tests.elc
56
%%THIS_LISPDIR%%/sly-autoloads.el
57
%%THIS_LISPDIR%%/sly.el
58
%%THIS_LISPDIR%%/sly.elc
59
%%THIS_LISPDIR%%/slynk/backend/abcl.lisp
60
%%THIS_LISPDIR%%/slynk/backend/allegro.lisp
61
%%THIS_LISPDIR%%/slynk/backend/ccl.lisp
62
%%THIS_LISPDIR%%/slynk/backend/clasp.lisp
63
%%THIS_LISPDIR%%/slynk/backend/clisp.lisp
64
%%THIS_LISPDIR%%/slynk/backend/cmucl.lisp
65
%%THIS_LISPDIR%%/slynk/backend/corman.lisp
66
%%THIS_LISPDIR%%/slynk/backend/ecl.lisp
67
%%THIS_LISPDIR%%/slynk/backend/lispworks.lisp
68
%%THIS_LISPDIR%%/slynk/backend/mkcl.lisp
69
%%THIS_LISPDIR%%/slynk/backend/sbcl.lisp
70
%%THIS_LISPDIR%%/slynk/backend/scl.lisp
71
%%THIS_LISPDIR%%/slynk/metering.lisp
72
%%THIS_LISPDIR%%/slynk/slynk-apropos.lisp
73
%%THIS_LISPDIR%%/slynk/slynk-backend.lisp
74
%%THIS_LISPDIR%%/slynk/slynk-completion.lisp
75
%%THIS_LISPDIR%%/slynk/slynk-gray.lisp
76
%%THIS_LISPDIR%%/slynk/slynk-loader.lisp
77
%%THIS_LISPDIR%%/slynk/slynk-match.lisp
78
%%THIS_LISPDIR%%/slynk/slynk-rpc.lisp
79
%%THIS_LISPDIR%%/slynk/slynk-source-file-cache.lisp
80
%%THIS_LISPDIR%%/slynk/slynk-source-path-parser.lisp
81
%%THIS_LISPDIR%%/slynk/slynk.asd
82
%%THIS_LISPDIR%%/slynk/slynk.lisp
83
%%THIS_LISPDIR%%/slynk/start-slynk.lisp
84
%%THIS_LISPDIR%%/slynk/xref.lisp
85
%%THIS_LISPDIR%%/test/sly-autodoc-tests.el
86
%%THIS_LISPDIR%%/test/sly-cl-indent-test.txt
87
%%THIS_LISPDIR%%/test/sly-fontifying-fu-tests.el
88
%%THIS_LISPDIR%%/test/sly-indentation-tests.el
89
%%THIS_LISPDIR%%/test/sly-mrepl-tests.el
90
%%THIS_LISPDIR%%/test/sly-parse-tests.el
91
%%THIS_LISPDIR%%/test/sly-stickers-tests.el

Return to bug 253991