summaryrefslogtreecommitdiff
path: root/textproc/ocaml-csv
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2013-06-15 20:53:03 +0000
committerjaapb <jaapb@pkgsrc.org>2013-06-15 20:53:03 +0000
commitf764a97de3d34ca98dab555dcefeed166025c7db (patch)
treecf97ca2acb8334809d0a8e5eb1c3fd60fbe2b8f2 /textproc/ocaml-csv
parent971abaf8525f7ebff8035d3cae43ba8204acf2b3 (diff)
downloadpkgsrc-f764a97de3d34ca98dab555dcefeed166025c7db.tar.gz
Added new package, textproc/ocaml-csv. A pure OCaml library that supports
comma separated values.
Diffstat (limited to 'textproc/ocaml-csv')
-rw-r--r--textproc/ocaml-csv/DESCR2
-rw-r--r--textproc/ocaml-csv/Makefile41
-rw-r--r--textproc/ocaml-csv/PLIST10
-rw-r--r--textproc/ocaml-csv/distinfo5
4 files changed, 58 insertions, 0 deletions
diff --git a/textproc/ocaml-csv/DESCR b/textproc/ocaml-csv/DESCR
new file mode 100644
index 00000000000..1d5555f9599
--- /dev/null
+++ b/textproc/ocaml-csv/DESCR
@@ -0,0 +1,2 @@
+This is a pure OCaml library to read and write CSV (comma separated value)
+files.
diff --git a/textproc/ocaml-csv/Makefile b/textproc/ocaml-csv/Makefile
new file mode 100644
index 00000000000..435680cbcc7
--- /dev/null
+++ b/textproc/ocaml-csv/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2013/06/15 20:53:03 jaapb Exp $
+
+PKGNAME= ocaml-${DISTNAME}
+DISTNAME= csv-1.3.0
+CATEGORIES= textproc
+MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1172/
+
+MAINTAINER= jaapb@NetBSD.org
+HOMEPAGE= http://csv.forge.ocamlcore.org/
+COMMENT= CSV library for OCaml
+LICENSE= gnu-lgpl-v2.1
+
+HAS_CONFIGURE= yes
+USE_LANGUAGES= c
+
+CONFIGURE_ARGS+= --destdir "${DESTDIR}" --prefix "${PREFIX}"
+
+SUBST_CLASSES+= destdir
+SUBST_STAGE.destdir= post-configure
+SUBST_MESSAGE.destdir= Changing install location to DESTDIR
+SUBST_FILES.destdir= setup.ml
+SUBST_SED.destdir= -e 's,"install" :: findlib_name,"install" :: "-destdir ${DESTDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,'
+
+PLIST_VARS= opt
+.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
+ (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
+PLIST.opt= yes
+.endif
+
+do-configure:
+ cd ${WRKSRC} && ${CONFIGURE_ENV} ocaml setup.ml -configure ${CONFIGURE_ARGS}
+
+do-build:
+ cd ${WRKSRC} && ${MAKE_ENV} ocaml setup.ml -build
+
+do-install:
+ cd ${WRKSRC} && ocaml setup.ml -install
+
+.include "../../devel/ocaml-findlib/buildlink3.mk"
+.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ocaml-csv/PLIST b/textproc/ocaml-csv/PLIST
new file mode 100644
index 00000000000..19eb39b9f06
--- /dev/null
+++ b/textproc/ocaml-csv/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2013/06/15 20:53:03 jaapb Exp $
+bin/csvtool
+lib/ocaml/site-lib/csv/META
+${PLIST.opt}lib/ocaml/site-lib/csv/csv.a
+lib/ocaml/site-lib/csv/csv.cma
+lib/ocaml/site-lib/csv/csv.cmi
+${PLIST.opt}lib/ocaml/site-lib/csv/csv.cmx
+${PLIST.opt}lib/ocaml/site-lib/csv/csv.cmxa
+${PLIST.opt}lib/ocaml/site-lib/csv/csv.cmxs
+lib/ocaml/site-lib/csv/csv.mli
diff --git a/textproc/ocaml-csv/distinfo b/textproc/ocaml-csv/distinfo
new file mode 100644
index 00000000000..b137ab45496
--- /dev/null
+++ b/textproc/ocaml-csv/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2013/06/15 20:53:03 jaapb Exp $
+
+SHA1 (csv-1.3.0.tar.gz) = 07ae8a6ebb10779ea6242199fe0298a5065536e8
+RMD160 (csv-1.3.0.tar.gz) = 3b31e9cbea573c3da0027531407cdb99588b918b
+Size (csv-1.3.0.tar.gz) = 72014 bytes