mirror of
https://git.freebsd.org/ports.git
synced 2025-05-28 08:56:28 -04:00
- Instead of USE_OCAML=yes use USES=ocaml. If empty USES=ocaml implies build and run - Instead of USE_OCAMLFIND_PLIST use USES=ocaml:findplist which also implies USES=ocaml:findlib - Instead of USE_OCAML_CAMLP4 use USES=ocaml:camlp4 - Instead of USE_OCAML_FINDLIB use USES=ocaml:findlib - Instead of USE_OCAML_LDCONFIG use USES=ocaml:ldconfig - Instead of USE_OCAML_WASH use USES=ocaml:wash - Instead of NO_OCAML_BUILDDEPENDS use USES=ocaml:run - Instead of NO_OCAML_RUNDDEPENDS use USES=ocaml:build - Instead of USE_OCAML_TK use USES=ocaml:tk which actually implies USES=ocaml:tkbuild and USES=ocaml:tkrun - Instead of NO_OCAMLTK_BUILDDEPENDS use USES=ocaml:tkrun - Instead of NO_OCAMLTK_RUNDEPENDS use USES=ocaml:tkbuild - USES=ocaml:dune remains unchanged - Prepare to add/remove keywords easily Approved by: mat (portmgr) Reviewed by: freebsd@dev.thsi.be Differential Revision: https://reviews.freebsd.org/D48227
32 lines
763 B
Makefile
32 lines
763 B
Makefile
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,ldconfig pkgconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= mbacarella
|
|
|
|
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>
|