svn commit: r403329 - head/devel/ocaml-lwt
Dmitry Marakasov
amdmi3 at FreeBSD.org
Tue Dec 8 18:18:30 UTC 2015
Author: amdmi3
Date: Tue Dec 8 18:18:29 2015
New Revision: 403329
URL: https://svnweb.freebsd.org/changeset/ports/403329
Log:
- Switch to options helpers
Approved by: portmgr blanket
Modified:
head/devel/ocaml-lwt/Makefile
Modified: head/devel/ocaml-lwt/Makefile
==============================================================================
--- head/devel/ocaml-lwt/Makefile Tue Dec 8 18:15:22 2015 (r403328)
+++ head/devel/ocaml-lwt/Makefile Tue Dec 8 18:18:29 2015 (r403329)
@@ -42,16 +42,11 @@ SA_DIR= ${PREFIX}/${OCAML_SITELIBDIR}
OPTIONS_DEFINE= DOCS
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MDOCS}
-CONFIGURE_ARGS+= --enable-docs --docdir ${STAGEDIR}${DOCSDIR}
+DOCS_CONFIGURE_ENABLE= docs
+DOCS_CONFIGURE_ON= --docdir ${STAGEDIR}${DOCSDIR}
# For some reason, ocaml-text is needed when building documentation
-BUILD_DEPENDS+= ${SA_DIR}/text/text.a:${PORTSDIR}/textproc/ocaml-text
-RUN_DEPENDS+= ${SA_DIR}/text/text.a:${PORTSDIR}/textproc/ocaml-text
-.else
-CONFIGURE_ARGS+= --disable-docs
-.endif
+DOCS_BUILD_DEPENDS= ${SA_DIR}/text/text.a:${PORTSDIR}/textproc/ocaml-text
+DOCS_RUN_DEPENDS= ${SA_DIR}/text/text.a:${PORTSDIR}/textproc/ocaml-text
post-patch:
@${REINPLACE_CMD} -e 's,"install" :: findlib_name,"install" :: "-destdir ${STAGEDIR}${PREFIX}/lib/ocaml/site-lib" :: "-ldconf /dev/null" :: findlib_name,' \
More information about the svn-ports-all
mailing list