summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2010-11-16 11:27:19 +0000
committerAlexis Ballier <aballier@gentoo.org>2010-11-16 11:27:19 +0000
commit5ace599111ed0e5d48751af4095637a45f399cfd (patch)
treea7727f26ced71b39830ab926d8b62b2d7508a76c /dev-ml/lwt
parentVersion bump to 0.2.9 (diff)
downloadgentoo-2-5ace599111ed0e5d48751af4095637a45f399cfd.tar.gz
gentoo-2-5ace599111ed0e5d48751af4095637a45f399cfd.tar.bz2
gentoo-2-5ace599111ed0e5d48751af4095637a45f399cfd.zip
version bump
(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
Diffstat (limited to 'dev-ml/lwt')
-rw-r--r--dev-ml/lwt/ChangeLog7
-rw-r--r--dev-ml/lwt/lwt-2.1.1.ebuild63
2 files changed, 69 insertions, 1 deletions
diff --git a/dev-ml/lwt/ChangeLog b/dev-ml/lwt/ChangeLog
index a2d39c7316cc..ce18357264e0 100644
--- a/dev-ml/lwt/ChangeLog
+++ b/dev-ml/lwt/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-ml/lwt
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/ChangeLog,v 1.8 2010/05/25 11:46:40 aballier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/ChangeLog,v 1.9 2010/11/16 11:27:19 aballier Exp $
+
+*lwt-2.1.1 (16 Nov 2010)
+
+ 16 Nov 2010; Alexis Ballier <aballier@gentoo.org> +lwt-2.1.1.ebuild:
+ version bump
25 May 2010; Alexis Ballier <aballier@gentoo.org> -lwt-2.0.0.ebuild:
remove old
diff --git a/dev-ml/lwt/lwt-2.1.1.ebuild b/dev-ml/lwt/lwt-2.1.1.ebuild
new file mode 100644
index 000000000000..75d4e3fb92e3
--- /dev/null
+++ b/dev-ml/lwt/lwt-2.1.1.ebuild
@@ -0,0 +1,63 @@
+# 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.1.ebuild,v 1.1 2010/11/16 11:27:19 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_test() {
+ chmod +x run_tests.sh || die
+ ./run_tests.sh || die
+}
+
+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
+}