Index: head/devel/ocaml-pcre/Makefile =================================================================== --- head/devel/ocaml-pcre/Makefile (revision 431489) +++ head/devel/ocaml-pcre/Makefile (revision 431490) @@ -1,38 +1,47 @@ # Created by: Henrik Motakef # $FreeBSD$ PORTNAME= pcre PORTVERSION= 7.2.3 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= devel PKGNAMEPREFIX= ocaml- -MAINTAINER= ports@FreeBSD.org +MAINTAINER= hrs@FreeBSD.org COMMENT= Perl compatible regular expressions for Objective Caml +LICENSE= LGPL21 + 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 + ${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} + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR} .include Index: head/devel/ocaml-pcre/pkg-descr =================================================================== --- head/devel/ocaml-pcre/pkg-descr (revision 431489) +++ head/devel/ocaml-pcre/pkg-descr (revision 431490) @@ -1,3 +1,4 @@ Perl compatible regular expressions for Objective Caml. WWW: http://www.ocaml.info/home/ocaml_sources.html#pcre-ocaml +WWW: https://github.com/mmottl/pcre-ocaml Index: head/devel/ocaml-pcre/pkg-plist =================================================================== --- head/devel/ocaml-pcre/pkg-plist (revision 431489) +++ head/devel/ocaml-pcre/pkg-plist (revision 431490) @@ -1,36 +1,14 @@ %%OCAML_SITELIBDIR%%/pcre/META %%OCAML_SITELIBDIR%%/pcre/dllpcre_stubs.so %%OCAML_SITELIBDIR%%/pcre/libpcre_stubs.a %%OCAML_SITELIBDIR%%/pcre/pcre.a %%OCAML_SITELIBDIR%%/pcre/pcre.annot %%OCAML_SITELIBDIR%%/pcre/pcre.cma %%OCAML_SITELIBDIR%%/pcre/pcre.cmi %%OCAML_SITELIBDIR%%/pcre/pcre.cmt %%OCAML_SITELIBDIR%%/pcre/pcre.cmti %%OCAML_SITELIBDIR%%/pcre/pcre.cmx %%OCAML_SITELIBDIR%%/pcre/pcre.cmxa %%OCAML_SITELIBDIR%%/pcre/pcre.cmxs %%OCAML_SITELIBDIR%%/pcre/pcre.mli %%OCAML_SITELIBDIR%%/pcre/pcre_compat.cmx -%%PORTDOCS%%%%DOCSDIR%%/api/Pcre.html -%%PORTDOCS%%%%DOCSDIR%%/api/index.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_attributes.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_class_types.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_classes.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_exceptions.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_extensions.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_methods.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_module_types.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_modules.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_types.html -%%PORTDOCS%%%%DOCSDIR%%/api/index_values.html -%%PORTDOCS%%%%DOCSDIR%%/api/style.css -%%PORTDOCS%%%%DOCSDIR%%/api/type_Pcre.html -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cloc/README.md -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/cloc/cloc.ml -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/count_hash/README.md -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/count_hash/count_hash.ml -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pcregrep/README.md -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/pcregrep/pcregrep.ml -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/subst/README.md -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/subst/subst.ml