summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2017-07-21 14:37:57 +0200
committerAlexis Ballier <aballier@gentoo.org>2017-07-21 14:38:43 +0200
commitb7fecab2d87e3e18fc53f8e1633907944007ebb2 (patch)
tree31e56fbd5da0167efb32e836fdd977eae771982f /dev-ml/lwt
parentdev-ml/markup: Remove old (diff)
downloadgentoo-b7fecab2d87e3e18fc53f8e1633907944007ebb2.tar.gz
gentoo-b7fecab2d87e3e18fc53f8e1633907944007ebb2.tar.bz2
gentoo-b7fecab2d87e3e18fc53f8e1633907944007ebb2.zip
dev-ml/lwt: bump to 3.1.0
Package-Manager: Portage-2.3.6, Repoman-2.3.3
Diffstat (limited to 'dev-ml/lwt')
-rw-r--r--dev-ml/lwt/Manifest1
-rw-r--r--dev-ml/lwt/lwt-3.1.0.ebuild54
-rw-r--r--dev-ml/lwt/metadata.xml1
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-ml/lwt/Manifest b/dev-ml/lwt/Manifest
index 15dc85f2018c..208d241e0373 100644
--- a/dev-ml/lwt/Manifest
+++ b/dev-ml/lwt/Manifest
@@ -1 +1,2 @@
DIST lwt-3.0.0.tar.gz 285864 SHA256 fc1654bb06fdd48180f093f6e05e7264936626a11fef23cc8cf2ca4b5e3d7d44 SHA512 270a6dc2fc58950380eecf72767782c72a5d72226f4af0e9a4f9b0e70b788eeb1d2727348ab8da4411ee59374a19524a6a793b14a26fe7051d51f987ef0e42b8 WHIRLPOOL 2fbee62faa6929ab8fec1d07f32bdfbaeb7d46bba7cbd60ca1362b9e136575f90c5b906fe1cb9471e66270f4d40014bda7b4be3d4b863cd485095c3867d914ce
+DIST lwt-3.1.0.tar.gz 285309 SHA256 b10689b76d20c66bd27fca4d6bba4daf7b6d77d7d4e42a9eba5579f0cb3e0941 SHA512 0b2269e53f2e8a57e1ffd6f237c6b22de39a3b6b0d57276c7cb9371392aabc9fb6364b2617a6408ed0049ed64f71de0c540209cf83ce43899fd025295342eb0d WHIRLPOOL 5eb2cdf678d65c0ed4dd7209de57e3f9a8b39eaf88b024bf143ab15d31e4462209f3abf04b7d2ee9226dece2ddba695f33921335a3b94e411713b181b5bd31b8
diff --git a/dev-ml/lwt/lwt-3.1.0.ebuild b/dev-ml/lwt/lwt-3.1.0.ebuild
new file mode 100644
index 000000000000..96092301fb96
--- /dev/null
+++ b/dev-ml/lwt/lwt-3.1.0.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+DESCRIPTION="Cooperative light-weight thread library for OCaml"
+SRC_URI="https://github.com/ocsigen/lwt/archive/${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="http://ocsigen.org/lwt"
+
+IUSE="+camlp4 +libev"
+
+DEPEND="
+ >=dev-lang/ocaml-4.02:=
+ dev-ml/result:=
+ dev-ml/ocaml-migrate-parsetree:=
+ libev? ( dev-libs/libev )
+ camlp4? ( dev-ml/camlp4:= )"
+
+RDEPEND="${DEPEND}
+ !<www-servers/ocsigen-1.1"
+DEPEND="${DEPEND}
+ dev-ml/cppo
+ dev-ml/findlib
+ dev-ml/jbuilder
+ dev-ml/opam"
+
+SLOT="0/${PV}"
+LICENSE="LGPL-2.1-with-linking-exception"
+KEYWORDS="~amd64 ~arm64 ~x86-fbsd"
+
+src_configure() {
+ ocaml src/util/configure.ml \
+ -use-libev $(usex libev true false) \
+ -use-camlp4 $(usex camlp4 true false) \
+ || die
+}
+
+src_compile() {
+ jbuilder build -p lwt || die
+ ocaml src/util/install_filter.ml || die
+}
+
+src_test() {
+ jbuilder runtest -p lwt || die
+}
+
+src_install() {
+ opam-installer -i \
+ --prefix="${ED}/usr" \
+ --libdir="${D}/$(ocamlc -where)" \
+ --docdir="${ED}/usr/share/doc/${PF}" \
+ --mandir="${ED}/usr/share/man" \
+ ${PN}.install || die
+}
diff --git a/dev-ml/lwt/metadata.xml b/dev-ml/lwt/metadata.xml
index 0aa54dcd04c9..2f6b7dc1cf9e 100644
--- a/dev-ml/lwt/metadata.xml
+++ b/dev-ml/lwt/metadata.xml
@@ -7,6 +7,7 @@
</maintainer>
<use>
<flag name="camlp4">Enable camlp4 syntax extension</flag>
+ <flag name="libev">Enable the <pkg>dev-libs/libev</pkg>-based backend.</flag>
<flag name="ppx">Enables the ppx syntax extension</flag>
</use>
<upstream>