[38690] trunk/dports/devel

landonf at macports.org landonf at macports.org
Mon Jul 28 17:26:09 PDT 2008


Revision: 38690
          http://trac.macosforge.org/projects/macports/changeset/38690
Author:   landonf at macports.org
Date:     2008-07-28 17:26:08 -0700 (Mon, 28 Jul 2008)
Log Message:
-----------
Add caml-csv, a CSV parsing library

Added Paths:
-----------
    trunk/dports/devel/caml-csv/
    trunk/dports/devel/caml-csv/Portfile
    trunk/dports/devel/caml-csv/files/
    trunk/dports/devel/caml-csv/files/META.in

Added: trunk/dports/devel/caml-csv/Portfile
===================================================================
--- trunk/dports/devel/caml-csv/Portfile	                        (rev 0)
+++ trunk/dports/devel/caml-csv/Portfile	2008-07-29 00:26:08 UTC (rev 38690)
@@ -0,0 +1,40 @@
+# $Id: Portfile 38689 2008-07-29 00:08:45Z landonf at macports.org $
+
+PortSystem          1.0
+name                caml-csv
+version             1.1.6
+maintainers         landonf openmaintainer
+description         CSV file parser for OCaml.
+long_description    This library can read and write CSV files, including all \
+                    extensions used by Excel - eg. quotes, newlines, 8 bit \
+                    characters in fields, \"0 etc.
+
+categories          devel ml
+
+distname            ocaml-csv-${version}
+
+homepage            http://merjis.com/developers/csv
+master_sites        http://merjis.com/_file/
+
+platforms           darwin
+
+checksums           md5 a91851438f9540b1a445087a4d409507 \
+                    sha1 3cd88f87c19639b9c75c67d9ffb729ad37f9d9d2 \
+                    rmd160 4d4d8234a58e302c0adf6e17f7e85e4880f932f4
+
+use_configure       no
+
+post-patch {
+    file copy ${filespath}/META.in ${worksrcpath}/META
+    reinplace s|@VERSION@|${version}|g ${worksrcpath}/META
+}
+
+destroot {
+    set ocaml_site_path [exec ocamlfind printconf destdir]
+    file mkdir ${destroot}/${ocaml_site_path}
+
+    system "cd ${worksrcpath} && ${prefix}/bin/ocamlfind install -destdir ${destroot}/${ocaml_site_path} csv META csv.mli csv.cma csv.cmxa"
+}
+
+depends_lib         port:ocaml \
+                    port:caml-findlib

Added: trunk/dports/devel/caml-csv/files/META.in
===================================================================
--- trunk/dports/devel/caml-csv/files/META.in	                        (rev 0)
+++ trunk/dports/devel/caml-csv/files/META.in	2008-07-29 00:26:08 UTC (rev 38690)
@@ -0,0 +1,7 @@
+name="csv"
+version="@VERSION@"
+description="CSV library"
+requires=""
+archive(byte)="csv.cma"
+archive(native)="csv.cmxa"
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080728/3f214e06/attachment.html 


More information about the macports-changes mailing list