[19668] trunk/dports/lang
source_changes at macosforge.org
source_changes at macosforge.org
Fri Sep 22 12:41:25 PDT 2006
Revision: 19668
http://trac.macosforge.org/projects/macports/changeset/19668
Author: markd at macports.org
Date: 2006-09-22 12:41:25 -0700 (Fri, 22 Sep 2006)
Log Message:
-----------
Closes 10589. New port.
Added Paths:
-----------
trunk/dports/lang/mosml/
trunk/dports/lang/mosml/Portfile
trunk/dports/lang/mosml/files/
trunk/dports/lang/mosml/files/patch-configure.diff
trunk/dports/lang/mosml/files/patch-src-Makefile-inc.diff
trunk/dports/lang/mosml/files/patch-src-Makefile.diff
trunk/dports/lang/mosml/files/patch-src-launch-Makefile.diff
Added: trunk/dports/lang/mosml/Portfile
===================================================================
--- trunk/dports/lang/mosml/Portfile (rev 0)
+++ trunk/dports/lang/mosml/Portfile 2006-09-22 19:41:25 UTC (rev 19668)
@@ -0,0 +1,26 @@
+# $Id: $
+PortSystem 1.0
+name mosml
+version 2.01_0
+categories lang devel
+maintainers cso at rift.dk
+description A functional programming language
+long_description Moscow ML is a light-weight implementation of Standard ML\
+ (SML), a strict functional language widely used in teaching\
+ and research. Version 2.01 implements the full SML language,\
+ including SML Modules, and much of the SML Basis Library.
+homepage http://www.dina.dk/~sestoft/mosml.html
+master_sites http://www.dina.kvl.dk/~sestoft/mosml
+distfiles mos201src.tar.gz
+checksums md5 74aaaf988201fe92a9dbfbcb1e646f70
+patchfiles patch-configure.diff\
+ patch-src-Makefile.diff\
+ patch-src-Makefile-inc.diff\
+ patch-src-launch-Makefile.diff
+post-patch {
+ file attributes configure -permissions +x
+}
+worksrcdir mosml
+build.target world
+build.pre_args -Csrc DESTROOT=${destroot}${prefix} ${build.target}
+destroot.pre_args -Csrc DESTROOT=${destroot}${prefix} ${destroot.target}
Added: trunk/dports/lang/mosml/files/patch-configure.diff
===================================================================
--- trunk/dports/lang/mosml/files/patch-configure.diff (rev 0)
+++ trunk/dports/lang/mosml/files/patch-configure.diff 2006-09-22 19:41:25 UTC (rev 19668)
@@ -0,0 +1,8 @@
+--- configure 2006-08-27 16:12:46.000000000 +0200
++++ configure 2006-08-27 16:07:47.000000000 +0200
+@@ -0,0 +1,5 @@
++#!/bin/sh
++cd src/config
++./autoconf
++cd ..
++
Added: trunk/dports/lang/mosml/files/patch-src-Makefile-inc.diff
===================================================================
--- trunk/dports/lang/mosml/files/patch-src-Makefile-inc.diff (rev 0)
+++ trunk/dports/lang/mosml/files/patch-src-Makefile-inc.diff 2006-09-22 19:41:25 UTC (rev 19668)
@@ -0,0 +1,46 @@
+--- src/Makefile.inc 2006-08-27 16:20:05.000000000 +0200
++++ src/Makefile.inc 2006-08-27 16:30:56.000000000 +0200
+@@ -2,7 +2,7 @@
+
+ # Where to install stuff
+
+-MOSMLHOME=${HOME}/mosml
++MOSMLHOME=${DESTROOT}
+
+ # Various utility programs
+ INSTALL_PROGRAM=cp
+@@ -22,14 +22,14 @@
+ # To compile the runtime system camlrunm under Cygwin with support for
+ # dynamically loadable libraries (DDLs), uncomment these:
+
+-ADDPRIMS=dynlib.c
+-ADDOBJS=dynlib.o
+-ADDRUNCFLAGS=
+-ADDDYNLIBCFLAGS=
++#ADDPRIMS=dynlib.c
++#ADDOBJS=dynlib.o
++#ADDRUNCFLAGS=
++#ADDDYNLIBCFLAGS=
+
+ # For Linux (x86 or Alpha), use:
+ # ------------------------------
+-CPP=/lib/cpp -P -traditional -Dunix -Umsdos
++CPP=/usr/bin/cpp -P -traditional -Dunix -Umsdos
+ STRIP=strip
+ LD=gcc -rdynamic
+ DYNLD=ld -shared
+@@ -114,10 +114,10 @@
+ # DOCDIR contains documentation
+
+ BINDIR=${MOSMLHOME}/bin
+-LIBDIR=${MOSMLHOME}/lib
+-INCDIR=${MOSMLHOME}/include
+-DOCDIR=${MOSMLHOME}/doc
+-TOOLDIR=${MOSMLHOME}/tools
++LIBDIR=${MOSMLHOME}/lib/mosml
++INCDIR=${MOSMLHOME}/include/mosml
++DOCDIR=${MOSMLHOME}/share/doc/mosml
++TOOLDIR=${MOSMLHOME}/bin
+ # LIBDIR=${MOSMLHOME}/lib/moscow_ml
+ # TOOLDIR=${MOSMLHOME}/libexec/moscow_ml
+
Added: trunk/dports/lang/mosml/files/patch-src-Makefile.diff
===================================================================
--- trunk/dports/lang/mosml/files/patch-src-Makefile.diff (rev 0)
+++ trunk/dports/lang/mosml/files/patch-src-Makefile.diff 2006-09-22 19:41:25 UTC (rev 19668)
@@ -0,0 +1,18 @@
+--- src/Makefile 2006-08-27 16:20:05.000000000 +0200
++++ src/Makefile 2006-08-27 16:44:37.000000000 +0200
+@@ -16,7 +16,6 @@
+ # Build the entire system for the first time
+
+ world:
+- cd config; sh autoconf $(CC)
+ cd runtime; make all
+ cp runtime/camlrunm$(EXE) .
+ cd mosmlyac; make all
+@@ -58,7 +57,6 @@
+ cd compiler; make install
+ cd toolssrc; make install
+ cd lex; make install
+- (cd $(INCDIR)/..; rm -f config; ln -s include config)
+ cd doc; make install
+
+ # Remove all generated files
Added: trunk/dports/lang/mosml/files/patch-src-launch-Makefile.diff
===================================================================
--- trunk/dports/lang/mosml/files/patch-src-launch-Makefile.diff (rev 0)
+++ trunk/dports/lang/mosml/files/patch-src-launch-Makefile.diff 2006-09-22 19:41:25 UTC (rev 19668)
@@ -0,0 +1,46 @@
+--- src/launch/Makefile 2006-08-27 16:20:03.000000000 +0200
++++ src/launch/Makefile 2006-08-27 16:57:52.000000000 +0200
+@@ -1,6 +1,9 @@
+ # Unix Makefile for launching Moscow ML
+ # Based on Caml Light (copyright 1993 INRIA)
+
++TRUEBINDIR=/opt/local/bin
++TRUELIBDIR=/opt/local/lib/mosml
++
+ include ../Makefile.inc
+
+ all: mosml mosmlc mosmllex camlexec testprog
+@@ -13,7 +16,7 @@
+ cat testprog) > /tmp/testscr
+ chmod a+x /tmp/testscr
+ sh -c 'if sh -c /tmp/testscr 2>/dev/null; \
+- then echo "#!$(BINDIR)/camlrunm" > $(LIBDIR)/header; \
++ then echo "#!$(TRUEBINDIR)/camlrunm" > $(LIBDIR)/header; \
+ else ${INSTALL_PROGRAM} camlexec$(EXE) $(LIBDIR)/header; \
+ fi'
+ rm -f /tmp/testscr
+@@ -23,20 +26,20 @@
+ done
+
+ mosml: mosml.tpl
+- sed -e "s|LIBDIR|$(LIBDIR)|" -e "s|BINDIR|$(BINDIR)|" mosml.tpl > mosml
++ sed -e "s|LIBDIR|$(TRUELIBDIR)|" -e "s|BINDIR|$(TRUEBINDIR)|" mosml.tpl > mosml
+
+ mosmlc: mosmlc.tpl
+- sed -e "s|LIBDIR|$(LIBDIR)|" -e "s|BINDIR|$(BINDIR)|" mosmlc.tpl > mosmlc
++ sed -e "s|LIBDIR|$(TRUELIBDIR)|" -e "s|BINDIR|$(TRUEBINDIR)|" mosmlc.tpl > mosmlc
+
+ mosmllex: mosmllex.tpl
+- sed -e "s|LIBDIR|$(LIBDIR)|" -e "s|BINDIR|$(BINDIR)|" mosmllex.tpl > mosmllex
++ sed -e "s|LIBDIR|$(TRUELIBDIR)|" -e "s|BINDIR|$(TRUEBINDIR)|" mosmllex.tpl > mosmllex
+
+ testprog: testprog.sml
+ $(MOSMLC) testprog.sml
+ $(MOSMLL) -noheader -o testprog BasicIO.uo testprog.uo
+
+ camlexec.c: camlexec.tpl
+- sed -e "s|LIBDIR|$(LIBDIR)|" -e "s|BINDIR|$(BINDIR)|" camlexec.tpl > camlexec.c
++ sed -e "s|LIBDIR|$(TRUELIBDIR)|" -e "s|BINDIR|$(TRUEBINDIR)|" camlexec.tpl > camlexec.c
+
+ camlexec: camlexec.c
+ $(CC) $(OPTS) -o camlexec$(EXE) camlexec.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20060922/e948c6a6/attachment.html
More information about the macports-changes
mailing list