| Server IP : 82.208.35.60 / Your IP : 216.73.216.89 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/devel/ocaml-pcre/ |
Upload File : |
PORTNAME= pcre
PORTVERSION= 7.2.3
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= devel
PKGNAMEPREFIX= ocaml-
MAINTAINER= hrs@FreeBSD.org
COMMENT= Perl compatible regular expressions for Objective Caml
WWW= http://www.ocaml.info/home/ocaml_sources.html #pcre-ocaml
LICENSE= LGPL21
BUILD_DEPENDS= ocamlbuild:devel/ocaml-ocamlbuild
LIB_DEPENDS= libpcre.so:devel/pcre
USE_GITHUB= yes
GH_ACCOUNT= mmottl
GH_PROJECT= ${PORTNAME}-ocaml
USE_OCAML= yes
USE_OCAML_FINDLIB= yes
USE_OCAML_LDCONFIG= yes
EXAMPLESDIR= ${OCAML_EXAMPLESDIR}/${PORTNAME}
PORTEXAMPLES= cloc count_hash pcregrep subst
DOCSDIR= ${PREFIX}/share/doc/pcre-ocaml
PORTDOCS= api
OPTIONS_DEFINE= DOCS EXAMPLES
DOCS_CONFIGURE_OFF= --disable-docs
post-patch:
${REINPLACE_CMD} -e 's|$$prefix"/"share|${STAGEDIR}${PREFIX}/share|' \
-e '/datarootdir/s|$$pkg_name|&-ocaml|' \
${WRKSRC}/setup.ml
${REINPLACE_CMD} -e 's| safe_string,||' ${WRKSRC}/_tags
post-install:
cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} \
lib/ocaml/site-lib/pcre/dllpcre_stubs.so \
lib/ocaml/site-lib/pcre/pcre.cmxs
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>