Ticket #6826: Portfile

File Portfile, 1.7 KB (added by bfulgham@…, 18 years ago)

Updated portfile to use the 1.3.2 build of Mozart/Oz using the tarball, rather than CVS.

Line 
1PortSystem           1.0
2
3name                 mozart
4version              1.3.2
5categories           lang
6platforms            darwin
7maintainers          darwinports@opendarwin.org
8homepage             http://www.mozart-oz.org
9description          Mozart-Oz multiparadigms programming language.
10long_description     The Mozart system is a development platform focused on open \
11                        distributed computing and constraint-based inferrence.  \
12                        The system provides excellent support for logic and \
13                        constraint programming, making it an excellent choice \
14                        for implementing multi-agent systems.  The language has \
15                        recently been popularized by the book "Concepts, \
16                        Techniques, and Models of Computer Progamming."
17
18depends_lib-append   port:gmp port:zlib port:gdbm
19depends_lib          path:${prefix}/bin/emacs:emacs
20
21master_sites         http://www.mozart-oz.org/download/mozart-ftp/store/1.3.2-2006-06-15-tar
22distfiles            mozart-1.3.2.20060615-src.tar.gz
23checksums            md5 b84fb3932eca573e6b8d5d1b26379371
24
25patchfiles           patch-oz.in.diff
26
27worksrcdir           mozart-1.3.2.20060615
28configure.args       --prefix=${prefix}/mozart --with-inc-dir=${prefix}/include --with-lib-dir=${prefix}/lib
29
30build.target
31destroot.args        PREFIX=${destroot}${prefix}/mozart
32post-destroot {
33    cd ${destroot}${prefix}
34
35    file delete -force mozart/doc
36    file delete -force mozart/cache/x-oz/doc
37
38    xinstall -m 0644 ${filespath}/README.DarwinPorts mozart
39
40    xinstall -d man/man1
41    foreach x [glob ${worksrcpath}/doc/man/*.1] { system "ln $x man/man1" }
42
43    reinplace "s|^# OZHOME=.*|OZHOME=${prefix}/mozart|" mozart/bin/oz
44    xinstall -d bin
45    foreach x [glob -type {x} mozart/bin/*] { system "ln $x bin" }
46}