diff options
Diffstat (limited to 'dev-ml/lwt/lwt-2.2.0-r1.ebuild')
-rw-r--r-- | dev-ml/lwt/lwt-2.2.0-r1.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-ml/lwt/lwt-2.2.0-r1.ebuild b/dev-ml/lwt/lwt-2.2.0-r1.ebuild new file mode 100644 index 0000000..3416e18 --- /dev/null +++ b/dev-ml/lwt/lwt-2.2.0-r1.ebuild @@ -0,0 +1,53 @@ +# 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.2.0.ebuild,v 1.1 2010/12/25 18:00:18 aballier Exp $ + +EAPI=2 + +inherit findlib eutils multilib + +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 toplevel +ocamlopt +react +ssl text" + +DEPEND=">=dev-lang/ocaml-3.11[ocamlopt?] + react? ( dev-ml/react ) + dev-libs/libev + ssl? ( >=dev-ml/ocaml-ssl-0.4.0 ) + gtk? ( dev-ml/lablgtk dev-libs/glib:2 ) + text? ( >=dev-ml/ocaml-text-0.4 )" + +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} + +oasis_use_enable() { + echo "--override $2 `use $1 && echo \"true\" || echo \"false\"`" +} + +src_configure() { + ./configure --prefix usr \ + --libdir /usr/$(get_libdir) \ + --docdir /usr/share/doc/${PF}/html \ + --destdir "${D}" \ + $(use_enable gtk glib) \ + $(use_enable react) \ + $(use_enable ssl) \ + $(use_enable toplevel) \ + $(use_enable text) \ + $(oasis_use_enable ocamlopt is_native) \ + || die +} + +src_install() { + findlib_src_install + dodoc CHANGES* README +} |