a project to simplify installation of open source software
on Mac OS X and Darwin
# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $
PortSystem 1.0
name moscow_ml
version 2.01
categories lang
maintainers nomaintainer@macports.org
description lightweight SML implementation
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.00 implements the full SML language, including \
SML Modules, and much of the SML Basis Library.
homepage http://www.dina.dk/~sestoft/mosml.html
platforms darwin
master_sites http://www.dina.kvl.dk/~sestoft/mosml/
distname mos201src
checksums md5 74aaaf988201fe92a9dbfbcb1e646f70
worksrcdir mosml
patchfiles patch-src__Makefile \
patch-src__Makefile.inc \
patch-src__mosmlyac__Makefile
post-patch {
reinplace "s|__PREFIX__|${prefix}|" \
${worksrcpath}/src/Makefile.inc
}
use_configure no
build.dir ${worksrcpath}/src
build.target world
post-destroot {
file delete ${destroot}${prefix}/lib/moscow_ml/camlrunm
system "ln -s ../../bin/camlrunm ${destroot}${prefix}/lib/moscow_ml/camlrunm"
reinplace "s|${destroot}||" ${destroot}${prefix}/lib/moscow_ml/header
}