Ticket #27374: caml-ounit_fix_1.1.0.patch

File caml-ounit_fix_1.1.0.patch, 2.4 KB (added by hashar@…, 14 years ago)

unified diff patch file :)

  • (a) Portfile-origin vs. (b) Portfile

    a b  
    1 # $Id: Portfile 59418 2009-10-14 20:39:16Z avsm@macports.org $
     1# $Id: Portfile 71533 2010-09-15 20:26:12Z ryandesign@macports.org $
    22
    33PortSystem          1.0
    44
    55name                caml-ounit
    6 version             1.0.3
     6version             1.1.0
    77categories          devel ml
    88maintainers         landonf openmaintainer
    99description         Unit test framework for OCaml
     
    1212                    It is based on HUnit, a unit testing framework for Haskell. \
    1313                    It is similar to JUnit, and other XUnit testing frameworks.
    1414
    15 homepage            http://www.xs4all.nl/~mmzeeman/ocaml/
     15homepage            http://ounit.forge.ocamlcore.org/
    1616platforms           darwin
    17 master_sites        ${homepage}
     17master_sites        https://forge.ocamlcore.org/frs/download.php/495/
    1818
    1919distname            ounit-${version}
    2020
    21 checksums           md5     e0831c33cd18fdbf7615bb053e3792b9 \
    22                     sha1    fd5674ba094ed8d32c11618cd22d4efa58535a76 \
    23                     rmd160  35496f9df16121b4246074e79df0c5396e3faba7
     21checksums           md5     bf82bd7f8853cd9a1aff7be716192643 \
     22                    sha1    e477f8a1b4fcd6a838cbbc04450a80b1cea3456c \
     23                    rmd160  f7d82446970f40eccc917a3ee57e7d6526b1b177
    2424
    2525depends_lib         port:ocaml \
    2626                    port:caml-findlib
    2727
     28livecheck.url       http://forge.ocamlcore.org/frs/?group_id=162&release_id=339
    2829livecheck.type      regex
    2930livecheck.regex     {>ounit-(.*)\.tar\.gz}
    3031
     
    3233    set ocaml_site_path [exec ocamlfind printconf destdir]
    3334    reinplace       "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \
    3435                    ${worksrcpath}/Makefile
     36    # 'configure' is not executable in 1.1.0 package
     37    exec chmod +x ${worksrcpath}/configure
    3538}
    3639
    3740pre-destroot {
     
    4144
    4245post-destroot {
    4346    xinstall -d -755 ${destroot}${prefix}/share/doc/${name}
    44     eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] \
    45         ${destroot}/${prefix}/share/doc/${name}
     47    eval xinstall -m 644 [glob ${worksrcpath}/_build/src/api-ounit.docdir/*] \
     48        ${destroot}${prefix}/share/doc/${name}
    4649}
    4750
    48 use_configure       no
    49 
    50 build.target        allopt doc
     51configure.pre_args ''
     52build.target build doc