Skip to content
Permalink
Browse files

New port: maxima-lisp. Whatever lisp maxima is using (clisp-2.29, for…

… now).

git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@4316 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Gregory Wright
Gregory Wright committed Dec 27, 2003
1 parent 9170bd7 commit e7129b81f528ff66eb37416a20979738508621d3
@@ -0,0 +1,96 @@
# $Id: Portfile,v 1.1 2003/12/27 19:22:03 gwright Exp $

PortSystem 1.0
name maxima-lisp
version 2.29
categories lang
maintainers gwright@comcast.net
platforms darwin

description The Clisp Common Lisp Implementation, as used by Maxima
long_description \
CLISP is a Common Lisp implementation by Bruno Haible, \
formerly of Karlsruhe University, and Michael Stoll, \
formerly of Munich University, both in Germany. \
It mostly supports the Lisp described in the ANSI \
Common Lisp standard. \
\
CLISP includes an interpreter, a compiler, almost all \
of CLOS, a foreign language interface and a socket \
interface. An X11 interface is available through CLX \
and Garnet. Command line editing is provided by \
readline.

#bugs Version 2.29 is compatible with maxima 5.9.0. Version \
# 2.30 introduced floating point bugs that maxima trips \
# over. 2.31 doesn't build under OS X yet.

set maxima-lisp-name clisp

distfiles ${maxima-lisp-name}-${version}${extract.sufx}

homepage http://clisp.cons.org/
master_sites http://cvs2.cons.org/ftp-area/clisp/source/2.29/ \
http://ftp.gnu.org/pub/gnu/clisp/release/ \
http://telia.dl.sourceforge.net/sourceforge/clisp/

checksums md5 53f7cfba5c5f3f7d536541e1df210b74

pre-patch { cd ${workpath}
file rename ${maxima-lisp-name} ${maxima-lisp-name}-${version}
}

patchfiles patch-Makefile.in \
patch-_clisp.c \
patch-_distmakefile \
patch-configure \
patch-makemake.in \
patch-stream.d

worksrcdir ${maxima-lisp-name}-${version}
build.dir ${workpath}/${worksrcdir}/src

pre-configure { file rename ${build.dir}/_${maxima-lisp-name}.1 \
${build.dir}/_${name}.1
file rename ${build.dir}/_${maxima-lisp-name}.html \
${build.dir}/_${name}.html

file rename ${build.dir}/readline/doc/clreadline.3 \
${build.dir}/readline/doc/mlreadline.3
file rename ${build.dir}/readline/doc/clreadline.html \
${build.dir}/readline/doc/mlreadline.html
file rename ${build.dir}/readline/doc/clreadline.dvi \
${build.dir}/readline/doc/mlreadline.dvi

file rename ${build.dir}/gettext/po/clisplow_de.gmo \
${build.dir}/gettext/po/maxima-lisplow_de.gmo
file rename ${build.dir}/gettext/po/clisplow_en.gmo \
${build.dir}/gettext/po/maxima-lisplow_en.gmo
file rename ${build.dir}/gettext/po/clisplow_es.gmo \
${build.dir}/gettext/po/maxima-lisplow_es.gmo
file rename ${build.dir}/gettext/po/clisplow_fr.gmo \
${build.dir}/gettext/po/maxima-lisplow_fr.gmo
file rename ${build.dir}/gettext/po/clisplow_nl.gmo \
${build.dir}/gettext/po/maxima-lisplow_nl.gmo
}

post-configure { cd ${build.dir}
system "./makemake --without-dynamic-ffi \
--with-readline --with-gettext \
--prefix=${prefix} > Makefile"

system "make config.lisp"
}

build { system "ulimit -s 8192 && \
cd ${build.dir} && \
make && \
make check"
}

pre-destroot { cd ${build.dir} }

post-destroot { file rename ${destroot}/${prefix}/bin/${maxima-lisp-name} \
${destroot}/${prefix}/bin/${name}
}

