import devel/ocaml-easy-format

improvements by @sthen, ok by @krw
This commit is contained in:
chrisz 2019-08-04 19:06:03 +00:00
parent 4a28ff3abf
commit 5eb8a16155
7 changed files with 70 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# $OpenBSD: Makefile,v 1.1.1.1 2019/08/04 19:06:03 chrisz Exp $
COMMENT = interface to the OCaml stdlib Format module
CATEGORIES = devel
GH_ACCOUNT = mjambon
GH_PROJECT = easy-format
GH_TAGNAME = v1.3.1
PKGNAME = ocaml-${DISTNAME}
# 3-clause BSD
PERMIT_PACKAGE = Yes
WANTLIB = c m
MODULES = lang/ocaml
BUILD_DEPENDS = devel/dune \
sysutils/findlib
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 (easy-format-1.3.1.tar.gz) = SJ1V6l3hcc6i1+IRS81c69H8v4n4OfvzdXdpUHUC4fA=
SIZE (easy-format-1.3.1.tar.gz) = 15908

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2019/08/04 19:06:03 chrisz Exp $
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -1,6 +1,9 @@
all:
@jbuilder build
+install:
+ @jbuilder install
+
test:
@jbuilder runtest

View File

@ -0,0 +1,2 @@
High-level and functional interface to the
Format module of the OCaml standard library

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.dynlink-native,v 1.1.1.1 2019/08/04 19:06:03 chrisz Exp $
lib/ocaml/easy-format/easy_format.cmxs

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PFRAG.native,v 1.1.1.1 2019/08/04 19:06:03 chrisz Exp $
%%dynlink%%
lib/ocaml/easy-format/easy_format.a
lib/ocaml/easy-format/easy_format.cmx
lib/ocaml/easy-format/easy_format.cmxa

View File

@ -0,0 +1,16 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/08/04 19:06:03 chrisz Exp $
%%native%%
lib/ocaml/easy-format/
lib/ocaml/easy-format/META
lib/ocaml/easy-format/dune-package
lib/ocaml/easy-format/easy_format.cma
lib/ocaml/easy-format/easy_format.cmi
lib/ocaml/easy-format/easy_format.cmt
lib/ocaml/easy-format/easy_format.cmti
lib/ocaml/easy-format/easy_format.ml
lib/ocaml/easy-format/easy_format.mli
lib/ocaml/easy-format/opam
share/doc/ocaml-easy-format/
share/doc/ocaml-easy-format/easy-format/
share/doc/ocaml-easy-format/easy-format/LICENSE
share/doc/ocaml-easy-format/easy-format/README.md