# ChangeLog for dev-ml/lwt
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/ChangeLog,v 1.6 2009/10/16 11:44:24 aballier Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/ChangeLog,v 1.7 2010/04/23 14:15:04 aballier Exp $
+
+*lwt-2.1.0 (23 Apr 2010)
+
+ 23 Apr 2010; Alexis Ballier <aballier@gentoo.org> +lwt-2.1.0.ebuild:
+ version bump
16 Oct 2009; Alexis Ballier <aballier@gentoo.org> -lwt-1.1.0.ebuild,
-lwt-2.0.0_rc1.ebuild:
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/lwt-2.1.0.ebuild,v 1.1 2010/04/23 14:15:04 aballier Exp $
+
+EAPI=2
+
+inherit findlib eutils
+
+MY_P=${P/_/+}
+DESCRIPTION="Cooperative light-weight thread library for OCaml"
+SRC_URI="http://ocsigen.org/download/${MY_P}.tar.gz"
+HOMEPAGE="http://ocsigen.org/lwt"
+
+IUSE="gtk doc +ocamlopt ssl"
+
+DEPEND=">=dev-lang/ocaml-3.11[ocamlopt?]
+ dev-ml/react
+ ssl? ( >=dev-ml/ocaml-ssl-0.4.0 )
+ gtk? ( dev-ml/lablgtk dev-libs/glib:2 )"
+
+RDEPEND="${DEPEND}
+ !<www-servers/ocsigen-1.1"
+
+SLOT="0"
+LICENSE="LGPL-2.1 LGPL-2.1-linking-exception"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+
+S=${WORKDIR}/${MY_P}
+
+disable_feature() {
+ use $1 || sed -i -e "s/ocamlfind query $2/ocamlfind query badpackage/" myocamlbuild.ml
+}
+
+src_configure() {
+ disable_feature ssl ssl
+ disable_feature gtk lablgtk2
+}
+
+src_compile() {
+ # ocamlbuild is stupid and fails parallel make if it does not exist...
+ mkdir _build
+ emake byte || die "make failed"
+ if use ocamlopt ; then
+ emake opt || die "failed to build native code version"
+ fi
+ if use doc ; then
+ emake doc || die "failed to build the documentation"
+ fi
+}
+
+src_install() {
+ findlib_src_preinst
+ emake DESTDIR="${OCAMLFIND_DESTDIR}" install || die "install failed"
+ dodoc CHANGES README
+ if use doc; then
+ dohtml _build/lwt.docdir/*.html
+ fi
+}
# ChangeLog for dev-ml/react
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/react/ChangeLog,v 1.2 2009/10/16 12:17:03 aballier Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/react/ChangeLog,v 1.3 2010/04/23 14:12:17 aballier Exp $
+
+*react-0.9.1 (23 Apr 2010)
+
+ 23 Apr 2010; Alexis Ballier <aballier@gentoo.org> +react-0.9.1.ebuild:
+ version bump
16 Oct 2009; Alexis Ballier <aballier@gentoo.org> react-0.9.0.ebuild:
keyword ~x86-fbsd
--- /dev/null
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/react/react-0.9.1.ebuild,v 1.1 2010/04/23 14:12:17 aballier Exp $
+
+EAPI="2"
+
+DESCRIPTION="OCaml module for functional reactive programming"
+HOMEPAGE="http://erratique.ch/software/react"
+SRC_URI="http://erratique.ch/software/react/releases/${P}.tbz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~x86-fbsd"
+IUSE="+ocamlopt doc"
+
+DEPEND=">=dev-lang/ocaml-3.11[ocamlopt?]"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ chmod +x build
+}
+
+src_compile() {
+ ./build module-byte || die "bytecode failed"
+ if use ocamlopt ; then
+ ./build module-native || die "native code failed"
+ fi
+ if use doc ; then
+ ./build doc || die "doc building failed"
+ fi
+}
+
+src_test() {
+ ./build test.byte || die
+ ./test.byte || die
+ if use ocamlopt ; then
+ ./build test.native || die
+ ./test.native || die
+ fi
+}
+
+src_install() {
+ export INSTALLDIR=${D}/`ocamlc -where`/${PN}
+ if use ocamlopt ; then
+ ./build install || die "install failed"
+ else
+ ./build install-byte || die "install failed"
+ fi
+
+ dodoc CHANGES README
+ use doc && dohtml doc/*
+}