blob: ce47e79b02af5dc624e0fbac89c3f1b6a754f09e (
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
|
# Created by: Stanislav Sedov <ssedov@mbsd.msk.ru>
PORTNAME= cfg
PORTVERSION= 2.2.0
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= Library for manipulating context-free grammars
LICENSE= LGPL21+
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= dune:devel/ocaml-dune
USE_GITHUB= yes
GH_ACCOUNT= mmottl
USE_OCAML= yes
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
OPTIONS_DEFINE= DOCS EXAMPLES
do-build:
cd ${BUILD_WRKSRC} && dune build --verbose
do-install:
cd ${INSTALL_WRKSRC} && dune install --destdir=${STAGEDIR} \
--prefix=${PREFIX} --libdir=${OCAML_SITELIBDIR}
post-install-EXAMPLES-on:
@(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|