git: 1cc02bea843e - main - security/ocaml-ssl: update to version 0.5.9, assume maintainership
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 27 Oct 2021 11:42:00 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=1cc02bea843e1ac98fdde7aa33a2d986a6a36291 commit 1cc02bea843e1ac98fdde7aa33a2d986a6a36291 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2021-10-27 11:40:42 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2021-10-27 11:40:43 +0000 security/ocaml-ssl: update to version 0.5.9, assume maintainership Now builds itself using `devel/ocaml-dune', so drop most of the old USE_OCAML_* knobs. This also makes the build parallel-safe. While here, convert to static pkg-plist and install some examples. --- security/ocaml-ssl/Makefile | 40 +++++++++++++++++----------------------- security/ocaml-ssl/distinfo | 6 +++--- security/ocaml-ssl/pkg-descr | 4 ++-- security/ocaml-ssl/pkg-plist | 27 +++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 28 deletions(-) diff --git a/security/ocaml-ssl/Makefile b/security/ocaml-ssl/Makefile index f06516ebd1d4..150b4ec8c09f 100644 --- a/security/ocaml-ssl/Makefile +++ b/security/ocaml-ssl/Makefile @@ -1,44 +1,38 @@ # Created by: Jaap Boender <jaapb@kerguelen.org> PORTNAME= ssl -PORTVERSION= 0.5.3 +PORTVERSION= 0.5.9 CATEGORIES= security devel PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= danfe@FreeBSD.org COMMENT= OpenSSL bindings for OCaml LICENSE= LGPL21+ LICENSE_FILE= ${WRKSRC}/COPYING +BUILD_DEPENDS= dune:devel/ocaml-dune + +USES= ssl USE_GITHUB= yes GH_ACCOUNT= savonet GH_PROJECT= ocaml-ssl +USE_OCAML= yes -USES= autoreconf gmake ssl -GNU_CONFIGURE= yes -CONFIGURE_ARGS= --docdir=${DOCSDIR} -MAKE_ENV= OCAMLFIND_INSTFLAGS="-ldconf ignore" -MAKE_JOBS_UNSAFE= yes - -USE_OCAML= yes -USE_OCAML_FINDLIB= yes -USE_OCAML_LDCONFIG= yes -USE_OCAMLFIND_PLIST= yes - -ALL_TARGET= all doc +DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} +EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME} -CPPFLAGS+= -I${OPENSSLINC} -CFLAGS+= -I${OPENSSLINC} -LDFLAGS+= -L${OPENSSLLIB} +OPTIONS_DEFINE= DOCS EXAMPLES -DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} -PORTDOCS= * +do-build: + cd ${BUILD_WRKSRC} && dune build -p ${PORTNAME} -j ${MAKE_JOBS_NUMBER} -OPTIONS_DEFINE= DOCS +do-install: + cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \ + --libdir=${OCAML_SITELIBDIR} -post-install-DOCS-on: - @${MKDIR} ${STAGEDIR}${DOCSDIR}/html - ${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR}/html +do-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/security/ocaml-ssl/distinfo b/security/ocaml-ssl/distinfo index b127fa694f46..12c9a3995701 100644 --- a/security/ocaml-ssl/distinfo +++ b/security/ocaml-ssl/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1479242545 -SHA256 (savonet-ocaml-ssl-0.5.3_GH0.tar.gz) = e8dde6ccde94657b9458057825506620a577289db23640e0b1fcb1fbfd7f45b7 -SIZE (savonet-ocaml-ssl-0.5.3_GH0.tar.gz) = 47011 +TIMESTAMP = 1563180443 +SHA256 (savonet-ocaml-ssl-0.5.9_GH0.tar.gz) = 1f3d66aaf9af5cc9c1fceb8e4bc00ad022035fb44416f6d7cebbad2c963161ea +SIZE (savonet-ocaml-ssl-0.5.9_GH0.tar.gz) = 32721 diff --git a/security/ocaml-ssl/pkg-descr b/security/ocaml-ssl/pkg-descr index 5d577254a5f6..7dac2cbb6604 100644 --- a/security/ocaml-ssl/pkg-descr +++ b/security/ocaml-ssl/pkg-descr @@ -1,3 +1,3 @@ -ocaml-ssl is a set of OCaml bindings for openssl. +This package installs a set of OCaml bindings for OpenSSL. -WWW: http://savonet.sourceforge.net/wiki/OCamlLibs +WWW: https://github.com/savonet/ocaml-ssl diff --git a/security/ocaml-ssl/pkg-plist b/security/ocaml-ssl/pkg-plist new file mode 100644 index 000000000000..9a0cb8472a91 --- /dev/null +++ b/security/ocaml-ssl/pkg-plist @@ -0,0 +1,27 @@ +%%OCAML_SITELIBDIR%%/ssl/META +%%OCAML_SITELIBDIR%%/ssl/dune-package +%%OCAML_SITELIBDIR%%/ssl/libssl_stubs.a +%%OCAML_SITELIBDIR%%/ssl/opam +%%OCAML_SITELIBDIR%%/ssl/ssl.a +%%OCAML_SITELIBDIR%%/ssl/ssl.cma +%%OCAML_SITELIBDIR%%/ssl/ssl.cmi +%%OCAML_SITELIBDIR%%/ssl/ssl.cmt +%%OCAML_SITELIBDIR%%/ssl/ssl.cmti +%%OCAML_SITELIBDIR%%/ssl/ssl.cmx +%%OCAML_SITELIBDIR%%/ssl/ssl.cmxa +%%OCAML_SITELIBDIR%%/ssl/ssl.cmxs +%%OCAML_SITELIBDIR%%/ssl/ssl.ml +%%OCAML_SITELIBDIR%%/ssl/ssl.mli +%%OCAML_SITELIBDIR%%/ssl/ssl_threads.cmi +%%OCAML_SITELIBDIR%%/ssl/ssl_threads.cmt +%%OCAML_SITELIBDIR%%/ssl/ssl_threads.cmti +%%OCAML_SITELIBDIR%%/ssl/ssl_threads.cmx +%%OCAML_SITELIBDIR%%/ssl/ssl_threads.ml +%%OCAML_SITELIBDIR%%/ssl/ssl_threads.mli +%%OCAML_SITELIBDIR%%/stublibs/dllssl_stubs.so +%%PORTDOCS%%%%DOCSDIR%%/CHANGES +%%PORTDOCS%%%%DOCSDIR%%/README.md +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/alpn.ml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/dune +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stalkd.ml +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/stelnet.ml