# $Id: Portfile 88525 2012-01-04 01:57:16Z mww@macports.org $ PortSystem 1.0 name ocaml-pxp version 1.2.1 categories devel ml textproc maintainers mww openmaintainer platforms darwin license BSD description streaming XML input/output module for OCaml long_description Xmlm is an OCaml module providing streaming XML \ input/output. It aims at making XML processing robust and \ painless. The streaming interface can process documents \ without building an in-memory representation. It lets the \ programmer translate its data structures to XML documents \ and vice-versa. Functions are provided to easily transform \ arborescent data structures to/from XML documents. homepage http://erratique.ch/software/xmlm master_sites http://download.camlcity.org/download/ distname pxp-${version} checksums md5 a22d9124516b8045d7e4b0978c6fd3f6 \ sha1 09754a2db5fd08c189ad52b5ebff37232a62665f \ rmd160 62fef42242d3fd0a04f4c4ca9a053180bab71f23 depends_lib port:ocaml \ port:ocaml-findlib \ port:ocaml-ocamlnet configure.pre_args configure.args -with-lex use_parallel_build no build.target all opt pre-destroot { set ocaml_site_path [exec ocamlfind printconf destdir] foreach file {gensrc/pxp-lex-iso88591/Makefile gensrc/pxp-lex-iso885910/Makefile \ gensrc/pxp-lex-iso885913/Makefile gensrc/pxp-lex-iso885914/Makefile gensrc/pxp-lex-iso885915/Makefile \ gensrc/pxp-lex-iso885916/Makefile gensrc/pxp-lex-iso88592/Makefile gensrc/pxp-lex-iso88593/Makefile \ gensrc/pxp-lex-iso88594/Makefile gensrc/pxp-lex-iso88595/Makefile gensrc/pxp-lex-iso88596/Makefile \ gensrc/pxp-lex-iso88597/Makefile gensrc/pxp-lex-iso88598/Makefile gensrc/pxp-lex-iso88599/Makefile \ gensrc/pxp-lex-utf8/Makefile gensrc/pxp-ulex-utf8/Makefile gensrc/pxp-wlex/Makefile \ gensrc/pxp-wlex-utf8/Makefile src/pxp/Makefile src/pxp-engine/Makefile src/pxp-pp/Makefile} { reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" "${worksrcpath}/${file}" } xinstall -m 755 -d ${destroot}${ocaml_site_path} }