Ticket #14072: ocaml-3.10.1.diff

File ocaml-3.10.1.diff, 3.3 KB (added by nox@…, 16 years ago)
  • Portfile

     
    22
    33PortSystem 1.0
    44name                    ocaml
    5 version                 3.10.0
     5version                 3.10.1
     6set branche     [join [lrange [split ${version} .] 0 1] .]
    67platforms               darwin
    78maintainers             pguyot@kallisys.net
    89categories              lang ml
    910description             Objective Caml is an implementation of the ML language
    1011homepage                http://www.ocaml.org/
    11 master_sites    http://caml.inria.fr/pub/distrib/ocaml-3.10/
    12 checksums               md5 5b14fe7ef863ab8295c9b7d428d5e93c \
    13                                 sha1 5c7ee7dd5ac55bee2877ca0ace5ffb044df8efb5 \
    14                                 rmd160 19615743230f0215135eb966f1f08a6a828f9aa4
     12master_sites    http://caml.inria.fr/pub/distrib/ocaml-${branche}/
    1513
     14checksums       ocaml-${version}.tar.bz2 \
     15                    md5 15a8c603b34d466329881285438349ef \
     16                    sha1 908176ff481fd6ce3ab89a96a76d9b3d7ca8c105 \
     17                    rmd160 bf5bc105aece26df6460204d5a04e90c0d90d1cb \
     18                ocaml-3.10-refman.html.tar.gz \
     19                    md5 663b31c8ea364a531aa325a5b06a2763 \
     20                    sha1 491a39ca6ae8a5ae52fb8e07e987e97bba1b9f43 \
     21                    rmd160 6b4c99a83942563f1571385681d54f4d194507fe \
     22                ocaml-3.10-refman.info.tar.gz \
     23                    md5 f80b52b8bc4b10ed557808fc899acf3a \
     24                    sha1 e5a64d3a60571143706cc519ff42de00c8c1d0ea \
     25                    rmd160 3f8a63977ac8ba330f2da5af05e7f2df63ba9a19
     26
    1627long_description \
    1728                        Objective Caml is an implementation of the ML language, based on \
    1829                        the Caml Light dialect extended with a complete class-based object \
    1930                        system  and a powerful module system in the style of Standard ML.
    2031
     32set doc_distname    ${name}-${branche}-refman
     33set docdir          ${prefix}/share/doc/${name}-${version}
     34
    2135use_bzip2                       yes
    2236
    23 patchfiles              patch-ocaml-asmrun-signals_asm.c patch-ocaml-asmrun-signals_osdep.h
    24 
    2537# Configure.
    2638configure.pre_args      -prefix ${prefix}
    2739configure.args          -no-tk
     
    3143build.cmd           "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}"
    3244
    3345# Install.
    34 destroot.target         install
    3546destroot.destdir        BINDIR=${destroot}${prefix}/bin \
    3647                                        LIBDIR=${destroot}${prefix}/lib/ocaml \
    3748                                        MANDIR=${destroot}${prefix}/share/man
    3849
    39 # Change "ld.conf" to remove ${destroot} in paths.
    4050post-destroot {
     51    # Change "ld.conf" to remove ${destroot} in paths.
    4152        reinplace "s:${destroot}::g" ${destroot}${prefix}/lib/ocaml/ld.conf
     53
     54    xinstall -d ${destroot}${docdir}
     55    xinstall -m 0644 -W ${worksrcpath} Changes LICENSE README ${destroot}${docdir}
    4256}
    4357
    4458# Variants.
     
    4761        configure.args-delete   -no-tk
    4862}
    4963
     64variant doc description {Install extra documentation} {
     65    extract.only        ${distfiles}
     66    distfiles-append    ${doc_distname}.html.tar.gz
     67
     68    post-extract {
     69        system "tar xzvf ${distpath}/${doc_distname}.html.tar.gz -C ${workpath}"
     70    }
     71
     72    post-destroot {
     73        xinstall -d ${destroot}${docdir}/html/libref
     74        eval xinstall -m 0644 [glob ${workpath}/htmlman/libref/*] \
     75            ${destroot}${docdir}/html/libref
     76        eval xinstall -m 0644 [glob ${workpath}/htmlman/*.*] \
     77            ${destroot}${docdir}/html
     78    }
     79}
     80
    5081livecheck.check regex
    5182livecheck.url   http://caml.inria.fr/news.en.rss
    5283livecheck.regex "<title>Objective Caml (.*) released"