diff -ruN /opt/local/var/macports/sources/rsync.macports.org/release/ports/devel/caml-json-wheel/Portfile devel/caml-json-wheel/Portfile
old
|
new
|
|
| 1 | # $Id$ |
| 2 | |
| 3 | PortSystem 1.0 |
| 4 | |
| 5 | name caml-json-wheel |
| 6 | version 1.0.6 |
| 7 | categories devel ml |
| 8 | maintainers anil@recoil.org |
| 9 | description JSON parsing library for OCaml |
| 10 | long_description Implements RFC4627 for parsing the JSON interchange format.\ |
| 11 | Uses key/value pairs to represent objects, and lists to \ |
| 12 | represent JSON arrays. Also provides pretty-print support. |
| 13 | homepage http://martin.jambon.free.fr/json-wheel.html |
| 14 | platforms darwin |
| 15 | master_sites http://martin.jambon.free.fr/ |
| 16 | |
| 17 | distname json-wheel-${version} |
| 18 | use_bzip2 yes |
| 19 | |
| 20 | checksums md5 8685ecee7a7416c77c14fbdf05c5a06e \ |
| 21 | sha1 dea8a5b3bd580c39f3cfb3139aeca4fef653aa31 \ |
| 22 | rmd160 cd31f74e67c4241dbb3e3b792440d02ea45b739b |
| 23 | |
| 24 | depends_lib port:ocaml \ |
| 25 | port:caml-findlib \ |
| 26 | port:caml-ocamlnet |
| 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 opt |
| 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 | } |