From f379f261451d9a6bef0ee96e48a32249c2fffdee Mon Sep 17 00:00:00 2001 From: Matthew Brewer Date: Fri, 16 Oct 2015 14:31:35 +0200 Subject: dev-ml/ocaml-cstruct: new ebuild - needed as a transitive dependency of Libre S3 1.1 (net-misc/libres3) - explicit support for MirageOS is not enabled known issue: dev-ml/ocaml-cstruct-1.7.0 fails to build with USE=doc ( https://github.com/mirage/ocaml-cstruct/issues/73 ) --- dev-ml/ocaml-cstruct/Manifest | 1 + dev-ml/ocaml-cstruct/metadata.xml | 14 ++++++++ dev-ml/ocaml-cstruct/ocaml-cstruct-1.7.0.ebuild | 43 +++++++++++++++++++++++++ 3 files changed, 58 insertions(+) create mode 100644 dev-ml/ocaml-cstruct/Manifest create mode 100644 dev-ml/ocaml-cstruct/metadata.xml create mode 100644 dev-ml/ocaml-cstruct/ocaml-cstruct-1.7.0.ebuild (limited to 'dev-ml') diff --git a/dev-ml/ocaml-cstruct/Manifest b/dev-ml/ocaml-cstruct/Manifest new file mode 100644 index 000000000000..d7a9c7a00f97 --- /dev/null +++ b/dev-ml/ocaml-cstruct/Manifest @@ -0,0 +1 @@ +DIST ocaml-cstruct-1.7.0.tar.gz 245652 SHA256 db996700df500cff933eaaebfff9834ccaba466518bade575934bb133f62f322 SHA512 5a43ffa0ee867c917f171cd90186eaf44a258f1e4fb9db7947d23113fe7d8e9058acfce7030c0e31e211b5448a9e23b48ad748c61ffab6678aa79c6aeaac2f48 WHIRLPOOL 99d7650405df68d8e4d1cfc237eb9a791db5c54cfcdbbf2e9eb5c493881256eed7298588c6ad9ca91b493544df0bb24e9c87c2820c5b92c37d460a8cc6211c26 diff --git a/dev-ml/ocaml-cstruct/metadata.xml b/dev-ml/ocaml-cstruct/metadata.xml new file mode 100644 index 000000000000..4913ab22f85c --- /dev/null +++ b/dev-ml/ocaml-cstruct/metadata.xml @@ -0,0 +1,14 @@ + + + + ml + proxy-maintainers + + tomboy64@sina.cn + + + Support for asynchronous execution + Enable support for camlp4 + Enable threads via lwt + + diff --git a/dev-ml/ocaml-cstruct/ocaml-cstruct-1.7.0.ebuild b/dev-ml/ocaml-cstruct/ocaml-cstruct-1.7.0.ebuild new file mode 100644 index 000000000000..b137031b31f8 --- /dev/null +++ b/dev-ml/ocaml-cstruct/ocaml-cstruct-1.7.0.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +OASIS_BUILD_DOCS=1 +OASIS_BUILD_TESTS=1 + +inherit oasis + +DESCRIPTION="Map OCaml arrays onto C-like structs" +HOMEPAGE="https://github.com/mirage/ocaml-cstruct https://mirage.io" +SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64" +IUSE="async camlp4 lwt" + +RDEPEND=" + async? ( dev-ml/async:= ) + camlp4? ( dev-ml/camlp4:= ) + lwt? ( dev-ml/lwt:= ) + >=dev-lang/ocaml-4.01:= + dev-ml/ocplib-endian:= + dev-ml/sexplib:= + dev-ml/type-conv:= +" +DEPEND=" + test? ( dev-ml/ounit ) + ${RDEPEND} +" + +src_configure() { + oasis_configure_opts=" + $(use_enable lwt) + $(use_enable camlp4) + $(use_enable async) + --enable-unix + " oasis_src_configure +} + +DOCS=( CHANGES README.md TODO.md ) -- cgit v1.2.3-65-gdbad