summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2008-09-02 21:36:39 +0000
committerAlexis Ballier <aballier@gentoo.org>2008-09-02 21:36:39 +0000
commit2d044bc77f5400d79269dd8c12f5bc1d15210a46 (patch)
treec65dfc75d7beb5f5fe2a70115a6d198eebd11a5f /dev-ml/lwt
parentInitial commit. Bug #202700. Thanks Matsui Tetsushi <VED03370@nifty.ne.jp> fo... (diff)
downloadhistorical-2d044bc77f5400d79269dd8c12f5bc1d15210a46.tar.gz
historical-2d044bc77f5400d79269dd8c12f5bc1d15210a46.tar.bz2
historical-2d044bc77f5400d79269dd8c12f5bc1d15210a46.zip
Initial import. Split out of ocsigen. Thanks to Pierre Clairambault.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.26.3 x86_64
Diffstat (limited to 'dev-ml/lwt')
-rw-r--r--dev-ml/lwt/ChangeLog10
-rw-r--r--dev-ml/lwt/Manifest14
-rw-r--r--dev-ml/lwt/lwt-1.1.0.ebuild53
-rw-r--r--dev-ml/lwt/metadata.xml13
4 files changed, 90 insertions, 0 deletions
diff --git a/dev-ml/lwt/ChangeLog b/dev-ml/lwt/ChangeLog
new file mode 100644
index 000000000000..cb52a9536564
--- /dev/null
+++ b/dev-ml/lwt/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-ml/lwt
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/ChangeLog,v 1.1 2008/09/02 21:36:39 aballier Exp $
+
+*lwt-1.1.0 (02 Sep 2008)
+
+ 02 Sep 2008; Alexis Ballier <aballier@gentoo.org> +metadata.xml,
+ +lwt-1.1.0.ebuild:
+ Initial import. Split out of ocsigen. Thanks to Pierre Clairambault.
+
diff --git a/dev-ml/lwt/Manifest b/dev-ml/lwt/Manifest
new file mode 100644
index 000000000000..5c472f51c6a0
--- /dev/null
+++ b/dev-ml/lwt/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST lwt-1.1.0.tar.gz 32844 RMD160 e7359a29af3c91ac006dfb3fc1150264aa27927b SHA1 838d99ce53accb4d0a393c4dd0f757d130a6bc2c SHA256 6c9087e1185de933091fcd147f1c125157b01921d32ca0e2304319c2d72ee9d6
+EBUILD lwt-1.1.0.ebuild 1491 RMD160 b0093b6b07aeccc091422e1353219cd3602c99cb SHA1 7d5ddd60c1ebcdf2f6d37abce5c3f12cb08ad305 SHA256 b7ec2f7aeec1aeb51e1d88f4ae70a79cd242c8a3697e6cf5747af354ff6de508
+MISC ChangeLog 381 RMD160 e8853b60e60639740626b62933792942037f5212 SHA1 e7889c66232f8f273a98be7cb63d3c71016eeea2 SHA256 e0fcb5b463203faf29621c8c01a3b32b3eedfc5b29b41b220e3dc35fe3d146bc
+MISC metadata.xml 353 RMD160 76f14baf578fa3e4873b57582ea8c3dd96418bed SHA1 97640f8fad9ec81dc716fe6a60a0d4758cf05e03 SHA256 f8c08e02a6fdd590fbe5da6f6fbb2a11c2d135153e11fcf08749d940643f4171
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.9 (GNU/Linux)
+
+iEYEARECAAYFAki9se4ACgkQvFcC4BYPU0olbgCgu8jMyUQBDBQ+u3bTfD0MgyCh
+0xUAoJfSogqYEpBWU2t/bPtqf3ymz1wh
+=QkHU
+-----END PGP SIGNATURE-----
diff --git a/dev-ml/lwt/lwt-1.1.0.ebuild b/dev-ml/lwt/lwt-1.1.0.ebuild
new file mode 100644
index 000000000000..b36c71f7e7ae
--- /dev/null
+++ b/dev-ml/lwt/lwt-1.1.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ml/lwt/lwt-1.1.0.ebuild,v 1.1 2008/09/02 21:36:39 aballier Exp $
+
+EAPI=1
+
+inherit findlib eutils
+
+DESCRIPTION="Cooperative light-weight thread library for OCaml"
+SRC_URI="http://ocsigen.org/download/${P}.tar.gz"
+HOMEPAGE="http://ocsigen.org/lwt"
+
+DEPEND=">=dev-lang/ocaml-3.10
+ >=dev-ml/ocaml-ssl-0.4.0"
+
+RDEPEND="${DEPEND}
+ !<www-servers/ocsigen-1.1"
+
+IUSE="doc +ocamlopt"
+
+SLOT="0"
+LICENSE="LGPL-2.1 LGPL-2.1-linking-exception"
+KEYWORDS="~amd64 ~x86"
+
+pkg_setup() {
+ if use ocamlopt && ! built_with_use --missing true dev-lang/ocaml ocamlopt; then
+ eerror "In order to build ${PN} with native code support from ocaml"
+ eerror "You first need to have a native code ocaml compiler."
+ eerror "You need to install dev-lang/ocaml with ocamlopt useflag on."
+ die "Please install ocaml with ocamlopt useflag"
+ fi
+}
+
+src_compile() {
+ # ocamlbuild is stupid and fails parallel make if it does not exist...
+ mkdir _build
+ emake OCAMLBUILD="ocamlbuild -byte-plugin" META 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
+}
diff --git a/dev-ml/lwt/metadata.xml b/dev-ml/lwt/metadata.xml
new file mode 100644
index 000000000000..bcffa755f114
--- /dev/null
+++ b/dev-ml/lwt/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>ml</herd>
+ <maintainer>
+ <email>aballier@gentoo.org</email>
+ <name>Alexis Ballier</name>
+ </maintainer>
+ <maintainer>
+ <email>pclairam@gmail.com</email>
+ <name>Pierre Clairambault</name>
+ </maintainer>
+</pkgmetadata>