Ticket #18790: caml-findlib.diff

File caml-findlib.diff, 3.0 KB (added by blb@…, 16 years ago)

diff to Portfile

  • Portfile

     
    22
    33PortSystem          1.0
    44name                caml-findlib
    5 version             1.2.1
    6 distfiles           findlib-${version}.tar.gz
    7 worksrcdir          findlib-${version}
     5version             1.2.4
     6distname            findlib-${version}
    87categories          devel ml
    9 maintainers         eridius@macports.org
     8maintainers         eridius
    109description         Objective Caml library management system
    1110long_description    The findlib library provides a scheme to manage reusable \
    1211                    software components (packages), and includes tools that support \
     
    1918                    enter queries on the command-line. In order to simplify compilation and \
    2019                    linkage, there are new frontends of the various OCaml compilers that \
    2120                    can directly deal with packages.
    22 homepage            http://www.ocaml-programming.de/programming/findlib.html
     21homepage            http://projects.camlcity.org/projects/findlib.html
    2322platforms           darwin
    24 master_sites        http://www.ocaml-programming.de/packages/
    25 extract.suffix      .tar.gz
     23master_sites        http://download.camlcity.org/download/
    2624build.target        all opt
    27 checksums           sha1 04af3e36ccaa4a5ba41773ee6118b825fd1dff90 \
    28                     md5 fa580a4c1fc28c06fe79aa1c98b6ef2d
     25checksums           md5     52cfcacff3e07a94bc3adb977fbb3c07 \
     26                    sha1    de73c1c4287263e986b4a4f56b029aadaffc2944 \
     27                    rmd160  bafa1bbea71fb05ee2fd411dabe00ba34a25d506
    2928
    3029livecheck.check     regex
    3130livecheck.regex     "findlib-(.*?).tar.gz"
     
    4039
    4140destroot.destdir    prefix=${destroot}
    4241
     42# `ocamlfind printconf destdir` returns nothing if the dir isn't in place
     43# but we know it's the same as our site-lib dir
     44set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]
     45destroot.keepdirs   ${destroot}${ocamlfind_destdir}
    4346post-destroot {
    44         # `ocamlfind printconf destdir` returns nothing if the dir isn't in place
    45         # but we know it's the same as our site-lib dir
    46         set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]
    4747        file mkdir ${destroot}${ocamlfind_destdir}
    48         # make a turd file so the directory doesn't get pruned when installing
    49         # I suppose I don't actually know if it prunes before or after this phase
    50         # but better to be safe than sorry
    51         close [open ${destroot}${ocamlfind_destdir}/.turd_${name} w]
    5248}
    5349
    5450post-activate {
    5551        # Add our stublibs dir path to ld.conf
    56         set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]
    5752        set ldconfpath [exec ${destroot}${prefix}/bin/ocamlfind printconf ldconf]
    5853        # ld.conf should exist since ocaml is installed, but lets just be safe anyway
    5954        if {[file exists $ldconfpath]} then {