summaryrefslogtreecommitdiff
path: root/dev-ml
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-06-03 17:11:44 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-06-03 17:51:03 +0200
commitfac82f65a7fe46599d7866f81415739cf4bc3e4c (patch)
tree2d728050f02088329671a823c8997f81e2e0255a /dev-ml
parentdev-ml/zmq: new package; add 5.2.1 (diff)
downloadgentoo-fac82f65a7fe46599d7866f81415739cf4bc3e4c.tar.gz
gentoo-fac82f65a7fe46599d7866f81415739cf4bc3e4c.tar.bz2
gentoo-fac82f65a7fe46599d7866f81415739cf4bc3e4c.zip
dev-ml/zmq-async: new package; add 5.2.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-ml')
-rw-r--r--dev-ml/zmq-async/Manifest1
-rw-r--r--dev-ml/zmq-async/metadata.xml13
-rw-r--r--dev-ml/zmq-async/zmq-async-5.2.1.ebuild44
3 files changed, 58 insertions, 0 deletions
diff --git a/dev-ml/zmq-async/Manifest b/dev-ml/zmq-async/Manifest
new file mode 100644
index 000000000000..cb55bc1e51bb
--- /dev/null
+++ b/dev-ml/zmq-async/Manifest
@@ -0,0 +1 @@
+DIST ocaml-zmq-zmq-async.tar.gz 33027 BLAKE2B 935468c29394abaac36fdea922f82b525f0cdaf35365b893a0186cc54e9b0a4e3fa25a9d8362addad52e89a3b930d36974590c481647c19a55fca8fdfef68bf3 SHA512 85d1b16f8e9d6abc24e175b7dd3574585f4d854f5355bb67797f8651eea3f0835ade03a28d5d9e8dbd5cb5573f517e271854099ee91a79835c2d84076983dff4
diff --git a/dev-ml/zmq-async/metadata.xml b/dev-ml/zmq-async/metadata.xml
new file mode 100644
index 000000000000..e367ac09da1c
--- /dev/null
+++ b/dev-ml/zmq-async/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ml@gentoo.org</email>
+ <name>ML</name>
+ </maintainer>
+ <upstream>
+ <bugs-to>https://github.com/issuu/ocaml-zmq/</bugs-to>
+ <remote-id type="github">issuu/ocaml-zmq</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ml/zmq-async/zmq-async-5.2.1.ebuild b/dev-ml/zmq-async/zmq-async-5.2.1.ebuild
new file mode 100644
index 000000000000..5e13c28209b9
--- /dev/null
+++ b/dev-ml/zmq-async/zmq-async-5.2.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Async-aware bindings to ZMQ for OCaml"
+HOMEPAGE="https://github.com/issuu/ocaml-zmq/"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/issuu/ocaml-zmq.git"
+else
+ SRC_URI="https://github.com/issuu/ocaml-zmq/archive/${PV}.tar.gz
+ -> ocaml-zmq-${PN}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+S="${WORKDIR}"/ocaml-zmq-${PV}
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+IUSE="+ocamlopt test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ dev-ml/async_kernel:=
+ dev-ml/async_unix:=
+ dev-ml/base:=
+ net-libs/zeromq:=
+"
+DEPEND="${DEPEND}"
+BDEPEND="
+ dev-ml/dune-configurator
+ test? ( dev-ml/ounit2 )
+"
+
+src_compile() {
+ dune-compile ${DUNE_PKG_NAME}
+}
+
+src_test() {
+ dune-test ${DUNE_PKG_NAME}
+}