pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ocaml-cstruct



Module Name:    pkgsrc
Committed By:   jaapb
Date:           Thu May  5 11:40:16 UTC 2022

Modified Files:
        pkgsrc/devel/ocaml-cstruct: Makefile PLIST buildlink3.mk distinfo
Added Files:
        pkgsrc/devel/ocaml-cstruct: options.mk

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 pkgsrc/devel/ocaml-cstruct/Makefile \
    pkgsrc/devel/ocaml-cstruct/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/ocaml-cstruct/PLIST \
    pkgsrc/devel/ocaml-cstruct/buildlink3.mk
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/ocaml-cstruct/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ocaml-cstruct/Makefile
diff -u pkgsrc/devel/ocaml-cstruct/Makefile:1.3 pkgsrc/devel/ocaml-cstruct/Makefile:1.4
--- pkgsrc/devel/ocaml-cstruct/Makefile:1.3     Mon Mar  8 08:12:50 2021
+++ pkgsrc/devel/ocaml-cstruct/Makefile Thu May  5 11:40:16 2022
@@ -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 $
 
-GITHUB_PROJECT=        ocaml-cstruct
-GITHUB_TAG=    v${PKGVERSION_NOREV}
-DISTNAME=      ${GITHUB_PROJECT}-3.7.0
-PKGREVISION=   1
+DISTNAME=      ${GITHUB_PROJECT}-6.1.0
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=mirage/}
+GITHUB_PROJECT=        ocaml-cstruct
+GITHUB_TAG=    v${PKGVERSION_NOREV}
 
 MAINTAINER=    jaapb%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/mirage/ocaml-cstruct/
@@ -13,9 +12,11 @@ COMMENT=     Map OCaml arrays onto C-like st
 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"
Index: pkgsrc/devel/ocaml-cstruct/distinfo
diff -u pkgsrc/devel/ocaml-cstruct/distinfo:1.3 pkgsrc/devel/ocaml-cstruct/distinfo:1.4
--- pkgsrc/devel/ocaml-cstruct/distinfo:1.3     Tue Oct 26 10:15:48 2021
+++ pkgsrc/devel/ocaml-cstruct/distinfo Thu May  5 11:40:16 2022
@@ -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

Index: pkgsrc/devel/ocaml-cstruct/PLIST
diff -u pkgsrc/devel/ocaml-cstruct/PLIST:1.1 pkgsrc/devel/ocaml-cstruct/PLIST:1.2
--- pkgsrc/devel/ocaml-cstruct/PLIST:1.1        Tue Mar 19 11:11:31 2019
+++ pkgsrc/devel/ocaml-cstruct/PLIST    Thu May  5 11:40:16 2022
@@ -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 @@ ${PLIST.ocaml-opt}${OCAML_SITELIB}/cstru
 ${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
Index: pkgsrc/devel/ocaml-cstruct/buildlink3.mk
diff -u pkgsrc/devel/ocaml-cstruct/buildlink3.mk:1.1 pkgsrc/devel/ocaml-cstruct/buildlink3.mk:1.2
--- pkgsrc/devel/ocaml-cstruct/buildlink3.mk:1.1        Tue Mar 19 11:11:31 2019
+++ pkgsrc/devel/ocaml-cstruct/buildlink3.mk    Thu May  5 11:40:16 2022
@@ -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
 

Added files:

Index: pkgsrc/devel/ocaml-cstruct/options.mk
diff -u /dev/null pkgsrc/devel/ocaml-cstruct/options.mk:1.1
--- /dev/null   Thu May  5 11:40:16 2022
+++ pkgsrc/devel/ocaml-cstruct/options.mk       Thu May  5 11:40:16 2022
@@ -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