Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2019 11:56:41 +0000 (UTC)
From:      Kurt Jaeger <pi@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r491342 - head/math/maxima
Message-ID:  <201901271156.x0RBufMf058100@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pi
Date: Sun Jan 27 11:56:41 2019
New Revision: 491342
URL: https://svnweb.freebsd.org/changeset/ports/491342

Log:
  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

Modified:
  head/math/maxima/Makefile

Modified: head/math/maxima/Makefile
==============================================================================
--- head/math/maxima/Makefile	Sun Jan 27 11:08:28 2019	(r491341)
+++ head/math/maxima/Makefile	Sun Jan 27 11:56:41 2019	(r491342)
@@ -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 
 
 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
@@ -87,5 +90,8 @@ 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901271156.x0RBufMf058100>