diff --git a/dev-ml/wayland/Manifest b/dev-ml/wayland/Manifest new file mode 100644 index 0000000000..17b4d6f2e9 --- /dev/null +++ b/dev-ml/wayland/Manifest @@ -0,0 +1 @@ +DIST ocaml-wayland-1.1.tar.gz 104186 BLAKE2B 9ee71b1a5d06a6cfbc2b219cd8de2acb780d9af79303b5533409384b138d06298f6bbb9fc34770bc358693a6ee9b0fdbf020f212f16ffccce6962dd2dbc829fd SHA512 8e53c3e277dcf5b4d6a574495e4c14eeb059c79b23ff313ef18034a0cdb4b869f6ca9e2e294227854ec9c940e2d729900ac38aea071e2572008666e93f112f88 diff --git a/dev-ml/wayland/metadata.xml b/dev-ml/wayland/metadata.xml new file mode 100644 index 0000000000..61307c0727 --- /dev/null +++ b/dev-ml/wayland/metadata.xml @@ -0,0 +1,14 @@ + + + + Pure OCaml Wayland protocol implementation + + https://talex5.github.io/ocaml-wayland/ + https://github.com/talex5/ocaml-wayland/issues + talex5/ocaml-wayland + + Thomas Leonard + talex5@gmail.com + + + diff --git a/dev-ml/wayland/wayland-1.1.ebuild b/dev-ml/wayland/wayland-1.1.ebuild new file mode 100644 index 0000000000..bce68997d6 --- /dev/null +++ b/dev-ml/wayland/wayland-1.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit dune multiprocessing + +DESCRIPTION="Pure OCaml Wayland protocol library" +HOMEPAGE=" + https://github.com/talex5/ocaml-wayland + https://opam.ocaml.org/packages/wayland/ +" +SRC_URI="https://github.com/talex5/ocaml-wayland/archive/v${PV}.tar.gz -> ocaml-${P}.tar.gz" +S="${WORKDIR}/ocaml-${P}" + +LICENSE="ISC" +SLOT="0/${PV}" +KEYWORDS="~amd64" +IUSE="ocamlopt test" + +RDEPEND=" + dev-ml/base:= + >=dev-ml/cmdliner-1.1.1:= + >=dev-ml/cstruct-6.0.0:= + >=dev-ml/fmt-0.8.0:= + >=dev-ml/logs-0.7.0:= + >=dev-ml/lwt-5.4.0:= + >=dev-ml/xmlm-1.3.0:= + >=dev-ml/dune-2.8.0:= +" + +DEPEND=" + ${RDEPEND} + dev-ml/ocaml-doc + test? ( + >=dev-ml/alcotest-lwt-1.2.3:= + dev-ml/ounit2 + >=dev-ml/ppx_sexp_conv-0.9.0 + ) +" + +RESTRICT="!test? ( test )" + +src_compile() { + local pkgs="wayland" + dune build -p "${pkgs}" -j $(makeopts_jobs) || die +} + +src_install() { + dune_src_install wayland +}