source: trunk/dports/devel/ocaml-pxp/Portfile

Last change on this file was 137992, checked in by mww@…, 2 years ago

inc. revision to rebuild library dependents of ocaml (ocaml update to version 4.02.2)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 137992 2015-06-24 16:17:51Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                ocaml-pxp
6version             1.2.4
7revision            3
8categories          devel ml textproc
9maintainers         mww openmaintainer
10platforms           darwin
11license             BSD
12description         Polymorphic XML Parser for OCaml
13long_description    \
14    PXP is an XML parser for OCaml. It represents the parsed document either \
15    as tree or as stream of events. In tree mode, it is possible to validate \
16    the XML document against a DTD. The acronym PXP means Polymorphic XML \
17    Parser. This name reflects the ability to create XML trees with \
18    polymorphic type parameters.
19
20homepage            http://projects.camlcity.org/projects/pxp.html
21master_sites        http://download.camlcity.org/download/
22
23distname            pxp-${version}
24
25checksums           rmd160  2dfc46c161ee66a633a299476fcf0867ea41eb49 \
26                    sha256  1cd3e946f19d800f412475adf56e6da87231f80be22d7ea71dd4eabf93876355
27
28depends_lib         port:ocaml \
29                    port:ocaml-findlib \
30                    port:ocaml-ocamlnet
31
32configure.pre_args
33configure.args      -with-lex
34
35use_parallel_build  no
36build.target        all opt
37
38pre-destroot {
39    set ocaml_site_path [exec ocamlfind printconf destdir]
40
41    foreach file {gensrc/pxp-lex-iso88591/Makefile gensrc/pxp-lex-iso885910/Makefile \
42        gensrc/pxp-lex-iso885913/Makefile gensrc/pxp-lex-iso885914/Makefile gensrc/pxp-lex-iso885915/Makefile \
43        gensrc/pxp-lex-iso885916/Makefile gensrc/pxp-lex-iso88592/Makefile gensrc/pxp-lex-iso88593/Makefile \
44        gensrc/pxp-lex-iso88594/Makefile gensrc/pxp-lex-iso88595/Makefile gensrc/pxp-lex-iso88596/Makefile \
45        gensrc/pxp-lex-iso88597/Makefile gensrc/pxp-lex-iso88598/Makefile gensrc/pxp-lex-iso88599/Makefile \
46        gensrc/pxp-lex-utf8/Makefile gensrc/pxp-ulex-utf8/Makefile gensrc/pxp-wlex/Makefile \
47        gensrc/pxp-wlex-utf8/Makefile src/pxp/Makefile src/pxp-engine/Makefile src/pxp-pp/Makefile} {
48        reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" "${worksrcpath}/${file}"
49    }
50
51    xinstall -m 755 -d ${destroot}${ocaml_site_path}
52}
53
54livecheck.type      regex
55livecheck.url       ${homepage}
56livecheck.regex     pxp-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.