ports/163276: [maintainer update] devel/ocaml-lwt: update to version 2.3.2

Jaap Boender jaapb at kerguelen.org
Wed Dec 14 10:00:35 UTC 2011


>Number:         163276
>Category:       ports
>Synopsis:       [maintainer update] devel/ocaml-lwt: update to version 2.3.2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 14 10:00:34 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Jaap Boender
>Release:        8.2-STABLE
>Organization:
>Environment:
FreeBSD marion-dufresne.cs.unibo.it 8.2-STABLE FreeBSD 8.2-STABLE #4: Tue Nov 22 13:27:07 CET 2011     root at marion-dufresne.cs.unibo.it:/usr/obj/usr/src/sys/MARION-DUFRESNE  amd64
>Description:
The devel/ocaml-lwt is long overdue for an update (sorry!), so here it is. There have been a lot of changes since 1.1.0, but here is a list of the most important ones:

 - inclusion of an lwt-enhanced OCaml toplevel;
 - usage of ocaml-react library (submitted in ports/156472)
 - option of using select(2), libev or a custom implementation
 - many extensions and bugfixes

>How-To-Repeat:
n/a
>Fix:
A diff of the port directory is attached. NOTE: this new version depends on devel/ocaml-react, which has been submitted in PR ports/156472

Patch attached with submission follows:

diff -Naur ocaml-lwt.old/Makefile ocaml-lwt/Makefile
--- ocaml-lwt.old/Makefile	2011-12-14 10:55:30.905698279 +0100
+++ ocaml-lwt/Makefile	2011-12-14 10:28:51.429345838 +0100
@@ -6,32 +6,71 @@
 #
 
 PORTNAME=	lwt
-PORTVERSION=	1.1.0
-PORTREVISION=	1
+PORTVERSION=	2.3.2
 CATEGORIES=	devel
-MASTER_SITES=	http://www.ocsigen.org/download/
+MASTER_SITES=	http://ocsigen.org/download/
 PKGNAMEPREFIX=	ocaml-
 
 MAINTAINER=	jaapb at kerguelen.org
 COMMENT=	Cooperative threading library for OCaml
 
 USE_OCAML=		yes
-OCAMLC_DEPEND=		ocaml>=3.10:${OCAMLC_PORT}
+OCAMLC_DEPEND=		ocaml>=3.11:${OCAMLC_PORT}
 USE_OCAML_FINDLIB=	yes
 USE_OCAMLFIND_PLIST=	yes
 USE_OCAML_LDCONFIG=	yes
 
 USE_GMAKE=		yes
+HAS_CONFIGURE=		yes
+CONFIGURE_ARGS=		--enable-react
+
 DOCSDIR=		${PREFIX}/share/doc/ocaml/${PORTNAME}
 PORTDOCS=		*
 
-BUILD_DEPENDS+=		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl
-RUN_DEPENDS+=		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl
+BUILD_DEPENDS+=		${SA_DIR}/react/react.o:${PORTSDIR}/devel/ocaml-react
+RUN_DEPENDS+=		${SA_DIR}/react/react.o:${PORTSDIR}/devel/ocaml-react
+
+OPTIONS=		LIBEV "Include libev support" on \
+			TOPLEVEL "Build enhanced toplevel" on \
+			SSL "Include SSL support" on \
+			GLIB "Enable glib integration" on
 
 SA_DIR=         	${PREFIX}/${OCAML_SITELIBDIR}
 
+ALL_TARGET=		build
+
 .include <bsd.port.pre.mk>
 
+.if defined(WITHOUT_LIBEV)
+CONFIGURE_ARGS+=	--disable-libev
+.else
+CONFIGURE_ARGS+=	--enable-libev
+LIB_DEPENDS+=		ev.4:${PORTSDIR}/devel/libev
+.endif
+
+.if defined(WITHOUT_TOPLEVEL)
+CONFIGURE_ARGS+=	--disable-toplevel --disable-text
+.else
+CONFIGURE_ARGS+=	--enable-toplevel --enable-text
+BUILD_DEPENDS+=		${SA_DIR}/text/text.a:${PORTSDIR}/textproc/ocaml-text
+RUN_DEPENDS+=		${SA_DIR}/text/text.a:${PORTSDIR}/textproc/ocaml-text
+PLIST_FILES+=		bin/lwt-toplevel
+.endif
+
+.if defined(WITHOUT_SSL)
+CONFIGURE_ARGS+=	--disable-ssl
+.else
+CONFIGURE_ARGS+=	--enable-ssl
+BUILD_DEPENDS+=		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl
+RUN_DEPENDS+=		${SA_DIR}/ssl/ssl.a:${PORTSDIR}/security/ocaml-ssl
+.endif
+
+.if defined(WITHOUT_GLIB)
+CONFIGURE_ARGS+=	--disable-glib
+.else
+CONFIGURE_ARGS+=	--enable-glib
+.endif
+
 post-install:
 .if !defined(NOPORTDOCS)
 	${MKDIR} ${DOCSDIR}
diff -Naur ocaml-lwt.old/distinfo ocaml-lwt/distinfo
--- ocaml-lwt.old/distinfo	2011-12-14 10:55:50.026439882 +0100
+++ ocaml-lwt/distinfo	2011-12-13 17:37:31.538400944 +0100
@@ -1,2 +1,2 @@
-SHA256 (lwt-1.1.0.tar.gz) = 6c9087e1185de933091fcd147f1c125157b01921d32ca0e2304319c2d72ee9d6
-SIZE (lwt-1.1.0.tar.gz) = 32844
+SHA256 (lwt-2.3.2.tar.gz) = b892ec80b869e53ca711d0e42f0a9fa5997958781382247ff3cfc4880f75db00
+SIZE (lwt-2.3.2.tar.gz) = 474410


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list