# $Id$ PortSystem 1.0 PortGroup ocaml 1.0 name ocaml-curses version 1.0.3 revision 5 categories devel ml platforms darwin license LGPL-2.1 maintainers mww openmaintainer description provide curses / ncurses bindings for the OCaml language long_description ${description} homepage http://www.nongnu.org/ocaml-tmk/ master_sites http://download.savannah.gnu.org/releases/ocaml-tmk/ checksums rmd160 3645ef814e20efdaca254f3f6746c1ffe68363cc \ sha256 990a55ff99223edaa04387802907b00c475b46dd921dc5f8c5ede15ac673656f depends_lib port:ocaml port:ocaml-findlib port:ncurses configure { file copy ${filespath}/config.h ${worksrcpath} file copy ${filespath}/config.ml ${worksrcpath} file copy ${filespath}/Makefile ${worksrcpath} reinplace "s|@CC@|${configure.cc}|g" ${worksrcpath}/Makefile reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/Makefile } #/usr/bin/ranlib: archive member: libcurses_stubs.a(__.SYMDEF SORTED) size too large (archive member extends past the end of the file) use_parallel_build no destroot { system "cd ${worksrcpath} && ${prefix}/bin/ocamlfind install curses -destdir ${destroot}${prefix}/lib/ocaml/site-lib -ldconf ignore curses.mli libcurses_stubs.a keys.cmo keys.cmi dllcurses_stubs.so curses.cmxa curses.a curses.cmx curses.cmi curses.cma META" xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} CHANGES COPYING ${destroot}${prefix}/share/doc/${name} } livecheck.type regex livecheck.url ${master_sites} livecheck.regex ocaml-curses-(\[0-9.\]+)${extract.suffix}