PORTNAME= fmt PORTVERSION= 0.9.0 PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= https://erratique.ch/software/fmt/releases/ PKGNAMEPREFIX= ocaml- MAINTAINER= freebsd@dev.thsi.be COMMENT= Pretty-printer combinator library for Objective Caml WWW= https://erratique.ch/software/fmt LICENSE= ISCL LICENSE_FILE= ${WRKSRC}/LICENSE.md BUILD_DEPENDS= ${SA_DIR}/cmdliner/META:devel/ocaml-cmdliner \ ${SA_DIR}/topkg/META:devel/ocaml-topkg \ ocamlbuild:devel/ocaml-ocamlbuild \ opam-installer:devel/ocaml-opam RUN_DEPENDS= ${SA_DIR}/cmdliner/META:devel/ocaml-cmdliner USES= tar:tbz USE_OCAML= yes DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME} PORTDOCS= CHANGES.md LICENSE.md README.md OPTIONS_DEFINE= DOCS SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR} do-build: @(cd ${BUILD_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} \ ocaml pkg/pkg.ml build \ --tests true --jobs ${MAKE_JOBS_NUMBER} --with-cmdliner true) do-install: @(cd ${INSTALL_WRKSRC} && ${SETENVI} ${WRK_ENV} ${MAKE_ENV} \ opam-installer -i \ --prefix=${STAGEDIR}${PREFIX} \ --docdir=${OCAML_DOCSDIR:S,^${PREFIX}/,,} \ --libdir=${OCAML_SITELIBDIR} ${PORTNAME}.install) post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/fmt.cmxs @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/fmt_cli.cmxs @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/fmt_top.cmxs @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/fmt_tty.cmxs .include