diff options
author | Benjamin Jacobs <freebsd@dev.thsi.be> | 2024-06-03 21:28:31 +0000 |
---|---|---|
committer | Neel Chauhan <nc@FreeBSD.org> | 2024-06-05 21:27:08 +0000 |
commit | 9668ddabff1f18d6f1b805730f06f97d52c9bbf9 (patch) | |
tree | 8ffbab75b0aecd728a4324b740f0167a3bb626ba | |
parent | b39465645235f4e992b44a4f7de5579bce6cfc25 (diff) |
devel/ocaml-curses: New port: OCaml bindings to ncurses
PR: 279508
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/ocaml-curses/Makefile | 34 | ||||
-rw-r--r-- | devel/ocaml-curses/distinfo | 3 | ||||
-rw-r--r-- | devel/ocaml-curses/pkg-descr | 3 | ||||
-rw-r--r-- | devel/ocaml-curses/pkg-plist | 15 |
5 files changed, 56 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 04b646c78173..cb718ca93143 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1722,6 +1722,7 @@ SUBDIR += ocaml-cppo SUBDIR += ocaml-csexp SUBDIR += ocaml-cstruct + SUBDIR += ocaml-curses SUBDIR += ocaml-domain-name SUBDIR += ocaml-dune SUBDIR += ocaml-extlib diff --git a/devel/ocaml-curses/Makefile b/devel/ocaml-curses/Makefile new file mode 100644 index 000000000000..c8fe30a9d6e7 --- /dev/null +++ b/devel/ocaml-curses/Makefile @@ -0,0 +1,34 @@ +PORTNAME= curses +PORTVERSION= 1.0.11 +CATEGORIES= devel +PKGNAMEPREFIX= ocaml- + +MAINTAINER= freebsd@dev.thsi.be +COMMENT= (N)curses binding for OCaml +WWW= https://github.com/mbacarella/curses + +LICENSE= LGPL21+ # with a special exception to clause 6 +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= ncurses ocaml:dune pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= mbacarella +USE_OCAML= yes +USE_OCAML_LDCONFIG= yes + +DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} +PORTDOCS= CHANGES.md README.md + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} \ + -e "s/(name ${PORTNAME})/&\n(version ${PORTVERSION})/" \ + ${WRKSRC}/dune-project + +post-install: + @${STRIP_CMD} \ + ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curses/dllcurses_stubs.so \ + ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/curses/curses.cmxs + +.include <bsd.port.mk> diff --git a/devel/ocaml-curses/distinfo b/devel/ocaml-curses/distinfo new file mode 100644 index 000000000000..a8cf2bbdf3a4 --- /dev/null +++ b/devel/ocaml-curses/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1717440498 +SHA256 (mbacarella-curses-1.0.11_GH0.tar.gz) = 603c08e816b22e200f7818544ffd016620a808945cfa757dd1aeb245e0b51c0e +SIZE (mbacarella-curses-1.0.11_GH0.tar.gz) = 28807 diff --git a/devel/ocaml-curses/pkg-descr b/devel/ocaml-curses/pkg-descr new file mode 100644 index 000000000000..5bf29c127b2a --- /dev/null +++ b/devel/ocaml-curses/pkg-descr @@ -0,0 +1,3 @@ +This OCaml library provides bindings to the (n)curses library. All the +the types and all the functions available in the Curses module are +direct translations of the ncurses(3X) concepts. diff --git a/devel/ocaml-curses/pkg-plist b/devel/ocaml-curses/pkg-plist new file mode 100644 index 000000000000..a7f678b07678 --- /dev/null +++ b/devel/ocaml-curses/pkg-plist @@ -0,0 +1,15 @@ +%%OCAML_SITELIBDIR%%/curses/META +%%OCAML_SITELIBDIR%%/curses/curses.a +%%OCAML_SITELIBDIR%%/curses/curses.cma +%%OCAML_SITELIBDIR%%/curses/curses.cmi +%%OCAML_SITELIBDIR%%/curses/curses.cmt +%%OCAML_SITELIBDIR%%/curses/curses.cmti +%%OCAML_SITELIBDIR%%/curses/curses.cmx +%%OCAML_SITELIBDIR%%/curses/curses.cmxa +%%OCAML_SITELIBDIR%%/curses/curses.ml +%%OCAML_SITELIBDIR%%/curses/curses.mli +%%OCAML_SITELIBDIR%%/curses/dune-package +%%OCAML_SITELIBDIR%%/curses/libcurses_stubs.a +%%OCAML_SITELIBDIR%%/curses/opam +%%OCAML_SITELIBDIR%%/curses/curses.cmxs +%%OCAML_SITELIBDIR%%/curses/dllcurses_stubs.so |