mirror of
https://git.freebsd.org/ports.git
synced 2025-05-29 17:36: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
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
PORTNAME= text
|
|
PORTVERSION= 0.8
|
|
PORTREVISION= 3
|
|
CATEGORIES= textproc
|
|
PKGNAMEPREFIX= ocaml-
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= OCaml library for dealing with text
|
|
WWW= https://forge.ocamlcore.org/projects/ocaml-text/
|
|
|
|
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild
|
|
|
|
USES= gmake ocaml:camlp4,findplist,ldconfig
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= vbmithr
|
|
GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --prefix ${PREFIX} \
|
|
--destdir ${STAGEDIR}
|
|
|
|
SA_DIR= ${LOCALBASE}/${OCAML_SITELIBDIR}
|
|
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= PCRE
|
|
OPTIONS_DEFAULT= PCRE
|
|
|
|
PCRE_CONFIGURE_ENABLE= pcre
|
|
PCRE_BUILD_DEPENDS= ${SA_DIR}/pcre/pcre.a:devel/ocaml-pcre
|
|
PCRE_RUN_DEPENDS= ${SA_DIR}/pcre/pcre.a:devel/ocaml-pcre
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' \
|
|
${WRKSRC}/setup.ml
|
|
|
|
do-configure:
|
|
cd ${WRKSRC}; ocaml setup.ml -configure ${CONFIGURE_ARGS}
|
|
|
|
do-build:
|
|
cd ${WRKSRC}; ocaml setup.ml -build
|
|
|
|
do-install:
|
|
${MKDIR} ${STAGEDIR}${OCAMLFIND_DESTDIR}
|
|
cd ${WRKSRC}; ocaml setup.ml -install
|
|
|
|
.include <bsd.port.mk>
|