diff options
Diffstat (limited to 'dev-ml')
-rw-r--r-- | dev-ml/lwt/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ml/lwt/Manifest | 4 | ||||
-rw-r--r-- | dev-ml/lwt/lwt-1.1.0.ebuild | 53 | ||||
-rw-r--r-- | dev-ml/lwt/metadata.xml | 13 |
4 files changed, 80 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..1bde1350835d --- /dev/null +++ b/dev-ml/lwt/Manifest @@ -0,0 +1,4 @@ +DIST lwt-1.1.0.tar.gz 32844 RMD160 e7359a29af3c91ac006dfb3fc1150264aa27927b SHA1 838d99ce53accb4d0a393c4dd0f757d130a6bc2c SHA256 6c9087e1185de933091fcd147f1c125157b01921d32ca0e2304319c2d72ee9d6 +EBUILD lwt-1.1.0.ebuild 1400 RMD160 69d339a4a6296c0c362dbb9c33a4eae1b74156db SHA1 dd382721403dcbd163edbd68de2c434e2302ddff SHA256 ed602394b0b840579c92e6bf76f4767b78bf7827e636e3fb63ffa48433576f6e +MISC ChangeLog 297 RMD160 4533a940ea81ff252ca382c8f33df3e9b9bb7bb5 SHA1 78a7133fe60430c3ab5776d5dec990659a18a238 SHA256 88a68e62047314ffd1c57c143c82ec5fe103567fd78d80112a7f128b140bceaf +MISC metadata.xml 353 RMD160 76f14baf578fa3e4873b57582ea8c3dd96418bed SHA1 97640f8fad9ec81dc716fe6a60a0d4758cf05e03 SHA256 f8c08e02a6fdd590fbe5da6f6fbb2a11c2d135153e11fcf08749d940643f4171 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> |