pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc/ocaml-csv Revbump for package textproc/ocaml-...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dcca849eea7a
branches:  trunk
changeset: 373885:dcca849eea7a
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Wed Jan 10 16:46:03 2018 +0000

description:
Revbump for package textproc/ocaml-csv.

This revision also introduces the lwt option, to optionally build
ocaml-lwt compatibility.

diffstat:

 textproc/ocaml-csv/Makefile      |   7 +++++--
 textproc/ocaml-csv/PLIST         |  24 +++++++++++++++++++++++-
 textproc/ocaml-csv/buildlink3.mk |   6 +++---
 textproc/ocaml-csv/options.mk    |  21 +++++++++++++++++++++
 4 files changed, 52 insertions(+), 6 deletions(-)

diffs (110 lines):

diff -r 50cd5316a45a -r dcca849eea7a textproc/ocaml-csv/Makefile
--- a/textproc/ocaml-csv/Makefile       Wed Jan 10 16:44:27 2018 +0000
+++ b/textproc/ocaml-csv/Makefile       Wed Jan 10 16:46:03 2018 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.16 2018/01/07 21:02:29 joerg Exp $
+# $NetBSD: Makefile,v 1.17 2018/01/10 16:46:03 jaapb Exp $
 
 VERSION=       2.0
 GITHUB_PROJECT=        ocaml-csv
 DISTNAME=      ${GITHUB_PROJECT}-${VERSION}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=Chris00/}
 
@@ -16,7 +16,10 @@
 USE_LANGUAGES= c
 
 OCAML_USE_JBUILDER=    yes
+JBUILDER_BUILD_PACKAGES=       csv
+OPAM_INSTALL_FILES=    csv
 
+.include "options.mk"
 .include "../../mk/ocaml.mk"
 .include "../../devel/ocaml-lwt/buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 50cd5316a45a -r dcca849eea7a textproc/ocaml-csv/PLIST
--- a/textproc/ocaml-csv/PLIST  Wed Jan 10 16:44:27 2018 +0000
+++ b/textproc/ocaml-csv/PLIST  Wed Jan 10 16:46:03 2018 +0000
@@ -1,5 +1,24 @@
-@comment $NetBSD: PLIST,v 1.4 2017/10/10 09:47:25 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.5 2018/01/10 16:46:03 jaapb Exp $
 bin/csvtool
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/META
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/csv-lwt/csv_lwt.a
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cma
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cmi
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cmt
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cmti
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cmx
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cmxa
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/csv-lwt/csv_lwt.cmxs
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt.mli
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt__.cmi
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt__.cmt
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/csv-lwt/csv_lwt__.cmx
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt__.ml-gen
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt__Csv_utils.cmi
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_lwt__Csv_utils.cmt
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/csv-lwt/csv_lwt__Csv_utils.cmx
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/csv_utils.ml
+${PLIST.lwt}${OCAML_SITELIB}/csv-lwt/opam
 ${OCAML_SITELIB}/csv/META
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/csv/csv.a
 ${OCAML_SITELIB}/csv/csv.cma
@@ -23,6 +42,9 @@
 ${OCAML_SITELIB}/csv/csv_row.ml
 ${OCAML_SITELIB}/csv/csv_utils.ml
 ${OCAML_SITELIB}/csv/opam
+${PLIST.lwt}share/doc/csv-lwt/CHANGES.md
+${PLIST.lwt}share/doc/csv-lwt/LICENSE.md
+${PLIST.lwt}share/doc/csv-lwt/README.md
 share/doc/csv/CHANGES.md
 share/doc/csv/LICENSE.md
 share/doc/csv/README.md
diff -r 50cd5316a45a -r dcca849eea7a textproc/ocaml-csv/buildlink3.mk
--- a/textproc/ocaml-csv/buildlink3.mk  Wed Jan 10 16:44:27 2018 +0000
+++ b/textproc/ocaml-csv/buildlink3.mk  Wed Jan 10 16:46:03 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: buildlink3.mk,v 1.5 2018/01/07 13:04:34 rillig Exp $
+# $NetBSD: buildlink3.mk,v 1.6 2018/01/10 16:46:03 jaapb Exp $
 
 BUILDLINK_TREE+=       ocaml-csv
 
@@ -6,8 +6,8 @@
 OCAML_CSV_BUILDLINK3_MK:=
 
 BUILDLINK_API_DEPENDS.ocaml-csv+=      ocaml-csv>=2.0
-BUILDLINK_ABI_DEPENDS.ocaml-csv+=      ocaml-csv>=2.0
-BUILDLINK_PKGSRCDIR.ocaml-csv?=                ../../textproc/ocaml-csv
+BUILDLINK_ABI_DEPENDS.ocaml-csv+=      ocaml-csv>=2.0nb2
+BUILDLINK_PKGSRCDIR.ocaml-csv?=        ../../textproc/ocaml-csv
 
 .endif # OCAML_CSV_BUILDLINK3_MK
 
diff -r 50cd5316a45a -r dcca849eea7a textproc/ocaml-csv/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/ocaml-csv/options.mk     Wed Jan 10 16:46:03 2018 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: options.mk,v 1.1 2018/01/10 16:46:03 jaapb Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ocaml-csv
+PKG_SUPPORTED_OPTIONS= lwt
+PKG_SUGGESTED_OPTIONS= # empty
+PLIST_VARS+=   lwt
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Camlp4 support
+###
+.if !empty(PKG_OPTIONS:Mlwt)
+.include "../../devel/ocaml-lwt/buildlink3.mk"
+PLIST.lwt=     yes
+JBUILDER_BUILD_PACKAGES+=      csv-lwt
+OPAM_INSTALL_FILES+=   csv-lwt
+.else
+.endif



Home | Main Index | Thread Index | Old Index