git: 708c14c80674 - main - databases/ocaml-sqlite3: update to 5.1.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Aug 2024 18:59:29 UTC
The branch main has been updated by uzsolt: URL: https://cgit.FreeBSD.org/ports/commit/?id=708c14c8067412d9595fbb75f16c7a6094a18893 commit 708c14c8067412d9595fbb75f16c7a6094a18893 Author: Benjamin Jacobs <freebsd@dev.thsi.be> AuthorDate: 2024-08-09 18:50:30 +0000 Commit: Zsolt Udvari <uzsolt@FreeBSD.org> CommitDate: 2024-08-09 18:59:10 +0000 databases/ocaml-sqlite3: update to 5.1.0 Add DOCS option. Add ocaml:dune to USES. Remove patch of sqlite3_stubs.c. Submitter takes maintainership. Switch to DISTVERSION. PR: 280295 --- databases/ocaml-sqlite3/Makefile | 39 ++++++++-------------- databases/ocaml-sqlite3/distinfo | 6 ++-- .../ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c | 14 -------- databases/ocaml-sqlite3/pkg-plist | 15 +++++++++ 4 files changed, 32 insertions(+), 42 deletions(-) diff --git a/databases/ocaml-sqlite3/Makefile b/databases/ocaml-sqlite3/Makefile index c9eb0e19baf7..0911d4435f66 100644 --- a/databases/ocaml-sqlite3/Makefile +++ b/databases/ocaml-sqlite3/Makefile @@ -1,46 +1,35 @@ PORTNAME= sqlite3 -PORTVERSION= 4.0.5 -DISTVERSIONPREFIX= v -PORTREVISION= 2 +DISTVERSION= 5.1.0 CATEGORIES= databases PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= freebsd@dev.thsi.be COMMENT= OCaml bindings to sqlite3 library WWW= https://mmottl.github.io/sqlite3-ocaml/ LICENSE= OCSQLT3 LICENSE_NAME= OCaml-SQLite3 unique permissive license -LICENSE_FILE= ${WRKSRC}/COPYING.txt +LICENSE_FILE= ${WRKSRC}/LICENSE.md LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild -USES= compiler:features gmake pkgconfig sqlite -USE_OCAML= yes -USE_OCAML_FINDLIB= yes -USE_OCAML_LDCONFIG= yes -USE_OCAMLFIND_PLIST= yes -HAS_CONFIGURE= yes -MAKE_JOBS_UNSAFE= yes -CONFIGURE_ARGS= --destdir "${STAGEDIR}" \ - --prefix "${PREFIX}" - +USES= ocaml:dune pkgconfig sqlite +USE_GITHUB= yes GH_ACCOUNT= mmottl GH_PROJECT= ${PORTNAME}-ocaml -USE_GITHUB= yes -post-patch: - @${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /var/null" :: findlib_name,' \ - ${WRKSRC}/setup.ml +USE_OCAML= yes +USE_OCAML_LDCONFIG= yes -do-configure: - (cd ${WRKSRC} && ocaml setup.ml -configure ${CONFIGURE_ARGS}) +DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} +PORTDOCS= CHANGES.md LICENSE.md README.md -do-build: - (cd ${WRKSRC} && ocaml setup.ml -build) +OPTIONS_DEFINE= DOCS -do-install: - (cd ${WRKSRC} && ocaml setup.ml -install) +post-install: + @${STRIP_CMD} \ + ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/dllsqlite3_stubs.so \ + ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/sqlite3.cmxs .include <bsd.port.mk> diff --git a/databases/ocaml-sqlite3/distinfo b/databases/ocaml-sqlite3/distinfo index 4841f1cbb8c6..d9a8ca89a108 100644 --- a/databases/ocaml-sqlite3/distinfo +++ b/databases/ocaml-sqlite3/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1470261597 -SHA256 (mmottl-sqlite3-ocaml-v4.0.5_GH0.tar.gz) = bf0bdc597533d62b8de2798e9aa46c37570875cb4af4f9f42fba21dd59f3f0cb -SIZE (mmottl-sqlite3-ocaml-v4.0.5_GH0.tar.gz) = 67839 +TIMESTAMP = 1717452118 +SHA256 (mmottl-sqlite3-ocaml-5.1.0_GH0.tar.gz) = 046ceaacb08f97a699eddd6d3201b4586ea3ec3ed59adc019e97ce1490090086 +SIZE (mmottl-sqlite3-ocaml-5.1.0_GH0.tar.gz) = 33362 diff --git a/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c b/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c deleted file mode 100644 index 94338598c7ca..000000000000 --- a/databases/ocaml-sqlite3/files/patch-lib_sqlite3_stubs.c +++ /dev/null @@ -1,14 +0,0 @@ -$NetBSD: patch-lib_sqlite3_stubs.c,v 1.1 2012/09/16 11:34:46 jaapb Exp $ - -Correct system-dependent defines ---- lib/sqlite3_stubs.c.orig 2012-07-20 15:39:49 UTC -+++ lib/sqlite3_stubs.c -@@ -40,7 +40,7 @@ - - #if __GNUC__ >= 3 - # define inline inline __attribute__ ((always_inline)) --# if !defined(__FreeBSD__) && !__APPLE__ -+# if !defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__DragonFly__) && !__APPLE__ - # define __unused __attribute__ ((unused)) - # endif - #else diff --git a/databases/ocaml-sqlite3/pkg-plist b/databases/ocaml-sqlite3/pkg-plist new file mode 100644 index 000000000000..cd7b949708b9 --- /dev/null +++ b/databases/ocaml-sqlite3/pkg-plist @@ -0,0 +1,15 @@ +%%OCAML_SITELIBDIR%%/sqlite3/META +%%OCAML_SITELIBDIR%%/sqlite3/dllsqlite3_stubs.so +%%OCAML_SITELIBDIR%%/sqlite3/dune-package +%%OCAML_SITELIBDIR%%/sqlite3/libsqlite3_stubs.a +%%OCAML_SITELIBDIR%%/sqlite3/opam +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.a +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cma +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmi +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmt +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmti +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmx +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmxa +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.cmxs +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.ml +%%OCAML_SITELIBDIR%%/sqlite3/sqlite3.mli