commit:     f379f261451d9a6bef0ee96e48a32249c2fffdee
Author:     Matthew Brewer <tomboy64 <AT> sina <DOT> cn>
AuthorDate: Fri Oct 16 12:31:35 2015 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Sat Oct 17 11:11:13 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f379f261

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(+)

diff --git a/dev-ml/ocaml-cstruct/Manifest b/dev-ml/ocaml-cstruct/Manifest
new file mode 100644
index 0000000..d7a9c7a
--- /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 0000000..4913ab2
--- /dev/null
+++ b/dev-ml/ocaml-cstruct/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+    <herd>ml</herd>
+    <herd>proxy-maintainers</herd>
+    <maintainer>
+        <email>tombo...@sina.cn</email>
+    </maintainer>
+    <use>
+        <flag name="async">Support for asynchronous execution</flag>
+        <flag name="camlp4">Enable support for camlp4</flag>
+        <flag name="lwt">Enable threads via lwt</flag>
+    </use>
+</pkgmetadata>

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 0000000..b137031
--- /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 )

Reply via email to