Ticket #28524: Portfile-caml-graph.diff

File Portfile-caml-graph.diff, 2.5 KB (added by fh@…, 13 years ago)

Portfile patch

  • (a) /Users/herbrete/Downloads/Portfile.txt vs. (b) Portfile

    a b  
    11# $Id$
    22
    33PortSystem          1.0
     4
    45name                caml-graph
    5 version             1.3
    6 distname            ocamlgraph-${version}
     6version             1.6
    77categories          devel ml
    8 maintainers         nomaintainer
    9 description         a graph library for OCaml
    10 long_description    It provides an easy-to-use graph data structure together with several \
    11                     operations and algorithms over graphs, in Graph.Pack. It is a reasonably \
    12                     efficient imperative data structure for directed graphs with vertices and \
    13                     edges labeled with integers.
     8maintainers         
     9description         OCaml graph library
     10long_description    ${description}
    1411
    15 homepage            http://ocamlgraph.lri.fr/
     12homepage            http://ocamlgraph.lri.fr
    1613platforms           darwin
    17 master_sites        http://ocamlgraph.lri.fr/download/
    18 checksums           md5     9bcff267d041d3caec5f4f8c514f9cc1 \
    19                     sha1    79f1fe80c95a6521e19536b2b0834b0b77a89eb1 \
    20                     rmd160  0a94c6b71cb5c833abfe913886d7b1a2e5cb730a
     14master_sites        http://ocamlgraph.lri.fr/download
    2115
    22 livecheck.url       http://ocamlgraph.lri.fr/
    23 livecheck.type      regex
    24 livecheck.regex     {>ocamlgraph-(.*)\.tar\.gz}
     16distname            ocamlgraph-${version}
    2517
    26 depends_lib         port:ocaml port:caml-findlib
     18checksums           md5     b66ad9942e5a3acddeeeaf69c09a0c26 \
     19                    sha1    046ef1203ddacac39cc190ad32230b0aa8547268 \
     20                    rmd160  be415f28e9d5f2e0e3b1bd2a58a19442d9976fe2
     21
     22depends_lib         port:ocaml \
     23                    port:caml-findlib
     24
     25# ocaml is not universal
     26universal_variant   no
     27
     28patchfiles          patch-Makefile.in
    2729
    2830use_parallel_build  no
    29 patchfiles          patch-Makefile.in.diff
    3031
    31 set ocamlfind_destdir ${destroot}${prefix}/lib/ocaml/site-lib
     32livecheck.type      regex
     33livecheck.regex     {>ocamlgraph-(.*)\.tar\.gz}
    3234
    33 destroot.env        OCAMLFIND_INSTFLAGS="-destdir $ocamlfind_destdir -ldconf ignore"
    34 destroot.target     install-findlib
     35destroot.target-append  install-findlib
    3536
    3637pre-destroot {
    37     file mkdir $ocamlfind_destdir
    38 }
     38  # Removes any previous ocamlfind installation that has not been cleaned
     39  set destdir [exec ocamlfind printconf destdir]
     40  if [file exist ${destdir}/ocamlgraph/META] {
     41     exec ocamlfind remove ocamlgraph 2> /dev/null
     42  }
     43}
     44 No newline at end of file