# $Id: Portfile 37523 2008-06-11 09:12:21Z ryandesign@macports.org $ PortSystem 1.0 name ocaml version 3.10.2 set major_vers [join [lrange [split ${version} .] 0 1] .] platforms darwin maintainers pguyot@kallisys.net categories lang ml description Objective Caml is an implementation of the ML language homepage http://www.ocaml.org/ master_sites http://caml.inria.fr/pub/distrib/ocaml-${major_vers}/ checksums ocaml-${version}.tar.bz2 \ md5 d86f8f8aa4574fa60dd6f89044580307 \ sha1 f604580bf2943891d8faf265eeb900bbe90abce0 \ rmd160 f631230b090dbd9bf9a9f71631cd0347c033cbb1 \ ocaml-3.10-refman.html.tar.gz \ md5 663b31c8ea364a531aa325a5b06a2763 \ sha1 491a39ca6ae8a5ae52fb8e07e987e97bba1b9f43 \ rmd160 6b4c99a83942563f1571385681d54f4d194507fe long_description \ Objective Caml is an implementation of the ML language, based on \ the Caml Light dialect extended with a complete class-based object \ system and a powerful module system in the style of Standard ML. use_bzip2 yes use_parallel_build no set doc_distname ${name}-${major_vers}-refman set docdir ${prefix}/share/doc/${name}-${version} platform darwin 9 { macosx_deployment_target 10.4 } # Configure. configure.pre_args -prefix ${prefix} configure.args -no-tk # Building. build.target world.opt build.cmd "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}" # Install. destroot.target install destroot.destdir BINDIR=${destroot}${prefix}/bin \ LIBDIR=${destroot}${prefix}/lib/ocaml \ MANDIR=${destroot}${prefix}/share/man post-destroot { # Change "ld.conf" to remove ${destroot} in paths. reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/ocaml/ld.conf } # Variants. variant labltk { depends_lib lib:tcl8.4:tcl lib:tk8.4:tk configure.args-delete -no-tk } variant doc description {Install extra documentation} { extract.only ${distfiles} distfiles-append ${doc_distname}.html.tar.gz post-extract { system "tar xzvf ${distpath}/${doc_distname}.html.tar.gz -C ${workpath}" } post-destroot { xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} Changes LICENSE README ${destroot}${docdir} xinstall -d ${destroot}${docdir}/html/libref eval xinstall -m 0644 [glob ${workpath}/htmlman/libref/*] \ ${destroot}${docdir}/html/libref eval xinstall -m 0644 [glob ${workpath}/htmlman/*.*] \ ${destroot}${docdir}/html } } livecheck.check regex livecheck.url http://caml.inria.fr/news.en.rss livecheck.regex "