blob: 47970ec861f570f480ea86517d8ea6b116d62471 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
PORTNAME= fmt
PORTVERSION= 0.9.0
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 <bsd.port.mk>
|