aboutsummaryrefslogtreecommitdiffstats
path: root/lang/sbcl
diff options
context:
space:
mode:
authorjrm <jrm@FreeBSD.org>2017-08-15 01:06:38 +0800
committerjrm <jrm@FreeBSD.org>2017-08-15 01:06:38 +0800
commitb279be1e3a72d86852d87f8a023d9d7f5dcdc82a (patch)
treef6d2534157eaf410066e0af50352e73f03597c85 /lang/sbcl
parent5dfd80fb4de0c710d883fbd8945a812d843c418b (diff)
downloadfreebsd-ports-gnome-b279be1e3a72d86852d87f8a023d9d7f5dcdc82a.tar.gz
freebsd-ports-gnome-b279be1e3a72d86852d87f8a023d9d7f5dcdc82a.tar.zst
freebsd-ports-gnome-b279be1e3a72d86852d87f8a023d9d7f5dcdc82a.zip
lang/sbcl: Install default system-wide startup script
- patch to search for the system-wide startup script under ${PREFIX}/etc/ - patch documentation, so it refers to ${PREFIX}/etc/ instead of /etc - startup script loads asdf and sets asdf:*central-registry* to the location where the cl-* ports install asd files Approved by: krion (maintainer) Differential Revision: https://reviews.freebsd.org/D12018
Diffstat (limited to 'lang/sbcl')
-rw-r--r--lang/sbcl/Makefile10
-rw-r--r--lang/sbcl/files/sbclrc.in6
-rw-r--r--lang/sbcl/pkg-plist1
3 files changed, 17 insertions, 0 deletions
diff --git a/lang/sbcl/Makefile b/lang/sbcl/Makefile
index 7980d45a0f0f..2984b8737992 100644
--- a/lang/sbcl/Makefile
+++ b/lang/sbcl/Makefile
@@ -3,6 +3,7 @@
PORTNAME= sbcl
PORTVERSION= 1.3.20
DISTVERSIONSUFFIX= -source
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= lang lisp
MASTER_SITES= SF/sbcl/sbcl/${PORTVERSION} \
@@ -44,6 +45,8 @@ MAKE_SH_ARGS?= --prefix="${PREFIX}" \
MAKE_SH_ARGS+= --dynamic-space-size=${DYNAMIC_SPACE_SIZE}
.endif
+SUB_FILES= sbclrc
+
# All options explained into file: ${WRKSRC}/base-target-features.lisp-expr
OPTIONS_DEFINE= DOCS QSHOW RENAME SAFEPOINT THREADS UNICODE XREF ZLIB
OPTIONS_DEFAULT= RENAME SBCL UNICODE
@@ -128,6 +131,12 @@ CORE= sbcl_core
post-patch-RENAME-on:
${GREP} -Frl '.core' ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e 's|\.core|_core|g'
+post-patch:
+ @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' \
+ ${WRKSRC}/src/code/toplevel.lisp \
+ ${WRKSRC}/doc/sbcl.1 \
+ ${WRKSRC}/doc/manual/start-stop.texinfo
+
do-build:
(cd ${WRKSRC} && ${SH} make.sh ${MAKE_SH_ARGS})
@@ -143,6 +152,7 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/contrib/${M}/*.[la]* \
${STAGEDIR}${PREFIX}/lib/sbcl/${M}/
.endfor
+ ${INSTALL_DATA} ${WRKDIR}/sbclrc ${STAGEDIR}${PREFIX}/etc/sbclrc.sample
post-build-DOCS-on:
${DO_MAKE_BUILD} -C ${WRKSRC}/doc/manual info html
diff --git a/lang/sbcl/files/sbclrc.in b/lang/sbcl/files/sbclrc.in
new file mode 100644
index 000000000000..60058b426d1c
--- /dev/null
+++ b/lang/sbcl/files/sbclrc.in
@@ -0,0 +1,6 @@
+(require "asdf")
+
+(setf asdf:*central-registry*
+ (list* '*default-pathname-defaults*
+ #p"%%PREFIX%%/lib/common-lisp/system-registry/"
+ asdf:*central-registry*))
diff --git a/lang/sbcl/pkg-plist b/lang/sbcl/pkg-plist
index 60d55f0b037d..06ce37e4bc6c 100644
--- a/lang/sbcl/pkg-plist
+++ b/lang/sbcl/pkg-plist
@@ -146,3 +146,4 @@ lib/sbcl/sb-sprof/test.lisp
lib/sbcl/sbcl.mk
lib/sbcl/sbcl%%CORE_SUFFIX%%
man/man1/sbcl.1.gz
+@sample etc/sbclrc.sample