From 5eb8a16155c4dba40efc401a9633303730833796 Mon Sep 17 00:00:00 2001 From: chrisz Date: Sun, 4 Aug 2019 19:06:03 +0000 Subject: [PATCH] import devel/ocaml-easy-format improvements by @sthen, ok by @krw --- devel/ocaml-easy-format/Makefile | 28 +++++++++++++++++++ devel/ocaml-easy-format/distinfo | 2 ++ .../ocaml-easy-format/patches/patch-Makefile | 15 ++++++++++ devel/ocaml-easy-format/pkg/DESCR | 2 ++ .../pkg/PFRAG.dynlink-native | 2 ++ devel/ocaml-easy-format/pkg/PFRAG.native | 5 ++++ devel/ocaml-easy-format/pkg/PLIST | 16 +++++++++++ 7 files changed, 70 insertions(+) create mode 100644 devel/ocaml-easy-format/Makefile create mode 100644 devel/ocaml-easy-format/distinfo create mode 100644 devel/ocaml-easy-format/patches/patch-Makefile create mode 100644 devel/ocaml-easy-format/pkg/DESCR create mode 100644 devel/ocaml-easy-format/pkg/PFRAG.dynlink-native create mode 100644 devel/ocaml-easy-format/pkg/PFRAG.native create mode 100644 devel/ocaml-easy-format/pkg/PLIST diff --git a/devel/ocaml-easy-format/Makefile b/devel/ocaml-easy-format/Makefile new file mode 100644 index 00000000000..ce316645b8d --- /dev/null +++ b/devel/ocaml-easy-format/Makefile @@ -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 diff --git a/devel/ocaml-easy-format/distinfo b/devel/ocaml-easy-format/distinfo new file mode 100644 index 00000000000..e55e5af2692 --- /dev/null +++ b/devel/ocaml-easy-format/distinfo @@ -0,0 +1,2 @@ +SHA256 (easy-format-1.3.1.tar.gz) = SJ1V6l3hcc6i1+IRS81c69H8v4n4OfvzdXdpUHUC4fA= +SIZE (easy-format-1.3.1.tar.gz) = 15908 diff --git a/devel/ocaml-easy-format/patches/patch-Makefile b/devel/ocaml-easy-format/patches/patch-Makefile new file mode 100644 index 00000000000..869bbf8606d --- /dev/null +++ b/devel/ocaml-easy-format/patches/patch-Makefile @@ -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 + diff --git a/devel/ocaml-easy-format/pkg/DESCR b/devel/ocaml-easy-format/pkg/DESCR new file mode 100644 index 00000000000..f1fd91af80c --- /dev/null +++ b/devel/ocaml-easy-format/pkg/DESCR @@ -0,0 +1,2 @@ +High-level and functional interface to the +Format module of the OCaml standard library diff --git a/devel/ocaml-easy-format/pkg/PFRAG.dynlink-native b/devel/ocaml-easy-format/pkg/PFRAG.dynlink-native new file mode 100644 index 00000000000..5a29c313ae1 --- /dev/null +++ b/devel/ocaml-easy-format/pkg/PFRAG.dynlink-native @@ -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 diff --git a/devel/ocaml-easy-format/pkg/PFRAG.native b/devel/ocaml-easy-format/pkg/PFRAG.native new file mode 100644 index 00000000000..74b63cd71ba --- /dev/null +++ b/devel/ocaml-easy-format/pkg/PFRAG.native @@ -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 diff --git a/devel/ocaml-easy-format/pkg/PLIST b/devel/ocaml-easy-format/pkg/PLIST new file mode 100644 index 00000000000..e0e9e9e0595 --- /dev/null +++ b/devel/ocaml-easy-format/pkg/PLIST @@ -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