diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-03-11 11:31:24 +0100 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-03-11 11:31:38 +0100 |
commit | 218f1f1600537f011869669b196b05e0937fc746 (patch) | |
tree | 6a25587ef24f256b0633764b51ea22b6bf5fe4b5 /dev-ml/ocaml-cohttp/ocaml-cohttp-0.22.0.ebuild | |
parent | dev-ml/logs: Enable fmt & lwt by default. (diff) | |
download | gentoo-218f1f1600537f011869669b196b05e0937fc746.tar.gz gentoo-218f1f1600537f011869669b196b05e0937fc746.tar.bz2 gentoo-218f1f1600537f011869669b196b05e0937fc746.zip |
dev-ml/ocaml-cohttp: Initial import. Ebuild by me.
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Diffstat (limited to 'dev-ml/ocaml-cohttp/ocaml-cohttp-0.22.0.ebuild')
-rw-r--r-- | dev-ml/ocaml-cohttp/ocaml-cohttp-0.22.0.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/dev-ml/ocaml-cohttp/ocaml-cohttp-0.22.0.ebuild b/dev-ml/ocaml-cohttp/ocaml-cohttp-0.22.0.ebuild new file mode 100644 index 000000000000..bb00e40e1629 --- /dev/null +++ b/dev-ml/ocaml-cohttp/ocaml-cohttp-0.22.0.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +OASIS_BUILD_TESTS=1 +OASIS_BUILD_DOCS=1 + +inherit oasis + +DESCRIPTION="Very lightweight HTTP server using Lwt or Async" +HOMEPAGE="https://github.com/mirage/ocaml-cohttp" +SRC_URI="https://github.com/mirage/ocaml-cohttp/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="async javascript +lwt" + +DEPEND=" + dev-ml/ocaml-re:= + dev-ml/stringext:= + dev-ml/ocaml-uri:= + dev-ml/fieldslib:= + dev-ml/sexplib:= + dev-ml/ppx_fields_conv:= + dev-ml/ppx_sexp_conv:= + dev-ml/ocaml-base64:= + lwt? ( + dev-ml/lwt:= + dev-ml/logs:=[fmt,lwt] + dev-ml/cmdliner:= + dev-ml/ocaml-conduit:= + dev-ml/ocaml-magic-mime:= + ) + async? ( + dev-ml/ocaml-conduit:= + dev-ml/logs:=[fmt] + dev-ml/ocaml-magic-mime:= + dev-ml/fmt:= + ) + javascript? ( + dev-ml/js_of_ocaml:=[ppx] + ) +" +RDEPEND="${DEPEND}" +DEPEND="${DEPEND} + test? ( + dev-ml/ounit + dev-ml/alcotest + ) +" +DOCS=( README.md CHANGES DESIGN.md TODO.md ) + +src_configure() { + local oasis_configure_opts=" + $(use_enable lwt) $(use_enable lwt lwt-unix) + $(use_enable async) + $(use_enable javascript js) + " + oasis_src_configure +} |