import devel/ocaml-yojson

improvements by @sthen, ok by @krw
This commit is contained in:
chrisz 2019-08-04 19:07:43 +00:00
parent 5eb8a16155
commit c5f99000ae
6 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,30 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/08/04 19:07:43 chrisz Exp $
COMMENT = optimized parsing and printing library for the JSON format
CATEGORIES = devel
GH_ACCOUNT = ocaml-community
GH_PROJECT = yojson
GH_TAGNAME = 1.7.0
PKGNAME = ocaml-${DISTNAME}
# 3-clause BSD
PERMIT_PACKAGE = Yes
WANTLIB = c m
MODULES = lang/ocaml
BUILD_DEPENDS = devel/dune \
devel/ocaml-cppo \
devel/ocaml-easy-format \
devel/ocaml-biniou
FAKE_FLAGS = OCAMLFIND_DESTDIR=${LOCALBASE}/lib/ocaml
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ocaml-${GH_PROJECT}
mv ${PREFIX}/doc/* ${PREFIX}/share/doc/ocaml-${GH_PROJECT}/
rmdir ${PREFIX}/doc
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (yojson-1.7.0.tar.gz) = /I04j79wfiWVmTJLb+2/R/dvraG3VfHsKFoIsrWmi9M=
SIZE (yojson-1.7.0.tar.gz) = 29704

View File

@ -0,0 +1,10 @@
Yojson is an optimized parsing and printing library for the JSON format.
It addresses a few shortcomings of json-wheel including 2x speedup, polymorphic
variants and optional syntax for tuples and variants.
ydump is a pretty-printing command-line program provided with the yojson
package.
The program atdgen can be used to derive OCaml-JSON serializers and
deserializers from type definitions.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.dynlink-native,v 1.1.1.1 2019/08/04 19:07:43 chrisz Exp $
lib/ocaml/yojson/yojson.cmxs

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2019/08/04 19:07:43 chrisz Exp $
%%dynlink%%
lib/ocaml/yojson/yojson.a
lib/ocaml/yojson/yojson.cmx
lib/ocaml/yojson/yojson.cmxa
lib/ocaml/yojson/yojson_biniou.cmx

View File

@ -0,0 +1,23 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/08/04 19:07:43 chrisz Exp $
%%native%%
@bin bin/ydump
lib/ocaml/yojson/
lib/ocaml/yojson/META
lib/ocaml/yojson/dune-package
lib/ocaml/yojson/opam
lib/ocaml/yojson/yojson.cma
lib/ocaml/yojson/yojson.cmi
lib/ocaml/yojson/yojson.cmt
lib/ocaml/yojson/yojson.cmti
lib/ocaml/yojson/yojson.ml
lib/ocaml/yojson/yojson.mli
lib/ocaml/yojson/yojson_biniou.cmi
lib/ocaml/yojson/yojson_biniou.cmt
lib/ocaml/yojson/yojson_biniou.cmti
lib/ocaml/yojson/yojson_biniou.ml
lib/ocaml/yojson/yojson_biniou.mli
share/doc/ocaml-yojson/
share/doc/ocaml-yojson/yojson/
share/doc/ocaml-yojson/yojson/CHANGES.md
share/doc/ocaml-yojson/yojson/LICENSE.md
share/doc/ocaml-yojson/yojson/README.md