dev-ml/cstruct: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2022-04-02 10:38:20 +02:00
parent 24582a8510
commit 7c9b45693a
3 changed files with 50 additions and 0 deletions

1
dev-ml/cstruct/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST ocaml-ctruct-6.0.0.tar.gz 242357 BLAKE2B e3f86f134cbae8724c392ba4e4a2c178cc49150758e995c24069a061e420ea2d53b26242d62397efb6e4cd5ba114f197fcab573bd831627bda833be16eaac668 SHA512 5dae3fe9f35d02ca0dedef1a01ad1ed2f7d52b167248b3badbcf3cf88d94104d4b6974b225d199a36a96c2282b5fbcc92baa00f98d3895d98472300ad0f50b1e

View File

@@ -0,0 +1,37 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dune
DESCRIPTION="Map OCaml arrays onto C-like structs"
HOMEPAGE="https://github.com/mirage/ocaml-cstruct"
SRC_URI="https://github.com/mirage/ocaml-cstruct/archive/v${PV}.tar.gz -> ocaml-ctruct-${PV}.tar.gz"
S="${WORKDIR}/ocaml-cstruct-${PV}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="ocamlopt"
RDEPEND="
>=dev-lang/ocaml-4.08.0
>=dev-ml/fmt-0.8.9
dev-ml/async
dev-ml/async_unix
dev-ml/core
dev-ml/lwt
dev-ml/sexplib
dev-ml/ppxlib
"
DEPEND="${RDEPEND}"
src_install() {
dune_src_install cstruct-async
dune_src_install cstruct-lwt
dune_src_install cstruct-sexp
dune_src_install cstruct-unix
dune_src_install cstruct
dune_src_install ppx_cstruct
}

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<description>co-mainteiners welcome</description>
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<remote-id type="github">mirage/ocaml-cstruct</remote-id>
</upstream>
</pkgmetadata>