Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Jan 2017 19:30:19 +0000 (UTC)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r431490 - head/devel/ocaml-pcre
Message-ID:  <201701141930.v0EJUJ8C022442@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hrs
Date: Sat Jan 14 19:30:19 2017
New Revision: 431490
URL: https://svnweb.freebsd.org/changeset/ports/431490

Log:
  - Add LICENSE.
  - Strip installed binaries.

Modified:
  head/devel/ocaml-pcre/Makefile
  head/devel/ocaml-pcre/pkg-descr
  head/devel/ocaml-pcre/pkg-plist

Modified: head/devel/ocaml-pcre/Makefile
==============================================================================
--- head/devel/ocaml-pcre/Makefile	Sat Jan 14 18:50:26 2017	(r431489)
+++ head/devel/ocaml-pcre/Makefile	Sat Jan 14 19:30:19 2017	(r431490)
@@ -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>

Modified: head/devel/ocaml-pcre/pkg-descr
==============================================================================
--- head/devel/ocaml-pcre/pkg-descr	Sat Jan 14 18:50:26 2017	(r431489)
+++ head/devel/ocaml-pcre/pkg-descr	Sat Jan 14 19:30:19 2017	(r431490)
@@ -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

Modified: head/devel/ocaml-pcre/pkg-plist
==============================================================================
--- head/devel/ocaml-pcre/pkg-plist	Sat Jan 14 18:50:26 2017	(r431489)
+++ head/devel/ocaml-pcre/pkg-plist	Sat Jan 14 19:30:19 2017	(r431490)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701141930.v0EJUJ8C022442>