Ticket #14072: ocaml-3.10.1.diff
File ocaml-3.10.1.diff, 3.3 KB (added by nox@…, 17 years ago) |
---|
-
Portfile
2 2 3 3 PortSystem 1.0 4 4 name ocaml 5 version 3.10.0 5 version 3.10.1 6 set branche [join [lrange [split ${version} .] 0 1] .] 6 7 platforms darwin 7 8 maintainers pguyot@kallisys.net 8 9 categories lang ml 9 10 description Objective Caml is an implementation of the ML language 10 11 homepage 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 12 master_sites http://caml.inria.fr/pub/distrib/ocaml-${branche}/ 15 13 14 checksums 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 16 27 long_description \ 17 28 Objective Caml is an implementation of the ML language, based on \ 18 29 the Caml Light dialect extended with a complete class-based object \ 19 30 system and a powerful module system in the style of Standard ML. 20 31 32 set doc_distname ${name}-${branche}-refman 33 set docdir ${prefix}/share/doc/${name}-${version} 34 21 35 use_bzip2 yes 22 36 23 patchfiles patch-ocaml-asmrun-signals_asm.c patch-ocaml-asmrun-signals_osdep.h24 25 37 # Configure. 26 38 configure.pre_args -prefix ${prefix} 27 39 configure.args -no-tk … … 31 43 build.cmd "unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}" 32 44 33 45 # Install. 34 destroot.target install35 46 destroot.destdir BINDIR=${destroot}${prefix}/bin \ 36 47 LIBDIR=${destroot}${prefix}/lib/ocaml \ 37 48 MANDIR=${destroot}${prefix}/share/man 38 49 39 # Change "ld.conf" to remove ${destroot} in paths.40 50 post-destroot { 51 # Change "ld.conf" to remove ${destroot} in paths. 41 52 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} 42 56 } 43 57 44 58 # Variants. … … 47 61 configure.args-delete -no-tk 48 62 } 49 63 64 variant 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 50 81 livecheck.check regex 51 82 livecheck.url http://caml.inria.fr/news.en.rss 52 83 livecheck.regex "<title>Objective Caml (.*) released"