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/lwt-3.1.0.ebuild
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/lwt-3.1.0.ebuild')
-rw-r--r--dev-ml/lwt/lwt-3.1.0.ebuild54
1 files changed, 54 insertions, 0 deletions
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
+}