diff --git a/mbase/maxima-lisp b/mbase/maxima-lisp new file mode 100644 index 0000000..e69de29 diff --git a/ports/maxima-lisp/build b/ports/maxima-lisp/build new file mode 100755 index 0000000..0226ea5 --- /dev/null +++ b/ports/maxima-lisp/build @@ -0,0 +1,45 @@ +#!/bin/sh -e + +prepare_environ() +{ +tar xf download +mv maxima-5.45.1/* ./ +rm download +rm -r maxima-5.45.1 +} + +make_universe() +{ +ORIG_DIR=$(pwd) + +sbcl --disable-debugger << '(EOF)' +(load "configure.lisp") +(configure :interactive nil) +(quit) +(EOF) + +cd src/ + +sbcl --disable-debugger << '(EOF)' +(load "maxima-build.lisp") +(maxima-compile) +(quit) +(EOF) + +sbcl --disable-debugger << '(EOF)' +(load "maxima-build.lisp") +(maxima-load) +(maxima-dump) +(EOF) + +cd $ORIG_DIR +} + +cd 5.45.1 +make_universe +cd .. +mkdir -p "$1/usr/lib/maxima/" "$1/usr/bin/" +mv 5.45.1 "$1/usr/lib/maxima/" +install -Dm755 maxima-mid "$1/usr/bin/maxima" + +chmod 0755 "$1/usr/lib/maxima/5.45.1/src/maxima" diff --git a/ports/maxima-lisp/checksums b/ports/maxima-lisp/checksums new file mode 100644 index 0000000..08ec399 --- /dev/null +++ b/ports/maxima-lisp/checksums @@ -0,0 +1,2 @@ +fe9016276970bef214a1a244348558644514d7fdfaa4fc8b9d0e87afcbb4e7dc +d96949b49c057872478d216b002efa9352fc19e8257961390a12037d2d9e482a diff --git a/ports/maxima-lisp/depends b/ports/maxima-lisp/depends new file mode 100644 index 0000000..0e94cb0 --- /dev/null +++ b/ports/maxima-lisp/depends @@ -0,0 +1 @@ +sbcl diff --git a/ports/maxima-lisp/files/maxima-mid b/ports/maxima-lisp/files/maxima-mid new file mode 100644 index 0000000..96f7489 --- /dev/null +++ b/ports/maxima-lisp/files/maxima-mid @@ -0,0 +1,4 @@ +#!/bin/sh -e + +cd /usr/lib/maxima/5.45.1/src +./maxima $@ \ No newline at end of file diff --git a/ports/maxima-lisp/sources b/ports/maxima-lisp/sources new file mode 100644 index 0000000..bb4456d --- /dev/null +++ b/ports/maxima-lisp/sources @@ -0,0 +1,2 @@ +https://downloads.sourceforge.net/project/maxima/Maxima-source/5.45.1-source/maxima-5.45.1.tar.gz 5.45.1 +files/maxima-mid \ No newline at end of file diff --git a/ports/maxima-lisp/version b/ports/maxima-lisp/version new file mode 100644 index 0000000..180497a --- /dev/null +++ b/ports/maxima-lisp/version @@ -0,0 +1 @@ +5.45.1 1 1