diff options
| author | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-01 18:01:58 +0000 |
|---|---|---|
| committer | Sergey Matveychuk <sem@FreeBSD.org> | 2006-05-01 18:01:58 +0000 |
| commit | b445a12fa5e230675c31bad99ca9c0937206f655 (patch) | |
| tree | cb05e408811c763663627b286a40cbb489412ef0 /math/isabelle/files | |
| parent | - Update to 3.6 (diff) | |
- Update to 2005
PR: ports/94671
Submitted by: maintainer
Diffstat (limited to 'math/isabelle/files')
| -rw-r--r-- | math/isabelle/files/Makefile | 21 | ||||
| -rw-r--r-- | math/isabelle/files/patch-etc-settings | 128 | ||||
| -rw-r--r-- | math/isabelle/files/patch-lib-Tools-doc | 10 | ||||
| -rw-r--r-- | math/isabelle/files/polyml-4.1.4-patch.ML | 31 | ||||
| -rw-r--r-- | math/isabelle/files/polyml-4.2.0.ML | 9 |
5 files changed, 82 insertions, 117 deletions
diff --git a/math/isabelle/files/Makefile b/math/isabelle/files/Makefile index 10d428934511..856f2210a630 100644 --- a/math/isabelle/files/Makefile +++ b/math/isabelle/files/Makefile @@ -3,29 +3,28 @@ # Install Isabelle from within FreeBSD ports. DESTDIR=${PREFIX}/share/isabelle -SRCDIRS=bin contrib etc lib src heaps +SRCDIRS=bin contrib etc heaps lib src all: ./build -a -b install: mkdir -p ${DESTDIR} + ${BSD_INSTALL_DATA} ANNOUNCE ${DESTDIR}/ + ${BSD_INSTALL_DATA} CONTRIBUTORS ${DESTDIR}/ ${BSD_INSTALL_DATA} COPYRIGHT ${DESTDIR}/ ${BSD_INSTALL_DATA} NEWS ${DESTDIR}/ ${BSD_INSTALL_DATA} README ${DESTDIR}/ - ${BSD_INSTALL_DATA} ANNOUNCE ${DESTDIR}/ ${BSD_INSTALL_SCRIPT} build ${DESTDIR}/ - ${BSD_INSTALL_SCRIPT} configure ${DESTDIR}/ - -rm lib/Tools/doc.orig for f in ${SRCDIRS}; \ - do for g in `find -d $$f -type d`; \ - do mkdir -p ${DESTDIR}/$$g; \ - files=`find $$g -depth 1 -type f \\! -perm +u+x`; \ - if [ "$$files" != "" ]; then ${BSD_INSTALL_DATA} \ + do for g in `find -d $$f -type d`; \ + do mkdir -p ${DESTDIR}/$$g; \ + files=`find $$g -depth 1 -type f \\! -perm +u+x`; \ + if [ "$$files" != "" ]; then ${BSD_INSTALL_DATA} \ $$files ${DESTDIR}/$$g; fi; \ - scripts=`find $$g -depth 1 -type f -perm +u+x`; \ - if [ "$$scripts" != "" ]; then ${BSD_INSTALL_SCRIPT} \ + scripts=`find $$g -depth 1 -type f -perm +u+x`; \ + if [ "$$scripts" != "" ]; then ${BSD_INSTALL_SCRIPT} \ $$scripts ${DESTDIR}/$$g; fi; \ - done; \ + done; \ done diff --git a/math/isabelle/files/patch-etc-settings b/math/isabelle/files/patch-etc-settings index 5a16d33a34ff..7fa19cbfcb4e 100644 --- a/math/isabelle/files/patch-etc-settings +++ b/math/isabelle/files/patch-etc-settings @@ -1,65 +1,36 @@ ---- etc/settings.orig Tue Jun 8 10:29:49 2004 -+++ etc/settings Fri Aug 12 17:22:30 2005 -@@ -13,61 +13,12 @@ - # binaries. Do not invent new ML system names unless you know what - # you are doing. Only one of the sections below should be activated. - -- --# try finding the poly packages from the Isabelle site in the usual places --POLYML_HOME=$(choosefrom \ -- "$ISABELLE_HOME/contrib/polyml" \ -- "$ISABELLE_HOME/../polyml" \ -- "/usr/share/polyml" \ -- "/usr/local/polyml" \ -- "/opt/polyml") -- --if [ -n "$POLYML_HOME" -a -e "$POLYML_HOME/bin/polyml-version" ]; then -- # looks like Isabelle poly packages -- ML_SYSTEM=$("$POLYML_HOME/bin/polyml-version" 2>/dev/null || echo polyml) -- ML_PLATFORM=$("$POLYML_HOME/bin/polyml-platform" 2>/dev/null || echo unknown-platform) -- ML_HOME="$POLYML_HOME/$ML_PLATFORM" -- ML_OPTIONS="-h 15000" --elif [ -e /usr/bin/poly -a -e /usr/lib/poly ]; then -- # maybe a shrink-wrapped polyml on x86-linux ... -- -- # Poly/ML 4.0, 4.1, 4.1.x -- # include version number, needed for choosing right options -- ML_SYSTEM=polyml-4.1.3 -- # processor/OS type -- ML_PLATFORM=x86-linux -- # where to find binaries -- ML_HOME=/usr/bin -- # where to find the standard database -- ML_DBASE=/usr/lib/poly/ML_dbase -- # options to pass to poly -- ML_OPTIONS="-h 15000" --fi +--- etc/settings.orig Thu Nov 24 21:53:10 2005 ++++ etc/settings Thu Nov 24 22:07:36 2005 +@@ -16,33 +16,11 @@ + # not invent new ML system names unless you know what you are doing. + # Only one of the sections below should be activated. + +-# Poly/ML 4.x +-POLY_HOME="$(type -p poly)"; [ -n "$POLY_HOME" ] && POLY_HOME="$(dirname "$POLY_HOME")" +-ML_PLATFORM=$("$ISABELLE_HOME/lib/scripts/polyml-platform") +-ML_HOME=$(choosefrom \ +- "$ISABELLE_HOME/contrib/polyml/$ML_PLATFORM" \ +- "$ISABELLE_HOME/../polyml/$ML_PLATFORM" \ +- "/usr/local/polyml/$ML_PLATFORM" \ +- "/usr/share/polyml/$ML_PLATFORM" \ +- "/opt/polyml/$ML_PLATFORM" \ +- $POLY_HOME) +-ML_SYSTEM=$("$ISABELLE_HOME/lib/scripts/polyml-version") +-ML_OPTIONS="-H 80" +-ML_DBASE="" - -# Standard ML of New Jersey 110 or later +-#SMLNJ_CYGWIN_RUNTIME=1 -#ML_SYSTEM=smlnj-110 --#ML_HOME="$ISABELLE_HOME/../smlnj/bin" +-#ML_HOME="$ISABELLE_HOME/contrib/smlnj/bin" -#ML_OPTIONS="@SMLdebug=/dev/null" -#ML_PLATFORM=$(eval $("$ML_HOME/.arch-n-opsys" 2>/dev/null); echo "$HEAP_SUFFIX") - --# MLWorks 2.0 --#ML_SYSTEM=mlworks --#ML_HOME="$ISABELLE_HOME/../mlworks/bin" --#ML_OPTIONS="" --#ML_PLATFORM="" -- -# Moscow ML 2.00 or later (experimental!) -#ML_SYSTEM=mosml --#ML_HOME="$ISABELLE_HOME/../mosml/bin" +-#ML_HOME="$ISABELLE_HOME/contrib/mosml/bin" -#ML_PLATFORM="" -#ML_OPTIONS="" - --# Standard ML of New Jersey 0.93 --#ML_SYSTEM=smlnj-0.93 --#ML_HOME=/usr/local/ldist/DIR/sml-0.93/src --#ML_OPTIONS="" --#ML_PLATFORM="" -- -+# %%ML_COMMENT%% +ML_SYSTEM=%%ML_SYSTEM%% +ML_HOME=%%ML_HOME%% +ML_OPTIONS=%%ML_OPTIONS%% @@ -67,56 +38,21 @@ +ML_DBASE=%%ML_DBASE%% ### - ### Compilation options for isatool usedir -@@ -79,7 +30,6 @@ - # for overriding proof objects in HOL image - HOL_PROOF_OBJECTS="" - -- - ### - ### Document preparation - ### -@@ -155,7 +105,7 @@ + ### Compilation options (cf. isatool usedir) +@@ -116,7 +94,7 @@ ### - #Where to look for docs (multiple dirs separated by ':'). + # Where to look for docs (multiple dirs separated by ':'). -ISABELLE_DOCS="$ISABELLE_HOME/doc" +ISABELLE_DOCS="%%PREFIX%%/share/doc/isabelle" - #The dvi file viewer - DVI_VIEWER=xdvi -@@ -181,12 +131,7 @@ - - # Proof General path, look in a variety of places - ISABELLE_INTERFACE=$(choosefrom \ -- "$ISABELLE_HOME/contrib/ProofGeneral/isar/interface" \ -- "$ISABELLE_HOME/../ProofGeneral/isar/interface" \ -- "/usr/share/ProofGeneral/isar/interface" \ -- "/usr/local/ProofGeneral/isar/interface" \ -- "/opt/ProofGeneral/isar/interface" \ -- "/usr/share/emacs/ProofGeneral/isar/interface" \ + # Preferred document format + ISABELLE_DOC_FORMAT=pdf +@@ -152,6 +130,7 @@ + "/usr/share/ProofGeneral/isar/interface" \ + "/opt/ProofGeneral/isar/interface" \ + "/usr/share/emacs/ProofGeneral/isar/interface" \ + "%%PREFIX%%/bin/proofgeneral" \ "$ISABELLE_INTERFACE") - # Options to pass to Isabelle command when PG is selected as interface -@@ -196,20 +141,9 @@ - # try xemacs first, else emacs - type -path xemacs >/dev/null || PROOFGENERAL_OPTIONS="-p emacs $PROOFGENERAL_OPTIONS" - -- --# X-Symbol installation location (for Proof General, obsolete for PG >= 3.5) --XSYMBOL_HOME=$(choosefrom \ -- "$ISABELLE_HOME/contrib/x-symbol" \ -- "$ISABELLE_HOME/../x-symbol" \ -- "/usr/share/x-symbol" \ -- "/usr/local/x-symbol" \ -- "/opt/x-symbol" \ -- "") -- - # Executed before xemacs with ProofGeneral is called. - # Required for remote fonts only. - #XSYMBOL_INSTALLFONTS="xset fp+ tcp/isafonts.informatik.tu-muenchen.de:7200" -- - - ### - ### External reasoning tools + PROOFGENERAL_OPTIONS="" diff --git a/math/isabelle/files/patch-lib-Tools-doc b/math/isabelle/files/patch-lib-Tools-doc deleted file mode 100644 index 490f01b47d05..000000000000 --- a/math/isabelle/files/patch-lib-Tools-doc +++ /dev/null @@ -1,10 +0,0 @@ ---- lib/Tools/doc.orig Tue Jun 8 10:29:49 2004 -+++ lib/Tools/doc Sat Aug 13 10:47:40 2005 -@@ -32,6 +32,7 @@ - - [ "$#" -ne 0 -o "$DOC" = "-?" ] && usage - -+DOC=`expr "$DOC" : '^[ ]*\(.*\)'` - - ## main - diff --git a/math/isabelle/files/polyml-4.1.4-patch.ML b/math/isabelle/files/polyml-4.1.4-patch.ML new file mode 100644 index 000000000000..196d23b7fda8 --- /dev/null +++ b/math/isabelle/files/polyml-4.1.4-patch.ML @@ -0,0 +1,31 @@ +(* Title: Pure/ML-Systems/polyml-4.1.4-patch.ML + ID: $Id$ + Author: Makarius + +Patch for PolyML 4.1.4 to make it work with Isabelle2005. We commit +this into ML_dbase! +*) + +structure Posix = +struct + open Posix; + structure IO = + struct + open IO; + val mkReader = mkTextReader; + val mkWriter = mkTextWriter; + end; +end; + +structure TextIO = +struct + open TextIO; + fun inputLine is = Option.getOpt (TextIO.inputLine is, ""); +end; + +structure Substring = +struct + open Substring; + val all = full; +end; + diff --git a/math/isabelle/files/polyml-4.2.0.ML b/math/isabelle/files/polyml-4.2.0.ML new file mode 100644 index 000000000000..20f0eb472278 --- /dev/null +++ b/math/isabelle/files/polyml-4.2.0.ML @@ -0,0 +1,9 @@ +(* Title: Pure/ML-Systems/polyml-4.2.0.ML + ID: $Id: polyml-4.2.0.ML,v 1.1 2005/11/14 13:36:46 wenzelm Exp $ + Author: Makarius + +Compatibility wrapper for Poly/ML 4.2.0. +*) + +use "ML-Systems/polyml-4.1.4-patch.ML"; +use "ML-Systems/polyml.ML"; |
