summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ml/lwt')
-rw-r--r--dev-ml/lwt/lwt-2.5.1.ebuild5
-rw-r--r--dev-ml/lwt/metadata.xml1
2 files changed, 4 insertions, 2 deletions
diff --git a/dev-ml/lwt/lwt-2.5.1.ebuild b/dev-ml/lwt/lwt-2.5.1.ebuild
index ac81e538d517..ac787dd5582d 100644
--- a/dev-ml/lwt/lwt-2.5.1.ebuild
+++ b/dev-ml/lwt/lwt-2.5.1.ebuild
@@ -14,12 +14,13 @@ 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="gtk +react +ssl"
+IUSE="gtk +ppx +react +ssl"
DEPEND="react? ( >=dev-ml/react-1.2:= )
dev-libs/libev
ssl? ( >=dev-ml/ocaml-ssl-0.4.0:= )
gtk? ( dev-ml/lablgtk:= dev-libs/glib:2 )
+ ppx? ( dev-ml/ppx_tools:= )
|| ( dev-ml/camlp4:= <dev-lang/ocaml-4.02.0 )"
RDEPEND="${DEPEND}
@@ -36,6 +37,6 @@ src_configure() {
$(use_enable react)
$(use_enable ssl)
--enable-camlp4
- --disable-ppx" \
+ $(use_enable ppx)" \
oasis_src_configure
}
diff --git a/dev-ml/lwt/metadata.xml b/dev-ml/lwt/metadata.xml
index d740843ec27b..03beb8a8933a 100644
--- a/dev-ml/lwt/metadata.xml
+++ b/dev-ml/lwt/metadata.xml
@@ -18,6 +18,7 @@
<name>Proxy Maintainers</name>
</maintainer>
<use>
+ <flag name="ppx">Enables the ppx syntax extension</flag>
<flag name="react">Enables support for <pkg>dev-ml/react</pkg>: Functional reactive programming (signals, events, etc.).</flag>
<flag name="toplevel">Enables enhanced toplevel.</flag>
<flag name="text">Enables text mode utilities.</flag>