ports/devel/ocaml-ppx_compare/Makefile
Muhammad Moinur Rahman c79c88017b
Mk/**ocaml.mk: Convert remaining bsd.ocaml.mk to Uses/ocaml.mk
- 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
2024-12-31 08:41:54 +01:00

38 lines
1.1 KiB
Makefile

PORTNAME= ppx_compare
DISTVERSIONPREFIX= v
DISTVERSION= 0.16.0
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= freebsd@dev.thsi.be
COMMENT= Deriving PPX plugin to generate comparision functions
WWW= https://github.com/janestreet/ppx_compare
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= ${SA_DIR}/base/META:devel/ocaml-base \
${SA_DIR}/ppxlib/META:devel/ocaml-ppxlib
RUN_DEPENDS= ${SA_DIR}/base/META:devel/ocaml-base \
${SA_DIR}/ppx_deriving/META:devel/ocaml-ppx_deriving \
${SA_DIR}/ppxlib/META:devel/ocaml-ppxlib
USES= ocaml:dune
USE_GITHUB= yes
GH_ACCOUNT= janestreet
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= CHANGES.md LICENSE.md README.md
OPTIONS_DEFINE= DOCS
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
post-install:
@${STRIP_CMD} \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_compare/runtime-lib/ppx_compare_lib.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_compare/expander/ppx_compare_expander.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/ppx_compare/ppx_compare.cmxs
.include <bsd.port.mk>