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

Collapse All | Expand All

(-)editors/sly-named-readtables/Makefile (+57 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	sly-named-readtables
4
PORTVERSION=	20191013
5
CATEGORIES=	editors elisp
6
PKGNAMESUFFIX=	${EMACS_PKGNAMESUFFIX}
7
8
MAINTAINER=	olce.freebsd.ports@certner.fr
9
COMMENT=	Support different readtables in the same file for SLY
10
11
LICENSE=	PD
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=	joaotavora
20
GH_TAGNAME=	a5a42674ccffa97ccd5e4e9742beaf3ea719931f
21
22
NO_ARCH=	yes
23
24
EMACS_COMPILE=	${EMACS_CMD} --batch --no-site-file -L ${WRKSRC} -f batch-byte-compile
25
26
THIS_LISPDIR=	${PREFIX}/${EMACS_VERSION_SITE_LISPDIR}/${PORTNAME}
27
PLIST_SUB=	THIS_LISPDIR=${THIS_LISPDIR}
28
29
# File is buggy and can't be used as documented upstream
30
EXCLUDED_FILES=	${PORTNAME}-autoloads.el
31
32
OPTIONS_DEFINE=	DOCS EXAMPLES
33
34
PORTDOCS=	README.md screenshot.png
35
PORTEXAMPLES=	example.lisp
36
37
do-build:
38
	cd ${WRKSRC} && ${EMACS_COMPILE} sly-*.el
39
40
do-install:
41
	@${MKDIR} ${STAGEDIR}${THIS_LISPDIR}
42
	(cd ${WRKSRC} && \
43
		${COPYTREE_SHARE} . ${STAGEDIR}${THIS_LISPDIR} \
44
		"! ( -depth 1 ( ${EXCLUDED_FILES:C/^(.*)$/-name \1 -o/} \
45
			${PORTDOCS:C/^(.*)$/-name \1 -o/} \
46
			${PORTEXAMPLES:C/^(.*)$/-name \1 -o/} \
47
			-name LICENSE -o -name *\.md -o -name \.[^.]* ) )")
48
49
post-install-DOCS-on:
50
	${MKDIR} ${STAGEDIR}${DOCSDIR}
51
	${INSTALL_DATA} ${PORTDOCS:%=${WRKSRC}/%} ${STAGEDIR}${DOCSDIR}
52
53
post-install-EXAMPLES-on:
54
	${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
55
	${INSTALL_DATA} ${PORTEXAMPLES:%=${WRKSRC}/%} ${STAGEDIR}${EXAMPLESDIR}
56
57
.include <bsd.port.mk>
(-)editors/sly-named-readtables/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1613660267
2
SHA256 (joaotavora-sly-named-readtables-20191013-a5a42674ccffa97ccd5e4e9742beaf3ea719931f_GH0.tar.gz) = 4ec6067b74a2126ddae5275629358a6d58fe85a4de63717b66b80af121858183
3
SIZE (joaotavora-sly-named-readtables-20191013-a5a42674ccffa97ccd5e4e9742beaf3ea719931f_GH0.tar.gz) = 28276
(-)editors/sly-named-readtables/files/patch-sly-named-readtables.el (+12 lines)
Line 0 Link Here
1
--- sly-named-readtables.el.orig	2019-10-13 21:38:43 UTC
2
+++ sly-named-readtables.el
3
@@ -107,9 +107,5 @@
4
 (defun sly-named-readtables--pass-readtable ()
5
   (list :named-readtable (sly-named-readtables--grok-current-table)))
6
 
7
-;;;###autoload
8
-(with-eval-after-load 'sly
9
-  (add-to-list 'sly-contribs 'sly-named-readtables 'append))
10
-
11
 (provide 'sly-named-readtables)
12
 ;;; sly-named-readtables.el ends here
(-)editors/sly-named-readtables/pkg-descr (+4 lines)
Line 0 Link Here
1
sly-named-readtables is an external contrib for SLY that enables
2
different readtables to be active in different parts of the same file.
3
4
WWW: https://github.com/joaotavora/sly-named-readtables
(-)editors/sly-named-readtables/pkg-message (+26 lines)
Line 0 Link Here
1
[
2
{ type: install
3
  message: <<EOM
4
To use the sly-named-readtables contrib, you must:
5
1. Register sly-named-readtables into SLY. You just have to add this line to
6
   some init file:
7
(require 'sly-named-readtables)
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. Upstream's autoloads file is consequently not necessary, and
12
   not included in this package.
13
2. Ensure that system NAMED-READTABLES is loaded by your Common Lisp
14
   implementation.
15
16
If you want sly-named-readtables to be automatically activated on each new SLY
17
session, put it in the `sly-contribs' list. E.g., you can add something like
18
this in some Emacs' init file:
19
(setq sly-contribs '(sly-fancy sly-named-readtables))
20
or customize the variable.
21
22
To enable it on demand in already running SLY sessions instead, just use the
23
`sly-enable-contrib' command, or modify `sly-contribs' and run `sly-setup'.
24
EOM
25
}
26
]
(-)editors/sly-named-readtables/pkg-plist (+4 lines)
Line 0 Link Here
1
%%THIS_LISPDIR%%/sly-named-readtables.el
2
%%THIS_LISPDIR%%/sly-named-readtables.elc
3
%%THIS_LISPDIR%%/slynk-named-readtables.asd
4
%%THIS_LISPDIR%%/slynk-named-readtables.lisp

Return to bug 253993