1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00

converters/ocaml-jsonm: update the port to version 1.0.1 and

- Chase HTTP/1.1 301 redirection when fetching the distfile
- Update license (ISCL), assume maintainership of the port
- Use provided build scripts instead of performing it manually
- Convert to static pkg-plist, 16 lines don't warrant dynamic

devel/ocaml-uutf: (required) update the port to version 1.0.2
and make changes similar to the above;

devel/ocaml-topkg: call `do-build' recipe in ${BUILD_WRKSRC}.
This commit is contained in:
Alexey Dokuchaev 2021-09-26 11:14:08 +00:00
parent edecfedd29
commit 2dd72cdfb1
7 changed files with 72 additions and 29 deletions

View File

@ -1,35 +1,41 @@
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
PORTNAME= jsonm
PORTVERSION= 0.9.1
PORTVERSION= 1.0.1
CATEGORIES= converters
MASTER_SITES= http://erratique.ch/software/jsonm/releases/
MASTER_SITES= https://erratique.ch/software/jsonm/releases/
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
MAINTAINER= danfe@FreeBSD.org
COMMENT= Non-blocking streaming JSON codec for OCaml
LICENSE= BSD3CLAUSE
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= ${SA_DIR}/uutf/uutf.a:devel/ocaml-uutf
BUILD_DEPENDS+= ocamlbuild:devel/ocaml-ocamlbuild
RUN_DEPENDS= ${SA_DIR}/uutf/uutf.a:devel/ocaml-uutf
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild \
opam-installer:devel/ocaml-opam \
${SA_DIR}/topkg/META:devel/ocaml-topkg \
${SA_DIR}/uchar/META:devel/ocaml-uchar \
${SA_DIR}/uutf/META:devel/ocaml-uutf
RUN_DEPENDS= ${SA_DIR}/uchar/META:devel/ocaml-uchar \
${SA_DIR}/uutf/META:devel/ocaml-uutf
USES= tar:tbz
USE_OCAML= yes
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
USE_OCAML_FINDLIB= yes
USE_OCAMLFIND_PLIST= yes
USE_OCAML_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC} && ocamlbuild src/jsonm.cmxs src/jsonm.cma src/jsonm.a
cd ${BUILD_WRKSRC} && ocaml pkg/pkg.ml build
do-install:
${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}/jsonm
cd ${WRKSRC} && ocamlfind install -destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib jsonm src/META _build/src/jsonm.a _build/src/jsonm.cma _build/src/jsonm.cmi _build/src/jsonm.cmx _build/src/jsonm.cmxa _build/src/jsonm.cmxs _build/src/jsonm.mli
${INSTALL_LIB} ${WRKSRC}/_build/src/jsonm.cmxs \
${STAGEDIR}${OCAMLFIND_DESTDIR}/jsonm
cd ${INSTALL_WRKSRC} && opam-installer -i \
--prefix=${STAGEDIR}${PREFIX} \
--docdir=${OCAML_DOCSDIR:S,^${PREFIX}/,,} \
--libdir=${OCAML_SITELIBDIR} ${PORTNAME}.install
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (jsonm-0.9.1.tbz) = 3fd4dca045d82332da847e65e981d8b504883571d299a3f7e71447d46bc65f73
SIZE (jsonm-0.9.1.tbz) = 64843
TIMESTAMP = 1632410748
SHA256 (jsonm-1.0.1.tbz) = 3c09562ed43b617d8b6d9522a249ff770228e7d6de9f9508b72e84d52b6be684
SIZE (jsonm-1.0.1.tbz) = 21608

View File

@ -0,0 +1,16 @@
bin/jsontrip
%%OCAML_SITELIBDIR%%/jsonm/META
%%OCAML_SITELIBDIR%%/jsonm/jsonm.a
%%OCAML_SITELIBDIR%%/jsonm/jsonm.cma
%%OCAML_SITELIBDIR%%/jsonm/jsonm.cmi
%%OCAML_SITELIBDIR%%/jsonm/jsonm.cmti
%%OCAML_SITELIBDIR%%/jsonm/jsonm.cmx
%%OCAML_SITELIBDIR%%/jsonm/jsonm.cmxa
%%OCAML_SITELIBDIR%%/jsonm/jsonm.cmxs
%%OCAML_SITELIBDIR%%/jsonm/jsonm.mli
%%OCAML_SITELIBDIR%%/jsonm/opam
%%PORTDOCS%%share/doc/ocaml/jsonm/CHANGES.md
%%PORTDOCS%%share/doc/ocaml/jsonm/LICENSE.md
%%PORTDOCS%%share/doc/ocaml/jsonm/README.md
%%PORTDOCS%%share/doc/ocaml/jsonm/examples.ml
%%PORTDOCS%%share/doc/ocaml/jsonm/jtree.ml

View File

@ -22,7 +22,7 @@ USE_OCAML_FINDLIB= yes
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC} && ocaml pkg/pkg.ml build
cd ${BUILD_WRKSRC} && ocaml pkg/pkg.ml build
do-install:
cd ${INSTALL_WRKSRC} && opam-installer -i \

View File

@ -1,32 +1,37 @@
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
PORTNAME= uutf
PORTVERSION= 0.9.4
PORTVERSION= 1.0.2
CATEGORIES= devel
MASTER_SITES= http://erratique.ch/software/uutf/releases/
MASTER_SITES= https://erratique.ch/software/uutf/releases/
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
MAINTAINER= danfe@FreeBSD.org
COMMENT= Non-blocking streaming Unicode codec for OCaml
LICENSE= BSD3CLAUSE
LICENSE= ISCL
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild
BUILD_DEPENDS+= opam-installer:devel/ocaml-opam \
${LOCALBASE}/${OCAML_SITELIBDIR}/cmdliner/META:devel/ocaml-cmdliner \
${LOCALBASE}/${OCAML_SITELIBDIR}/topkg/META:devel/ocaml-topkg \
${LOCALBASE}/${OCAML_SITELIBDIR}/uchar/META:devel/ocaml-uchar
USES= tar:tbz
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAMLFIND_PLIST= yes
USE_OCAML_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
do-build:
cd ${WRKSRC} && ocamlbuild uutf.cmxs uutf.cma uutf.a
cd ${BUILD_WRKSRC} && ocaml pkg/pkg.ml build
do-install:
${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}/uutf
cd ${WRKSRC} && ocamlfind install -destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib uutf pkg/META _build/src/uutf.a _build/src/uutf.cma _build/src/uutf.cmi _build/src/uutf.cmx _build/src/uutf.cmxa _build/src/uutf.cmxs _build/src/uutf.mli
${INSTALL_LIB} ${WRKSRC}/_build/src/uutf.cmxs \
${STAGEDIR}${OCAMLFIND_DESTDIR}/uutf
cd ${INSTALL_WRKSRC} && opam-installer -i \
--prefix=${STAGEDIR}${PREFIX} \
--docdir=${OCAML_DOCSDIR:S,^${PREFIX}/,,} \
--libdir=${OCAML_SITELIBDIR} ${PORTNAME}.install
.include <bsd.port.mk>

View File

@ -1,2 +1,3 @@
SHA256 (uutf-0.9.4.tbz) = 13706722a0037b167eef359bac68d5426d05f64aa308f44c1784aace9577e1b8
SIZE (uutf-0.9.4.tbz) = 36987
TIMESTAMP = 1630879713
SHA256 (uutf-1.0.2.tbz) = e61a81f535e535b8772aa8ec4950939dd588b9337d4c9fec9743483c3ccda1db
SIZE (uutf-1.0.2.tbz) = 22420

View File

@ -0,0 +1,14 @@
bin/utftrip
%%OCAML_SITELIBDIR%%/uutf/META
%%OCAML_SITELIBDIR%%/uutf/opam
%%OCAML_SITELIBDIR%%/uutf/uutf.a
%%OCAML_SITELIBDIR%%/uutf/uutf.cma
%%OCAML_SITELIBDIR%%/uutf/uutf.cmi
%%OCAML_SITELIBDIR%%/uutf/uutf.cmti
%%OCAML_SITELIBDIR%%/uutf/uutf.cmx
%%OCAML_SITELIBDIR%%/uutf/uutf.cmxa
%%OCAML_SITELIBDIR%%/uutf/uutf.cmxs
%%OCAML_SITELIBDIR%%/uutf/uutf.mli
%%PORTDOCS%%share/doc/ocaml/uutf/CHANGES.md
%%PORTDOCS%%share/doc/ocaml/uutf/LICENSE.md
%%PORTDOCS%%share/doc/ocaml/uutf/README.md