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

Collapse All | Expand All

(-)editors/sly-asdf/Makefile (+54 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	sly-asdf
4
PORTVERSION=	20210308
5
CATEGORIES=	editors elisp
6
PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
7
8
MAINTAINER=	olce.freebsd.ports@certner.fr
9
COMMENT=	SLY support for ASDF
10
11
LICENSE=	GPLv3
12
13
MY_DEPENDS=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/sly/sly.el:editors/sly
14
BUILD_DEPENDS=	${MY_DEPENDS}
15
RUN_DEPENDS=	${MY_DEPENDS}
16
17
USES=		emacs
18
USE_GITHUB=	yes
19
GH_ACCOUNT=	mmgeorge
20
GH_TAGNAME=	bcaeba9b73b582ae1c4fadc23c71ee7e38d9a64e
21
22
NO_ARCH=	yes
23
24
EMACS_COMPILE=	${EMACS_CMD} --batch --no-site-file -L ${WRKSRC} \
25
		-f batch-byte-compile
26
27
PLIST_THIS_LISPDIR=	${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
28
THIS_LISPDIR=		${PREFIX}/${PLIST_THIS_LISPDIR}
29
PLIST_SUB+=		THIS_LISPDIR=${PLIST_THIS_LISPDIR}
30
31
OPTIONS_DEFINE=	DOCS
32
33
PORTDOCS=	README.md
34
35
post-patch:
36
	cd ${WRKSRC} && rm -f *flymake*
37
38
do-build:
39
	cd ${WRKSRC} && ${EMACS_COMPILE} sly-*.el
40
41
do-install:
42
	@${MKDIR} ${STAGEDIR}${THIS_LISPDIR}
43
	(cd ${WRKSRC} && \
44
		${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \
45
		"! ( -depth 1 ( ${PORTDOCS:C/^(.*)$/-name \1 -o/} \
46
			-name LICENSE -o -name *\.md ) -o \
47
			-path \./test* -o -path \./.[^.]* -o \
48
			-name *\.orig )")
49
50
post-install-DOCS-on:
51
	${MKDIR} ${STAGEDIR}${DOCSDIR}
52
	${INSTALL_DATA} ${PORTDOCS:%=${WRKSRC}/%} ${STAGEDIR}${DOCSDIR}
53
54
.include <bsd.port.mk>
(-)editors/sly-asdf/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1615760525
2
SHA256 (mmgeorge-sly-asdf-20210308-bcaeba9b73b582ae1c4fadc23c71ee7e38d9a64e_GH0.tar.gz) = c23141f2c9a0dfff9a6452c7753f2c3d236ef0b36c5b1c967f61b898a3ab4ed7
3
SIZE (mmgeorge-sly-asdf-20210308-bcaeba9b73b582ae1c4fadc23c71ee7e38d9a64e_GH0.tar.gz) = 42843
(-)editors/sly-asdf/files/patch-README.md (+16 lines)
Line 0 Link Here
1
--- README.md.orig	2021-03-08 03:32:35 UTC
2
+++ README.md
3
@@ -16,9 +16,8 @@ Installing manually will require the contrib be regist
4
 ```
5
 (add-to-list 'sly-contribs 'sly-asdf 'append)
6
 ```
7
+
8
 ## Experimental
9
-SLY-ASDF currently supports a very experimental system-aware checker that builds on flymake. This loads the system in a separate process and highlights any compilation/load errors for currently opened buffers. Only tested with SBCL. Enable this with 
10
-```
11
-(setq sly-asdf-enable-experimental-syntax-checking t)
12
-(require 'sly-asdf-flymake)
13
-```
14
+Upstream currently supports a very experimental system-aware checker that
15
+builds on flymake. It is not available in this port (please use some ELPA
16
+package instead).
(-)editors/sly-asdf/files/patch-sly-asdf.el (+13 lines)
Line 0 Link Here
1
--- sly-asdf.el.orig	2021-03-08 03:32:35 UTC
2
+++ sly-asdf.el
3
@@ -354,10 +354,5 @@ in the directory of the current buffer."
4
 
5
 
6
 
7
-;;;###autoload
8
-(with-eval-after-load 'sly
9
-  (add-to-list 'sly-contribs 'sly-asdf 'append))
10
-
11
-
12
 (provide 'sly-asdf)
13
 ;;; sly-asdf.el ends here
(-)editors/sly-asdf/pkg-descr (+4 lines)
Line 0 Link Here
1
sly-asdf is an external contrib for SLY that enables specific support and
2
shortcuts for ASDF operations.
3
4
WWW: https://github.com/mmgeorge/sly-asdf
(-)editors/sly-asdf/pkg-message (+27 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
To use the sly-asdf contrib, you must:
5
1. Register sly-asdf into SLY. You just have to add this line to some init
6
   file:
7
(require 'sly-asdf)
8
   Doing this is not strictly necessary if you want to automatically activate
9
   this contrib using `sly-contribs' (see below), but it never hurts.
10
   This contrib's automatic activation at load was disabled, contrary to what
11
   upstream does.
12
2. Ensure that ASDF is loaded by your Common Lisp implementation.
13
14
If you want sly-asdf to be automatically activated on each new SLY
15
session, put it in the `sly-contribs' list. E.g., you can add something like
16
this in some Emacs' init file:
17
(setq sly-contribs '(sly-fancy sly-asdf))
18
or customize the variable.
19
20
To enable it on demand in already running SLY sessions instead, just use the
21
`sly-enable-contrib' command, or modify `sly-contribs' and run `sly-setup'.
22
23
NOTE: The experimental Flymake code has been elided from this port (it requires
24
dependencies that are not in ports currently).
25
EOM
26
}
27
]
(-)editors/sly-asdf/pkg-plist (+4 lines)
Line 0 Link Here
1
%%THIS_LISPDIR%%/sly-asdf.el
2
%%THIS_LISPDIR%%/sly-asdf.elc
3
%%THIS_LISPDIR%%/slynk-asdf.asd
4
%%THIS_LISPDIR%%/slynk-asdf.lisp

Return to bug 254016