pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/ocaml-cstruct Updated devel/ocaml-cstruct to ver...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6cc98334ec75
branches:  trunk
changeset: 378765:6cc98334ec75
user:      jaapb <jaapb%pkgsrc.org@localhost>
date:      Thu May 05 11:40:16 2022 +0000

description:
Updated devel/ocaml-cstruct to version 6.1.0.

There are many changes, including API-breaking ones (see the changelog in
the distribution for more details). The package has also been updated to
allow for lwt and async options.

diffstat:

 devel/ocaml-cstruct/Makefile      |  15 +++++----
 devel/ocaml-cstruct/PLIST         |  56 ++++++++++++++++++++++++++++++++++++++-
 devel/ocaml-cstruct/buildlink3.mk |   5 ++-
 devel/ocaml-cstruct/distinfo      |   8 ++--
 devel/ocaml-cstruct/options.mk    |  33 ++++++++++++++++++++++
 5 files changed, 103 insertions(+), 14 deletions(-)

diffs (175 lines):

diff -r c66204b8224d -r 6cc98334ec75 devel/ocaml-cstruct/Makefile
--- a/devel/ocaml-cstruct/Makefile      Thu May 05 11:38:09 2022 +0000
+++ b/devel/ocaml-cstruct/Makefile      Thu May 05 11:40:16 2022 +0000
@@ -1,11 +1,10 @@
-# $NetBSD: Makefile,v 1.3 2021/03/08 08:12:50 jaapb Exp $
+# $NetBSD: Makefile,v 1.4 2022/05/05 11:40:16 jaapb Exp $
 
+DISTNAME=      ${GITHUB_PROJECT}-6.1.0
+CATEGORIES=    devel
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=mirage/}
 GITHUB_PROJECT=        ocaml-cstruct
 GITHUB_TAG=    v${PKGVERSION_NOREV}
-DISTNAME=      ${GITHUB_PROJECT}-3.7.0
-PKGREVISION=   1
-CATEGORIES=    devel
-MASTER_SITES=  ${MASTER_SITE_GITHUB:=mirage/}
 
 MAINTAINER=    jaapb%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/mirage/ocaml-cstruct/
@@ -13,9 +12,11 @@
 LICENSE=       isc
 
 OCAML_USE_DUNE=                yes
-DUNE_BUILD_PACKAGES=   cstruct cstruct-unix
-OPAM_INSTALL_FILES=    cstruct cstruct-unix
+DUNE_BUILD_PACKAGES=   cstruct cstruct-unix cstruct-sexp
+OPAM_INSTALL_FILES=    cstruct cstruct-unix cstruct-sexp
 
+.include "options.mk"
+.include "../../devel/ocaml-fmt/buildlink3.mk"
 .include "../../devel/ocaml-sexplib/buildlink3.mk"
 .include "../../mk/ocaml.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r c66204b8224d -r 6cc98334ec75 devel/ocaml-cstruct/PLIST
