# $Id: Portfile 137992 2015-06-24 16:17:51Z mww@macports.org $ PortSystem 1.0 name ocaml-getopt version 20040811 revision 6 categories devel ml maintainers mww openmaintainer platforms darwin license BSD description getopt command line parser for OCaml long_description ${description} homepage http://alain.frisch.fr/soft.html master_sites http://alain.frisch.fr/info/ distname getopt-${version} checksums rmd160 c13cfe1f8940a759a479e56c1cbdb9a110048a1b \ sha256 cb53317e026867e732276feff392031831d7cbed1d4b49a764971d6bab1fff2a depends_lib port:ocaml \ port:ocaml-findlib \ port:ocaml-extlib patchfiles patch-Makefile worksrcdir getopt use_configure no build.target allopt pre-destroot { set ocaml_site_path [exec ocamlfind printconf destdir] xinstall -m 755 -d ${destroot}/${ocaml_site_path} \ ${destroot}${prefix}/share/doc/ \ ${destroot}${prefix}/share/examples/${name} file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} xinstall -m 644 -W ${worksrcpath} COPYING Changes README \ ${destroot}${prefix}/share/doc/${name} xinstall -m 644 ${worksrcpath}/sample.ml \ ${destroot}${prefix}/share/examples/${name} } livecheck.type regex livecheck.url ${homepage} livecheck.regex getopt-(\[0-9.\]+)${extract.suffix}