@@ -0,0 +1,37 @@
--- src/gettext/po/Makefile.in.sav Fri Dec 26 17:48:37 2003
+++ src/gettext/po/Makefile.in Fri Dec 26 17:50:06 2003
@@ -94,15 +94,15 @@
if [ ! -d "$$destdir/$$lang" ] ; then mkdir "$$destdir/$$lang" ; fi; \
if [ ! -d "$$dir" ] ; then mkdir "$$dir" ; fi; \
if test -r $$cat; then \
- echo "installing $$cat as $$dir/$(PACKAGE).mo"; \
- $(INSTALL_DATA) $$cat "$$dir/$(PACKAGE).mo"; \
- echo "installing clisplow_$$cat as $$dir/clisplow.mo"; \
- $(INSTALL_DATA) clisplow_$$cat "$$dir/clisplow.mo"; \
+ echo "installing $$cat as $$dir/maxima-lisp.mo"; \
+ $(INSTALL_DATA) $$cat "$$dir/maxima-lisp.mo"; \
+ echo "installing maxima-lisplow_$$cat as $$dir/maxima-lisplow.mo"; \
+ $(INSTALL_DATA) maxima-lisplow_$$cat "$$dir/maxima-lisplow.mo"; \
else \
- echo "installing $(srcdir)/$$cat as $$dir/$(PACKAGE).mo"; \
- $(INSTALL_DATA) $(srcdir)/$$cat "$$dir/$(PACKAGE).mo"; \
- echo "installing $(srcdir)/clisplow_$$cat as $$dir/clisplow.mo"; \
- $(INSTALL_DATA) $(srcdir)/clisplow_$$cat "$$dir/clisplow.mo"; \
+ echo "installing $(srcdir)/$$cat as $$dir/maxima-lisp.mo"; \
+ $(INSTALL_DATA) $(srcdir)/$$cat "$$dir/maxima-lisp.mo"; \
+ echo "installing $(srcdir)/maxima-lisplow_$$cat as $$dir/maxima-lisplow.mo"; \
+ $(INSTALL_DATA) $(srcdir)/maxima-lisplow_$$cat "$$dir/maxima-lisplow.mo"; \
fi; \
done

@@ -129,8 +129,8 @@
for cat in $$catalogs; do \
cat=`basename $$cat`; \
lang=`echo $$cat | sed 's/\.gmo$$//'`; \
- rm -f "$(localedir)/$$lang/LC_MESSAGES/$(PACKAGE).mo"; \
- rm -f "$(localedir)/$$lang/LC_MESSAGES/clisplow.mo"; \
+ rm -f "$(localedir)/$$lang/LC_MESSAGES/maxim-lisp.mo"; \
+ rm -f "$(localedir)/$$lang/LC_MESSAGES/maxima-lisplow.mo"; \
done

mostlyclean:
@@ -0,0 +1,15 @@
--- src/_clisp.c.sav Fri Feb 7 14:42:33 2003
+++ src/_clisp.c Fri Feb 7 14:43:03 2003
@@ -31,12 +31,8 @@
# include <string.h>

/* Declare malloc(). */
-#ifdef HAVE_STDLIB_H
# include <stdlib.h>
-#endif
-#ifdef HAVE_UNISTD_H
# include <unistd.h>
-#endif

/* Declare errno. */
# include <errno.h>
@@ -0,0 +1,24 @@
--- src/_distmakefile.sav Fri Dec 26 13:40:44 2003
+++ src/_distmakefile Fri Dec 26 13:41:13 2003
@@ -92,7 +92,7 @@
#endif

#ifdef GNU_READLINE
-install-man : doc/clisp.1 doc/clisp.html doc/clreadline.3 doc/clreadline.html doc/clreadline.dvi force
+install-man : doc/clisp.1 doc/clisp.html doc/mlreadline.3 doc/mlreadline.html doc/mlreadline.dvi force
#else
install-man : doc/clisp.1 doc/clisp.html force
#endif
@@ -108,9 +108,9 @@
test ! -f doc/clisp.dvi || $(INSTALL_DATA) doc/clisp.dvi $(dvidir)/clisp.dvi
#ifdef GNU_READLINE
if [ ! -d $(mandir)/man3 ] ; then mkdir $(mandir)/man3 ; fi
- $(INSTALL_DATA) doc/clreadline.3 $(mandir)/man3/clreadline.3
- $(INSTALL_DATA) doc/clreadline.html $(htmldir)/clreadline.html
- $(INSTALL_DATA) doc/clreadline.dvi $(dvidir)/clreadline.dvi
+ $(INSTALL_DATA) doc/mlreadline.3 $(mandir)/man3/mlreadline.3
+ $(INSTALL_DATA) doc/mlreadline.html $(htmldir)/mlreadline.html
+ $(INSTALL_DATA) doc/mlreadline.dvi $(dvidir)/mlreadline.dvi
#endif

install-doc : force
@@ -0,0 +1,11 @@
--- src/gettext/configure.sav Fri Dec 26 17:33:11 2003
+++ src/gettext/configure Fri Dec 26 17:33:27 2003
@@ -1073,7 +1073,7 @@

test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'

-PACKAGE=clisp
+PACKAGE=maxima-lisp

VERSION=`cat ${srcdir}/../VERSION`

0 comments on commit e7129b8

Please sign in to comment.
You can’t perform that action at this time.