aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorhrs <hrs@FreeBSD.org>2017-01-15 03:30:19 +0800
committerhrs <hrs@FreeBSD.org>2017-01-15 03:30:19 +0800
commit01080400e3e8a3ec7f29f125d8d3e767b7b44cbe (patch)
treeb04af6ebc1797396edd1f26985517f093baf3b18 /devel
parent90033d1c6ce34c3ff956b3afd949d8cf53a6201f (diff)
downloadfreebsd-ports-gnome-01080400e3e8a3ec7f29f125d8d3e767b7b44cbe.tar.gz
freebsd-ports-gnome-01080400e3e8a3ec7f29f125d8d3e767b7b44cbe.tar.zst
freebsd-ports-gnome-01080400e3e8a3ec7f29f125d8d3e767b7b44cbe.zip
- Add LICENSE.
- Strip installed binaries.
Diffstat (limited to 'devel')
-rw-r--r--devel/ocaml-pcre/Makefile25
-rw-r--r--devel/ocaml-pcre/pkg-descr1
-rw-r--r--devel/ocaml-pcre/pkg-plist22
3 files changed, 18 insertions, 30 deletions
diff --git a/devel/ocaml-pcre/Makefile b/devel/ocaml-pcre/Makefile
index 7958bba5f3ff..91c5232f5727 100644
--- a/devel/ocaml-pcre/Makefile
+++ b/devel/ocaml-pcre/Makefile
@@ -4,35 +4,44 @@
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 <bsd.port.mk>
diff --git a/devel/ocaml-pcre/pkg-descr b/devel/ocaml-pcre/pkg-descr
index 991380f7d47e..6d4f93d3ac8b 100644
--- a/devel/ocaml-pcre/pkg-descr
+++ b/devel/ocaml-pcre/pkg-descr
@@ -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
diff --git a/devel/ocaml-pcre/pkg-plist b/devel/ocaml-pcre/pkg-plist
index fe2af13a78f9..a76b354b4580 100644
--- a/devel/ocaml-pcre/pkg-plist
+++ b/devel/ocaml-pcre/pkg-plist
@@ -12,25 +12,3 @@
%%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