--- a/devel/ocaml-cstruct/PLIST Thu May 05 11:38:09 2022 +0000
+++ b/devel/ocaml-cstruct/PLIST Thu May 05 11:40:16 2022 +0000
@@ -1,4 +1,43 @@
-@comment $NetBSD: PLIST,v 1.1 2019/03/19 11:11:31 jaapb Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/05/05 11:40:16 jaapb Exp $
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/META
+${PLIST.async}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-async/async_cstruct.a
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/async_cstruct.cma
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/async_cstruct.cmi
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/async_cstruct.cmt
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/async_cstruct.cmti
+${PLIST.async}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-async/async_cstruct.cmx
+${PLIST.async}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-async/async_cstruct.cmxa
+${PLIST.async}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-async/async_cstruct.cmxs
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/async_cstruct.ml
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/async_cstruct.mli
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/dune-package
+${PLIST.async}${OCAML_SITELIB}/cstruct-async/opam
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/META
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-lwt/cstruct_lwt.a
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/cstruct_lwt.cma
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-lwt/cstruct_lwt.cmxa
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-lwt/cstruct_lwt.cmxs
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/dune-package
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/lwt_cstruct.cmi
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/lwt_cstruct.cmt
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/lwt_cstruct.cmti
+${PLIST.lwt}${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-lwt/lwt_cstruct.cmx
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/lwt_cstruct.ml
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/lwt_cstruct.mli
+${PLIST.lwt}${OCAML_SITELIB}/cstruct-lwt/opam
+${OCAML_SITELIB}/cstruct-sexp/META
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.a
+${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cma
+${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cmi
+${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cmt
+${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cmx
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cmxa
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.cmxs
+${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.ml
+${OCAML_SITELIB}/cstruct-sexp/cstruct_sexp.mli
+${OCAML_SITELIB}/cstruct-sexp/dune-package
+${OCAML_SITELIB}/cstruct-sexp/opam
 ${OCAML_SITELIB}/cstruct-unix/META
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct-unix/cstruct_unix.a
 ${OCAML_SITELIB}/cstruct-unix/cstruct_unix.cma
@@ -24,10 +63,25 @@
 ${OCAML_SITELIB}/cstruct/cstruct.js
 ${OCAML_SITELIB}/cstruct/cstruct.ml
 ${OCAML_SITELIB}/cstruct/cstruct.mli
+${OCAML_SITELIB}/cstruct/cstruct_cap.cmi
+${OCAML_SITELIB}/cstruct/cstruct_cap.cmt
+${OCAML_SITELIB}/cstruct/cstruct_cap.cmti
+${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct/cstruct_cap.cmx
+${OCAML_SITELIB}/cstruct/cstruct_cap.ml
+${OCAML_SITELIB}/cstruct/cstruct_cap.mli
 ${OCAML_SITELIB}/cstruct/dune-package
 ${PLIST.ocaml-opt}${OCAML_SITELIB}/cstruct/libcstruct_stubs.a
 ${OCAML_SITELIB}/cstruct/opam
 ${OCAML_SITELIB}/stublibs/dllcstruct_stubs.so
+${PLIST.async}share/doc/cstruct-async/CHANGES.md
+${PLIST.async}share/doc/cstruct-async/LICENSE.md
+${PLIST.async}share/doc/cstruct-async/README.md
+${PLIST.lwt}share/doc/cstruct-lwt/CHANGES.md
+${PLIST.lwt}share/doc/cstruct-lwt/LICENSE.md
+${PLIST.lwt}share/doc/cstruct-lwt/README.md
+share/doc/cstruct-sexp/CHANGES.md
+share/doc/cstruct-sexp/LICENSE.md
+share/doc/cstruct-sexp/README.md
 share/doc/cstruct-unix/CHANGES.md
 share/doc/cstruct-unix/LICENSE.md
 share/doc/cstruct-unix/README.md
diff -r c66204b8224d -r 6cc98334ec75 devel/ocaml-cstruct/buildlink3.mk
--- a/devel/ocaml-cstruct/buildlink3.mk Thu May 05 11:38:09 2022 +0000
+++ b/devel/ocaml-cstruct/buildlink3.mk Thu May 05 11:40:16 2022 +0000
@@ -1,11 +1,12 @@
-# $NetBSD: buildlink3.mk,v 1.1 2019/03/19 11:11:31 jaapb Exp $
+# $NetBSD: buildlink3.mk,v 1.2 2022/05/05 11:40:16 jaapb Exp $
 
 BUILDLINK_TREE+=       ocaml-cstruct
 
 .if !defined(OCAML_CSTRUCT_BUILDLINK3_MK)
 OCAML_CSTRUCT_BUILDLINK3_MK:=
 
-BUILDLINK_API_DEPENDS.ocaml-cstruct+=  ocaml-cstruct>=3.7.0
+BUILDLINK_API_DEPENDS.ocaml-cstruct+=  ocaml-cstruct>=6.1.0
+BUILDLINK_ABI_DEPENDS.ocaml-cstruct+=  ocaml-cstruct>=6.1.0
 BUILDLINK_PKGSRCDIR.ocaml-cstruct?=    ../../devel/ocaml-cstruct
 .endif # OCAML_CSTRUCT_BUILDLINK3_MK
 
diff -r c66204b8224d -r 6cc98334ec75 devel/ocaml-cstruct/distinfo
--- a/devel/ocaml-cstruct/distinfo      Thu May 05 11:38:09 2022 +0000
+++ b/devel/ocaml-cstruct/distinfo      Thu May 05 11:40:16 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 10:15:48 nia Exp $
+$NetBSD: distinfo,v 1.4 2022/05/05 11:40:16 jaapb Exp $
 
-BLAKE2s (ocaml-cstruct-3.7.0.tar.gz) = 80fdea2e3f4fe0f5fa0cd7d1cad9f81f7bbc9fd65b44412997bfa58bd42df5f3
-SHA512 (ocaml-cstruct-3.7.0.tar.gz) = 5e4aaa310d0ff9b7d393d61236253b767e873c13050bed861243899175a25c88267aeabe5d49d1c92af87615238f7f5b2868599d047a5d04200392ccc15a5283
-Size (ocaml-cstruct-3.7.0.tar.gz) = 218339 bytes
+BLAKE2s (ocaml-cstruct-6.1.0.tar.gz) = 8434742685c445354daf9d42bec07afa0de879fa47bfa21ecf33265847669be5
+SHA512 (ocaml-cstruct-6.1.0.tar.gz) = eb1bcb6a35650f726f888c396f3ca64796ad16c1a7146130f8826004c3cac7e5bef2453821ca95844eaef4b4beab25e3db713e6a1a93f86986fb526f75a4e245
+Size (ocaml-cstruct-6.1.0.tar.gz) = 242509 bytes
diff -r c66204b8224d -r 6cc98334ec75 devel/ocaml-cstruct/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ocaml-cstruct/options.mk    Thu May 05 11:40:16 2022 +0000
@@ -0,0 +1,33 @@
+# $NetBSD: options.mk,v 1.1 2022/05/05 11:40:16 jaapb Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.ocaml-cstruct
+PKG_SUPPORTED_OPTIONS= async lwt
+PKG_SUGGESTED_OPTIONS= # empty
+
+.include "../../mk/bsd.prefs.mk"
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+=   async lwt
+
+###
+### async support
+###
+.if !empty(PKG_OPTIONS:Masync)
+.include "../../devel/ocaml-async/buildlink3.mk"
+.include "../../devel/ocaml-async_unix/buildlink3.mk"
+.include "../../devel/ocaml-core/buildlink3.mk"
+PLIST.async=           yes
+DUNE_BUILD_PACKAGES+=  cstruct-async
+OPAM_INSTALL_FILES+=   cstruct-async
+.endif
+
+###
+### lwt support
+###
+.if !empty(PKG_OPTIONS:Mlwt)
+.include "../../devel/ocaml-lwt/buildlink3.mk"
+PLIST.lwt=             yes
+DUNE_BUILD_PACKAGES+=  cstruct-lwt
+OPAM_INSTALL_FILES+=   cstruct-lwt
+.endif



Home | Main Index | Thread Index | Old Index