summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2009-10-13 06:47:41 +0000
committerAlexis Ballier <aballier@gentoo.org>2009-10-13 06:47:41 +0000
commita823dd17709b08e09428fe272e6bf32fd6d54b43 (patch)
tree671be93064d057c982c586ae4bb72c5c7c52e10b /dev-ml
parenttidy (diff)
downloadgentoo-2-a823dd17709b08e09428fe272e6bf32fd6d54b43.tar.gz
gentoo-2-a823dd17709b08e09428fe272e6bf32fd6d54b43.tar.bz2
gentoo-2-a823dd17709b08e09428fe272e6bf32fd6d54b43.zip
version bump
(Portage version: 2.2_rc46/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/lwt/ChangeLog7
-rw-r--r--dev-ml/lwt/lwt-2.0.0_rc1.ebuild58
2 files changed, 64 insertions, 1 deletions
diff --git a/dev-ml/lwt/ChangeLog b/dev-ml/lwt/ChangeLog
index 29f5f70ce55c..94c839c1bed2 100644
--- a/dev-ml/lwt/ChangeLog
+++ b/dev-ml/lwt/ChangeLog
@@ -1,6 +1,11 @@
# 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.3 2009/06/17 07:14:08 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/ChangeLog,v 1.4 2009/10/13 06:47:41 aballier Exp $
+
+*lwt-2.0.0_rc1 (13 Oct 2009)
+
+ 13 Oct 2009; Alexis Ballier <aballier@gentoo.org> +lwt-2.0.0_rc1.ebuild:
+ version bump
17 Jun 2009; Alexis Ballier <aballier@gentoo.org> lwt-1.1.0.ebuild:
eapi2ify, by Olivier Huber <oli.huber@gmail.com>, bug #268933
diff --git a/dev-ml/lwt/lwt-2.0.0_rc1.ebuild b/dev-ml/lwt/lwt-2.0.0_rc1.ebuild
new file mode 100644
index 000000000000..1598ce5466d1
--- /dev/null
+++ b/dev-ml/lwt/lwt-2.0.0_rc1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/lwt-2.0.0_rc1.ebuild,v 1.1 2009/10/13 06:47:41 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
+}