From 76925358cbd78e846c23890544c7dba8c405b858 Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 30 Oct 2005 11:13:25 +0000 Subject: [PATCH] small symbolics computation program written in scheme. --- math/jacal/Makefile | 42 +++++++++++++++++++++++++++++ math/jacal/distinfo | 4 +++ math/jacal/patches/patch-Makefile | 45 +++++++++++++++++++++++++++++++ math/jacal/pkg/DESCR | 7 +++++ math/jacal/pkg/PLIST | 42 +++++++++++++++++++++++++++++ 5 files changed, 140 insertions(+) create mode 100644 math/jacal/Makefile create mode 100644 math/jacal/distinfo create mode 100644 math/jacal/patches/patch-Makefile create mode 100644 math/jacal/pkg/DESCR create mode 100644 math/jacal/pkg/PLIST diff --git a/math/jacal/Makefile b/math/jacal/Makefile new file mode 100644 index 00000000000..a85189e4527 --- /dev/null +++ b/math/jacal/Makefile @@ -0,0 +1,42 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2005/10/30 11:13:25 espie Exp $ + +COMMENT= "symbolics math system" + +CATEGORIES= math + +V=1b5 +DISTNAME= jacal$V +PKGNAME= jacal-$V +EXTRACT_SUFX= .zip + +HOMEPAGE= http://swissnet.ai.mit.edu/~jaffer/SCM.html + +MASTER_SITES= ftp://ftp.swiss.ai.mit.edu/pub/scm/ + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_FTP= Yes + +WRKDIST= ${WRKDIR}/jacal + +NO_REGRESS= Yes +PKG_ARCH= * + +do-build: + touch ${WRKDIST}/srcdir.mk + +FAKE_FLAGS=prefix=${TRUEPREFIX}/ DESTDIR=${WRKINST} + +post-install: + ${INSTALL_DATA} ${WRKDIST}/jacal.info ${PREFIX}/info + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/jacal + ${INSTALL_DATA} ${WRKDIST}/demo ${PREFIX}/share/doc/jacal + ${INSTALL_DATA} ${WRKDIST}/test.math ${PREFIX}/share/doc/jacal + ${INSTALL_DATA} ${WRKDIST}/rw.math ${PREFIX}/share/doc/jacal + ${INSTALL_DATA} ${WRKDIST}/ANNOUNCE ${PREFIX}/share/doc/jacal + +RUN_DEPENDS=:scm-*:lang/scm + +.include diff --git a/math/jacal/distinfo b/math/jacal/distinfo new file mode 100644 index 00000000000..7bd768443c4 --- /dev/null +++ b/math/jacal/distinfo @@ -0,0 +1,4 @@ +MD5 (jacal1b5.zip) = cd65d0ab16ca9a10a065cdaf81724b9b +RMD160 (jacal1b5.zip) = cd6c27919b482b27d7486b5d99ebde36e5590192 +SHA1 (jacal1b5.zip) = dae531b70eaf039e055da166401d7e58f07d6a07 +SIZE (jacal1b5.zip) = 246930 diff --git a/math/jacal/patches/patch-Makefile b/math/jacal/patches/patch-Makefile new file mode 100644 index 00000000000..09c2f090185 --- /dev/null +++ b/math/jacal/patches/patch-Makefile @@ -0,0 +1,45 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2005/10/30 11:13:25 espie Exp $ +--- Makefile.orig Sun Oct 30 11:39:54 2005 ++++ Makefile Sun Oct 30 11:40:32 2005 +@@ -71,25 +71,25 @@ $(infodir)jacal.info.gz: $(infodir)jacal + gzip -f $(infodir)jacal.info + + pinstall: jacal.1 +- test -d $(mandir) || mkdir $(mandir) +- test -d $(man1dir) || mkdir $(man1dir) +- -cp jacal.1 $(man1dir) +- test -d $(libdir) || mkdir $(libdir) +- test -d $(JACALLIB) || mkdir $(JACALLIB) +- -cp $(sfiles) $(cfiles) $(gfiles) jacalcat Makefile COPYING HELP $(JACALLIB) ++ test -d $(DESTDIR)$(mandir) || mkdir $(DESTDIR)$(mandir) ++ test -d $(DESTDIR)$(man1dir) || mkdir $(DESTDIR)$(man1dir) ++ -cp jacal.1 $(DESTDIR)$(man1dir) ++ test -d $(DESTDIR)$(libdir) || mkdir $(DESTDIR)$(libdir) ++ test -d $(DESTDIR)$(JACALLIB) || mkdir $(DESTDIR)$(JACALLIB) ++ -cp $(sfiles) $(cfiles) $(gfiles) jacalcat Makefile COPYING HELP $(DESTDIR)$(JACALLIB) + + install: pinstall +- echo "(use-modules (ice-9 slib))" > $(JACALLIB)guile.scm +- echo "(slib:load \"$(JACALLIB)math\")" >> $(JACALLIB)guile.scm +- echo "(math)" >> $(JACALLIB)guile.scm +- echo "(slib:load \"$(JACALLIB)math\")" > $(JACALLIB)go.scm +- echo "(math)" >> $(JACALLIB)go.scm ++ echo "(use-modules (ice-9 slib))" > $(DESTDIR)$(JACALLIB)guile.scm ++ echo "(slib:load \"$(JACALLIB)math\")" >> $(DESTDIR)$(JACALLIB)guile.scm ++ echo "(math)" >> $(DESTDIR)$(JACALLIB)guile.scm ++ echo "(slib:load \"$(JACALLIB)math\")" > $(DESTDIR)$(JACALLIB)go.scm ++ echo "(math)" >> $(DESTDIR)$(JACALLIB)go.scm + test -d $(bindir) || mkdir $(bindir) +- echo '#! /bin/sh' > $(bindir)jacal +- echo JACALDIR=$(JACALLIB) >> $(bindir)jacal +- echo VERSION=$(VERSION) >> $(bindir)jacal +- cat jacal.sh >> $(bindir)jacal +- chmod +x $(bindir)jacal ++ echo '#! /bin/sh' > $(DESTDIR)$(bindir)jacal ++ echo JACALDIR=$(JACALLIB) >> $(DESTDIR)$(bindir)jacal ++ echo VERSION=$(VERSION) >> $(DESTDIR)$(bindir)jacal ++ cat jacal.sh >> $(DESTDIR)$(bindir)jacal ++ chmod +x $(DESTDIR)$(bindir)jacal + + uninstall: + -rm $(bindir)jacal diff --git a/math/jacal/pkg/DESCR b/math/jacal/pkg/DESCR new file mode 100644 index 00000000000..68c38bbfc24 --- /dev/null +++ b/math/jacal/pkg/DESCR @@ -0,0 +1,7 @@ +Jacal is a symbolics computation program written in scheme. + +Its features include partial derivation, matrix computations +and tensor calculus. + +There are some demonstration files under +${PREFIX}/share/doc/jacal diff --git a/math/jacal/pkg/PLIST b/math/jacal/pkg/PLIST new file mode 100644 index 00000000000..ece53c1fb51 --- /dev/null +++ b/math/jacal/pkg/PLIST @@ -0,0 +1,42 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2005/10/30 11:13:25 espie Exp $ +bin/jacal +@info info/jacal.info +lib/jacal/ +lib/jacal/COPYING +lib/jacal/English.scm +lib/jacal/HELP +lib/jacal/Makefile +lib/jacal/builtin.scm +lib/jacal/combin.scm +lib/jacal/debug.scm +lib/jacal/elim.scm +lib/jacal/ext.scm +lib/jacal/factors.scm +lib/jacal/ff.scm +lib/jacal/func.scm +lib/jacal/go.scm +lib/jacal/grammar.scm +lib/jacal/guile.scm +lib/jacal/hensel.scm +lib/jacal/hist.scm +lib/jacal/info.scm +lib/jacal/jacalcat +lib/jacal/math.scm +lib/jacal/modeinit.scm +lib/jacal/norm.scm +lib/jacal/poly.scm +lib/jacal/sexp.scm +lib/jacal/sqfree.scm +lib/jacal/tensor.scm +lib/jacal/toploads.scm +lib/jacal/types.scm +lib/jacal/unparse.scm +lib/jacal/uv-hensel.scm +lib/jacal/vect.scm +lib/jacal/view.scm +@man man/man1/jacal.1 +share/doc/jacal/ +share/doc/jacal/ANNOUNCE +share/doc/jacal/demo +share/doc/jacal/rw.math +share/doc/jacal/test.math