Ticket #1217: Portfile.diff

File Portfile.diff, 1.4 KB (added by pguyot (Paul Guyot), 21 years ago)

Portfile patch to bump ocaml to 3.07+2 & with a new variant, labltk, for Tcl & Tk support in ocaml

  • Portfile

    RCS file: /Volumes/src/cvs/od/proj/darwinports/dports/lang/ocaml/Portfile,v
    retrieving revision 1.9
    diff -u -r1.9 Portfile
     
    22
    33PortSystem 1.0
    44name            ocaml
    5 version         3.06+27
     5version         3.07pl2
    66revision        0
    77categories      lang
    88maintainers     jpm@opendarwin.org
     
    1717        Light-style bytecode compiler).
    1818homepage        http://caml.inria.fr/ocaml
    1919platforms       darwin
    20 master_sites    http://savannah.nongnu.org/download/mldonkey/tools/
    21 checksums       md5 6e8685c23c3dafbf7c87e7fbbd69e339
    22 # fetch.type    cvs
    23 # cvs.root      :pserver:anoncvs@camlcvs.inria.fr:/caml
    24 # cvs.module    ocaml
    25 # distname      ocaml
    26 configure {
     20master_sites    http://caml.inria.fr/distrib/ocaml-3.07/
     21worksrcdir      ocaml-3.07
     22checksums       md5 e58057f1ecca2da3fee035c846ac7db2
     23configure.pre_args -prefix ${prefix}
     24post-extract {
    2725        cd ${worksrcpath}
    28         system  "./configure --no-tk --tk-no-x11 --bindir ${prefix}/bin \
    29                 --libdir ${prefix}/lib/ocaml --mandir ${prefix}/man/man1 \
    30                 --prefix ${prefix}"
     26        system "rm INSTALL"
     27}
     28
     29# Variant with LablTk (tcl & tk bindings)
     30variant labltk {
     31        depends_build           lib:libtcl.a:tcl lib:libtk.a:tk
    3132}
    32 build.target    world opt
    33 destroot.args   BINDIR=${destroot}/${prefix}/bin \
    34         LIBDIR=${destroot}/${prefix}/lib/ocaml \
    35         MANDIR=${destroot}/${prefix}/man/man1