Ticket #18790: caml-findlib.diff
File caml-findlib.diff, 3.0 KB (added by blb@…, 16 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name caml-findlib 5 version 1.2.1 6 distfiles findlib-${version}.tar.gz 7 worksrcdir findlib-${version} 5 version 1.2.4 6 distname findlib-${version} 8 7 categories devel ml 9 maintainers eridius @macports.org8 maintainers eridius 10 9 description Objective Caml library management system 11 10 long_description The findlib library provides a scheme to manage reusable \ 12 11 software components (packages), and includes tools that support \ … … 19 18 enter queries on the command-line. In order to simplify compilation and \ 20 19 linkage, there are new frontends of the various OCaml compilers that \ 21 20 can directly deal with packages. 22 homepage http:// www.ocaml-programming.de/programming/findlib.html21 homepage http://projects.camlcity.org/projects/findlib.html 23 22 platforms darwin 24 master_sites http://www.ocaml-programming.de/packages/ 25 extract.suffix .tar.gz 23 master_sites http://download.camlcity.org/download/ 26 24 build.target all opt 27 checksums sha1 04af3e36ccaa4a5ba41773ee6118b825fd1dff90 \ 28 md5 fa580a4c1fc28c06fe79aa1c98b6ef2d 25 checksums md5 52cfcacff3e07a94bc3adb977fbb3c07 \ 26 sha1 de73c1c4287263e986b4a4f56b029aadaffc2944 \ 27 rmd160 bafa1bbea71fb05ee2fd411dabe00ba34a25d506 29 28 30 29 livecheck.check regex 31 30 livecheck.regex "findlib-(.*?).tar.gz" … … 40 39 41 40 destroot.destdir prefix=${destroot} 42 41 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 44 set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs] 45 destroot.keepdirs ${destroot}${ocamlfind_destdir} 43 46 post-destroot { 44 # `ocamlfind printconf destdir` returns nothing if the dir isn't in place45 # but we know it's the same as our site-lib dir46 set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]47 47 file mkdir ${destroot}${ocamlfind_destdir} 48 # make a turd file so the directory doesn't get pruned when installing49 # I suppose I don't actually know if it prunes before or after this phase50 # but better to be safe than sorry51 close [open ${destroot}${ocamlfind_destdir}/.turd_${name} w]52 48 } 53 49 54 50 post-activate { 55 51 # Add our stublibs dir path to ld.conf 56 set ocamlfind_destdir [file normalize ${prefix}/lib/ocaml/site-lib/stublibs]57 52 set ldconfpath [exec ${destroot}${prefix}/bin/ocamlfind printconf ldconf] 58 53 # ld.conf should exist since ocaml is installed, but lets just be safe anyway 59 54 if {[file exists $ldconfpath]} then {