diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-json-static/Portfile devel/caml-json-static/Portfile
old
|
new
|
|
| 1 | # $Id$ |
| 2 | |
| 3 | PortSystem 1.0 |
| 4 | |
| 5 | name caml-json-static |
| 6 | version 0.9.6 |
| 7 | categories devel ml |
| 8 | maintainers anil@recoil.org |
| 9 | description JSON validator and type converter for OCaml |
| 10 | long_description This library converts parsed JSON data with an unchecked structure \ |
| 11 | into specialized OCaml types and vice-versa. It is a complement to \ |
| 12 | the caml-json-wheel package which provides a parser and pretty-printer. |
| 13 | homepage http://martin.jambon.free.fr/json-static.html |
| 14 | platforms darwin |
| 15 | master_sites http://martin.jambon.free.fr/ |
| 16 | |
| 17 | distname json-static-${version} |
| 18 | use_bzip2 yes |
| 19 | |
| 20 | checksums md5 7ffc8c00353a6fc14fde490c4edeb1d0 \ |
| 21 | sha1 f1b032ac702acb5b421075b25d3910b23268a1cc \ |
| 22 | rmd160 dd5d84992fd68c1230e1e8b6e26707324d491f78 |
| 23 | |
| 24 | depends_lib port:ocaml \ |
| 25 | port:caml-findlib \ |
| 26 | port:caml-json-wheel |
| 27 | |
| 28 | use_configure no |
| 29 | |
| 30 | post-patch { |
| 31 | set ocaml_site_path [exec ocamlfind printconf destdir] |
| 32 | reinplace "s|\$(OCAMLFIND) install|\$(OCAMLFIND) install -destdir ${destroot}/${ocaml_site_path}|g" \ |
| 33 | ${worksrcpath}/Makefile |
| 34 | } |
| 35 | |
| 36 | build.target all |
| 37 | |
| 38 | pre-destroot { |
| 39 | set ocaml_site_path [exec ocamlfind printconf destdir] |
| 40 | file mkdir ${destroot}/${ocaml_site_path}/stublibs |
| 41 | } |
| 42 | |
| 43 | pre-destroot { |
| 44 | destroot.args DESTDIR="${destroot}" OCAMLFIND_DESTDIR="${destroot}/[exec ${prefix}/bin/ocamlfind printconf destdir]" |
| 45 | } |