<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1c1bc1821307cc1a500d13c3c76322eab510dd96">https://github.com/macports/macports-ports/commit/1c1bc1821307cc1a500d13c3c76322eab510dd96</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 1c1bc1821307cc1a500d13c3c76322eab510dd96
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Mon Jul 24 17:24:36 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> fricas: add hunchentoot variant
</span>---
math/fricas/Portfile | 33 +++++++++--
math/fricas/files/sbcl-home.patch | 115 --------------------------------------
2 files changed, 27 insertions(+), 121 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/fricas/Portfile b/math/fricas/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f1aea561d4e..789d0b32c02 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/fricas/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/fricas/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span>
name fricas
version 1.3.9
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories math
maintainers {@pietvo vanoostrum.org:pieter} openmaintainer
platforms darwin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,8 +33,6 @@ checksums rmd160 cccf6e0cecdb703f41cc2513896930641a0d4198 \
</span> sha256 e513dc7df33418dd25eabf08807265c1dc70c29db2e2421d2793372671990b37 \
size 10949173
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles sbcl-home.patch
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.dir ${workpath}/fricas-build
configure.cmd ${worksrcpath}/configure
pre-configure {file mkdir ${configure.dir}}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -57,12 +55,33 @@ variant x11 description {Enable X11 support.\
</span>
universal_variant no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+set sbcl_script {sbcl --control-stack-size 512 --dynamic-space-size 6000}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set orig_sbcl_script $sbcl_script
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# emulate behavior from la.lisp from hasbcl-XXX.tar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+variant hunchentoot description {Include Hunchentoot into fricas} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_build-append port:cl-hunchentoot
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set sbcl_script ${workpath}/hsbcl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ pre-configure {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set loadcmd ${orig_sbcl_script}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append loadcmd " --non-interactive"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append loadcmd " --eval '(require \"asdf\")'"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append loadcmd " --eval '(require \"hunchentoot\")'"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ append loadcmd " --eval '(sb-ext::save-lisp-and-die \"${sbcl_script}\" :executable t) '"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set tempdir [mkdtemp "/tmp/fricas.XXXXXXXX"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { ! [catch {system -W ${tempdir} "${loadcmd} 2>&1"}] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${tempdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file delete -force ${tempdir}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return -code error "${loadcmd} cannot be executed"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> variant sbcl conflicts ccl ecl \
description {Use SBCL as lisp implementation} {
depends_lib-append port:sbcl
<span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append --with-lisp='sbcl \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --control-stack-size 512 --dynamic-space-size 6000' \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-sbcl-home=${prefix}/lib/sbcl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.args-append --with-lisp='${sbcl_script}'
</span> }
if { ${configure.build_arch} eq "x86_64" } {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -98,3 +117,5 @@ default_variants +x11
</span> if { ![variant_isset ccl] && ![variant_isset ecl] } {
default_variants +sbcl
}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+default_variants-append +hunchentoot
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/fricas/files/sbcl-home.patch b/math/fricas/files/sbcl-home.patch
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 35eb3fd7378..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/math/fricas/files/sbcl-home.patch
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,115 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-commit 0a6b5f7ffdebfed60f80da777318d0a41c5fee5a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Author: Kirill A. Korinsky <kirill@korins.ky>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-Date: Fri Oct 28 18:45:26 2022 +0200
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Introduced a way to hardcode SBCL_HOME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- I've added a configure argument `--with-sbcl-home` which allows to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- specify desired `SBCL_HOME`.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Without it fricas' lisp can't be really used without specification of
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- `SBCL_HOME` environment variable at some cases that leads to wired
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- issue like:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ```
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- (1) -> )lisp (require :asdf)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- >> System error:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- Don't know how to REQUIRE ASDF.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- See also:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- The SBCL Manual, Variable SB-EXT:*MODULE-PROVIDER-FUNCTIONS*
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- The SBCL Manual, Function REQUIRE
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- (1) ->
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ```
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git Makefile.in Makefile.in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index d814d46f..75c07d2b 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile.in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -142,6 +142,9 @@ install-src:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo FRICAS_VERSION='"${PACKAGE_VERSION}"' >> '${COMMAND}'.tmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo FRICAS_LISP_FLAVOR='"${FRICAS_LISP_FLAVOR}"' >> '${COMMAND}'.tmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- echo FRICAS_LISP_VERSION='"${FRICAS_LISP_VERSION}"' >> '${COMMAND}'.tmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if test "x$(SBCL_HOME)" != "x" ; then \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ echo export SBCL_HOME='"$${SBCL_HOME:-$(SBCL_HOME)}"' >> '${COMMAND}'.tmp ; \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- cat $(fricas_src_srcdir)/etc/fricas >> '${COMMAND}'.tmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- $(INSTALL_SCRIPT) '${COMMAND}'.tmp '${COMMAND}'
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- -rm '${COMMAND}'.tmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git config/var-def.mk config/var-def.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 2247de76..65d09551 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- config/var-def.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ config/var-def.mk
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -170,6 +170,8 @@ FASLEXT = @fricas_fasl_type2@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- FRICAS_LISP_FLAVOR=@fricas_lisp_flavor@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- FRICAS_LISP_VERSION=@fricas_lisp_version@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+SBCL_HOME=@sbcl_home@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ##
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ##
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git configure configure
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index 804f0364..db73e99c 100755
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- configure
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ configure
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -663,6 +663,7 @@ GMP_LIBDIR
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GMP_LDFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GMP_CPPFLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GMP_WRAP_SO_TARGET
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+sbcl_home
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- SOLIB_FLAGS
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBSPAD_SO_TARGET
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- fricas_lisp_version
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -752,6 +753,7 @@ enable_case_insensitive_file_system_check
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_pre_generated
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_lisp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_lisp_flavor
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+with_sbcl_home
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_gmp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_gmp_include
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- with_gmp_lib
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1419,6 +1421,7 @@ Optional Packages:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- code.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-lisp=L use L as Lisp platform
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-lisp-flavor=F obsolete and ignored
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ --with-sbcl-home=PATH specify the path of hardcoded SBCL_HOME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-gmp=PATH specify prefix directory for the installed GMP
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- package. Equivalent to
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- --with-gmp-include=PATH/include plus
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -4202,6 +4205,17 @@ esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+## Configure desired SBCL_HOME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+# Check whether --with-sbcl-home was given.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+if test "${with_sbcl_home+set}" = set; then :
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ withval=$with_sbcl_home; sbcl_home=$withval
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+else
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sbcl_home=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+fi
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ## In case our underlying lisp is SBCL or Closure CL, we provide a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ## wrapper to enable GMP bignums in lisp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GMP_WRAP_SO_TARGET=""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-diff --git configure.ac configure.ac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-index ff7fe65c..650ad5a6 100644
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- configure.ac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ configure.ac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -325,6 +325,13 @@ esac
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST(LIBSPAD_SO_TARGET)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- AC_SUBST(SOLIB_FLAGS)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+## Configure desired SBCL_HOME
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+AC_ARG_WITH([sbcl-home],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ AS_HELP_STRING([--with-sbcl-home=PATH], [specify the path of hardcoded SBCL_HOME]),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sbcl_home=$withval,
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ sbcl_home="")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+AC_SUBST(sbcl_home)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ## In case our underlying lisp is SBCL or Closure CL, we provide a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ## wrapper to enable GMP bignums in lisp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- GMP_WRAP_SO_TARGET=""
</span></pre><pre style='margin:0'>
</pre>