math/maxima: fix if quicklisp is being referenced in .sbclrc

- adding a new option NOUSERINIT, enabled by default
  when enabled, if the chosen lisp implementation is sbcl (the default),
  it ensures that sbcl is run ignoring any user init file (~/.sbclrc)

PR:		234853
Submitted by:	Lorenzo Salvadore <phascolarctos@protonmail.ch> (maintainer)
Reported by:	jszhao@yeah.net
This commit is contained in:
Kurt Jaeger 2019-01-27 11:56:41 +00:00
parent 489bff9e81
commit 53f39b50b4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=491342

View File

@ -3,6 +3,7 @@
PORTNAME= maxima
PORTVERSION= 5.42.2
PORTREVISION= 1
CATEGORIES= math lisp tk
MASTER_SITES= SF/maxima/Maxima-source/${PORTVERSION}-source
@ -27,11 +28,11 @@ INFO= imaxima maxima xmaxima abs_integrate drawutils kovacicODE logic
PLIST_SUB+= PORTVERSION=${PORTVERSION}
OPTIONS_DEFINE= EXAMPLES DOCS MANPAGES TEST
OPTIONS_DEFINE= EXAMPLES DOCS NOUSERINIT MANPAGES TEST
OPTIONS_SINGLE= LISP
OPTIONS_SINGLE_LISP= CCL CMUCL SBCL
OPTIONS_DEFAULT= MANPAGES SBCL
OPTIONS_DEFAULT= NOUSERINIT MANPAGES SBCL
OPTIONS_SUB= yes
CCL_DESC= Build with Clozure Common Lisp
@ -46,6 +47,8 @@ CMUCL_RUN_DEPENDS= lisp:lang/cmucl
CMUCL_CONFIGURE_ON= --enable-cmucl
CMUCL_PLIST_SUB= BINDIR=binary-cmucl BINNAME=maxima_core
NOUSERINIT_DESC= Do not load user init file for lisp (only for sbcl)
SBCL_DESC= Build with Steel Bank Common Lisp
SBCL_BUILD_DEPENDS= sbcl:lang/sbcl
SBCL_RUN_DEPENDS= sbcl:lang/sbcl
@ -88,4 +91,7 @@ post-install-EXAMPLES-on:
post-install-MANPAGES-on:
${INSTALL_MAN} ${WRKSRC}/doc/man/maxima.1.gz ${STAGEDIR}${PREFIX}/man/man1
post-install-NOUSERINIT-on:
${REINPLACE_CMD} 's;--end-runtime-options;--end-runtime-options --no-userinit;' ${STAGEDIR}${PREFIX}/bin/maxima
.include <bsd.port.mk>