svn commit: r430929 - in head/devel/ocaml-pcre: . files

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Jan 9 09:48:56 UTC 2017


Author: amdmi3
Date: Mon Jan  9 09:48:54 2017
New Revision: 430929
URL: https://svnweb.freebsd.org/changeset/ports/430929

Log:
  - Remove always false OSVERSION condition
  - Switch to options helpers
  - Cosmetic fixes

Deleted:
  head/devel/ocaml-pcre/files/
Modified:
  head/devel/ocaml-pcre/Makefile

Modified: head/devel/ocaml-pcre/Makefile
==============================================================================
--- head/devel/ocaml-pcre/Makefile	Mon Jan  9 09:44:12 2017	(r430928)
+++ head/devel/ocaml-pcre/Makefile	Mon Jan  9 09:48:54 2017	(r430929)
@@ -25,21 +25,14 @@ DOCSDIR=	${PREFIX}/share/doc/pcre-ocaml
 
 OPTIONS_DEFINE=	DOCS EXAMPLES
 
-.include <bsd.port.options.mk>
-
-.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1000000
-# unknown warning flag for old gcc
-EXTRA_PATCHES+=	${FILESDIR}/extra-patch--Wno-keyword-macro
-.endif
-
 post-patch:
 	@${REINPLACE_CMD} -e 's|$$prefix"/"share|${STAGEDIR}${PREFIX}/share|' \
-	-e '/datarootdir/s|$$pkg_name|&-ocaml|' \
+		-e '/datarootdir/s|$$pkg_name|&-ocaml|' \
 		${WRKSRC}/setup.ml
 	@${REINPLACE_CMD} -e 's| safe_string,||' ${WRKSRC}/_tags
 
-post-install:
+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>


More information about the svn-ports-head mailing list