Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Dec 2015 18:18:29 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r403329 - head/devel/ocaml-lwt
Message-ID:  <201512081818.tB8IITW0099222@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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,' \



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