summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaapb <jaapb@pkgsrc.org>2016-07-02 10:11:09 +0000
committerjaapb <jaapb@pkgsrc.org>2016-07-02 10:11:09 +0000
commit5e35bb4886ad8e7a41920bfd3c2315dd0299bca2 (patch)
tree2bd279a63c6765da59eef7c1edb450322024cf99
parenta970da8b1875d97030291e3a8e0309e7102d3738 (diff)
downloadpkgsrc-5e35bb4886ad8e7a41920bfd3c2315dd0299bca2.tar.gz
Updated package to latest version, 1.5; also updated package to work with
ocaml.mk structure and changed upstream to github. Changes: version 1.5 * Improve various commands of csvtool avoiding loading the whole CSV file to memory. * As a consequence, one avoids some Stack_overflow exceptions for long files. version 1.4.2 * Add the possibility to specify an output format to csvtool. version 1.4.1 * Fix writing bug when excel_tricks is enabled. version 1.4 * Optional discarding of spaces * Special handling of files with a header
-rw-r--r--textproc/ocaml-csv/Makefile42
-rw-r--r--textproc/ocaml-csv/PLIST21
-rw-r--r--textproc/ocaml-csv/buildlink3.mk4
-rw-r--r--textproc/ocaml-csv/distinfo10
4 files changed, 35 insertions, 42 deletions
diff --git a/textproc/ocaml-csv/Makefile b/textproc/ocaml-csv/Makefile
index d77185ae1ad..c309e861446 100644
--- a/textproc/ocaml-csv/Makefile
+++ b/textproc/ocaml-csv/Makefile
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.9 2016/05/05 11:45:41 jaapb Exp $
+# $NetBSD: Makefile,v 1.10 2016/07/02 10:11:09 jaapb Exp $
-PKGNAME= ocaml-${DISTNAME}
-DISTNAME= csv-1.3.0
-PKGREVISION= 6
+VERSION= 1.5
+GITHUB_PROJECT= ocaml-csv
+DISTNAME= ${GITHUB_PROJECT}-${VERSION}
CATEGORIES= textproc
-MASTER_SITES= http://forge.ocamlcore.org/frs/download.php/1172/
+MASTER_SITES= ${MASTER_SITE_GITHUB:=Chris00/}
MAINTAINER= jaapb@NetBSD.org
HOMEPAGE= http://csv.forge.ocamlcore.org/
@@ -16,29 +16,19 @@ 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,'
+OCAML_USE_OASIS= yes
-.include "../../mk/bsd.prefs.mk"
-
-PLIST_VARS= opt
-.if (${MACHINE_ARCH} == "i386") || (${MACHINE_ARCH} == "powerpc") || \
- (${MACHINE_ARCH} == "sparc") || (${MACHINE_ARCH} == "x86_64")
-PLIST.opt= yes
-.endif
+#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,'
-do-configure:
- cd ${WRKSRC} && ${CONFIGURE_ENV} ocaml setup.ml -configure ${CONFIGURE_ARGS}
+pre-configure:
+ cd ${WRKSRC} && ${MAKE} setup.ml
-do-build:
- cd ${WRKSRC} && ${MAKE_ENV} ocaml setup.ml -build
-
-do-install:
- cd ${WRKSRC} && ocaml setup.ml -install
+.include "../../mk/bsd.prefs.mk"
-.include "../../devel/ocaml-findlib/buildlink3.mk"
-.include "../../lang/ocaml/buildlink3.mk"
+.include "../../mk/ocaml.mk"
+.include "../../devel/ocaml-oasis/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/textproc/ocaml-csv/PLIST b/textproc/ocaml-csv/PLIST
index 19eb39b9f06..fd7065ac918 100644
--- a/textproc/ocaml-csv/PLIST
+++ b/textproc/ocaml-csv/PLIST
@@ -1,10 +1,13 @@
-@comment $NetBSD: PLIST,v 1.1 2013/06/15 20:53:03 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.2 2016/07/02 10:11:09 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
+${OCAML_SITELIB}/csv/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/csv/csv.a
+${OCAML_SITELIB}/csv/csv.annot
+${OCAML_SITELIB}/csv/csv.cma
+${OCAML_SITELIB}/csv/csv.cmi
+${OCAML_SITELIB}/csv/csv.cmt
+${OCAML_SITELIB}/csv/csv.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/csv/csv.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/csv/csv.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/csv/csv.cmxs
+${OCAML_SITELIB}/csv/csv.mli
diff --git a/textproc/ocaml-csv/buildlink3.mk b/textproc/ocaml-csv/buildlink3.mk
index 298c4e1846f..814a07ba8df 100644
--- a/textproc/ocaml-csv/buildlink3.mk
+++ b/textproc/ocaml-csv/buildlink3.mk
@@ -1,11 +1,11 @@
-# $NetBSD: buildlink3.mk,v 1.1 2013/07/03 10:53:06 jaapb Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2016/07/02 10:11:09 jaapb Exp $
BUILDLINK_TREE+= ocaml-csv
.if !defined(OCAML_CSV_BUILDLINK3_MK)
OCAML_CSV_BUILDLINK3_MK:=
-BUILDLINK_API_DEPENDS.ocaml-csv+= ocaml-csv>=1.3.0
+BUILDLINK_API_DEPENDS.ocaml-csv+= ocaml-csv>=1.5
BUILDLINK_PKGSRCDIR.ocaml-csv?= ../../textproc/ocaml-csv
.endif # OCAML_CSV_BUILDLINK3_MK
diff --git a/textproc/ocaml-csv/distinfo b/textproc/ocaml-csv/distinfo
index 75cc389b5f9..8b3908816b3 100644
--- a/textproc/ocaml-csv/distinfo
+++ b/textproc/ocaml-csv/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.2 2015/11/04 01:59:41 agc Exp $
+$NetBSD: distinfo,v 1.3 2016/07/02 10:11:09 jaapb Exp $
-SHA1 (csv-1.3.0.tar.gz) = 07ae8a6ebb10779ea6242199fe0298a5065536e8
-RMD160 (csv-1.3.0.tar.gz) = 3b31e9cbea573c3da0027531407cdb99588b918b
-SHA512 (csv-1.3.0.tar.gz) = 57fcc356571cd08f30ad4add9e9cebe6a8716f86af9c9387b108250f02b3cffdeda2fabb346dea3c349079653207131f5b462f6a07dd99170b42268f3f17cd8d
-Size (csv-1.3.0.tar.gz) = 72014 bytes
+SHA1 (ocaml-csv-1.5.tar.gz) = 9488efb5a35ca88d79376bfbd9edf5fe7d3c203c
+RMD160 (ocaml-csv-1.5.tar.gz) = bdbd4800948f459d485c16acafe10203e09f30fc
+SHA512 (ocaml-csv-1.5.tar.gz) = c11af5aec1a77465f5f9583a3c7dde3628d881db948ae4f02bdf6ae7ffb0e8ce1bb8fa4bf73ab7c12e916d3bead3664bf99ff348fb1bcb9f336e315f2f001f5c
+Size (ocaml-csv-1.5.tar.gz) = 41183 bytes