package maxima

This commit is contained in:
Mid Favila 2021-12-25 13:59:53 -04:00
parent dfe54531f9
commit 9742b42e97
7 changed files with 55 additions and 0 deletions

0
mbase/maxima-lisp Normal file
View File

45
ports/maxima-lisp/build Executable file
View File

@ -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"

View File

@ -0,0 +1,2 @@
fe9016276970bef214a1a244348558644514d7fdfaa4fc8b9d0e87afcbb4e7dc
d96949b49c057872478d216b002efa9352fc19e8257961390a12037d2d9e482a

View File

@ -0,0 +1 @@
sbcl

View File

@ -0,0 +1,4 @@
#!/bin/sh -e
cd /usr/lib/maxima/5.45.1/src
./maxima $@

View File

@ -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

View File

@ -0,0 +1 @@
5.45.1 1 1