ports/devel/ocaml-re/Makefile
Benjamin Jacobs a8c9290c83 devel/ocaml-seq: Mark DEPRECATED and set EXPIRATION_DATE to 2024-12-10
Seq the ocaml module is part of lang/ocaml since 4.07. This package is a
compatibility shims that is needed for people using 4.06 and earlier.

PR:		280761
Approved by:	submitter is maintainer
2024-10-10 08:14:48 +02:00

39 lines
1.1 KiB
Makefile

PORTNAME= re
PORTVERSION= 1.11.0
PORTREVISION= 2
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= ports@FreeBSD.org
COMMENT= Pure OCaml regular expressions
WWW= https://github.com/ocaml/ocaml-re
LICENSE= LGPL21
USES= ocaml:dune
USE_GITHUB= yes
GH_ACCOUNT= ocaml
GH_PROJECT= ${PKGNAMEPREFIX}${PORTNAME}
USE_OCAML= yes
DOCSDIR= ${OCAML_DOCSDIR}/${PORTNAME}
PORTDOCS= CHANGES.md LICENSE.md README.md
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} \
-e "s/(name ${PORTNAME})/&\n (version ${PORTVERSION})/" \
${WRKSRC}/dune-project
post-install:
${STRIP_CMD} \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/emacs/re_emacs.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/glob/re_glob.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/pcre/re_pcre.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/str/re_str.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/perl/re_perl.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/posix/re_posix.cmxs \
${STAGEDIR}${PREFIX}/${OCAML_SITELIBDIR}/${PORTNAME}/re.cmxs
.include <bsd.port.mk>