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.
This commit is contained in:
Alexey Dokuchaev 2021-10-27 11:40:42 +00:00
parent 8608e04e8e
commit 1cc02bea84
4 changed files with 50 additions and 29 deletions

View File

@ -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
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
CPPFLAGS+= -I${OPENSSLINC}
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
USE_OCAML= yes
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= *
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
OPTIONS_DEFINE= DOCS
OPTIONS_DEFINE= DOCS EXAMPLES
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/html
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${STAGEDIR}${DOCSDIR}/html
do-build:
cd ${BUILD_WRKSRC} && dune build -p ${PORTNAME} -j ${MAKE_JOBS_NUMBER}
do-install:
cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \
--libdir=${OCAML_SITELIBDIR}
do-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

View File

@ -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

View File

@ -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

View File

@ -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