diff --git a/app-admin/glance/glance-24.0.0.ebuild b/app-admin/glance/glance-24.0.0.ebuild
index 331a5d544c..8d8fd15335 100644
--- a/app-admin/glance/glance-24.0.0.ebuild
+++ b/app-admin/glance/glance-24.0.0.ebuild
@@ -120,6 +120,7 @@ python_compile_all() {
}
python_prepare_all() {
+ rm glance/tests/test_hacking.py || die
sed -i '/pysendfile/d' test-requirements.txt || die
sed -i '/^hacking/d' test-requirements.txt || die
distutils-r1_python_prepare_all
@@ -154,3 +155,7 @@ python_install_all() {
distutils-r1_python_install_all
rm -r "${ED}"/usr/etc
}
+
+pkg_postinst() {
+ tmpfiles_process glance.conf
+}
diff --git a/app-emulation/spice-html5/spice-html5-0.3.0.ebuild b/app-emulation/spice-html5/spice-html5-0.3.0-r1.ebuild
similarity index 66%
rename from app-emulation/spice-html5/spice-html5-0.3.0.ebuild
rename to app-emulation/spice-html5/spice-html5-0.3.0-r1.ebuild
index 6c2789a520..815680a942 100644
--- a/app-emulation/spice-html5/spice-html5-0.3.0.ebuild
+++ b/app-emulation/spice-html5/spice-html5-0.3.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2021 Gentoo Authors
+# Copyright 2019-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -8,17 +8,16 @@ HOMEPAGE="https://gitlab.freedesktop.org/spice/spice-html5"
SRC_URI="https://gitlab.freedesktop.org/spice/${PN}/-/archive/${P}/${PN}-${P}.tar.gz"
S="${WORKDIR}/${PN}-${P}"
-LICENSE="LGPL-3" # maybe other licenses
+LICENSE="LGPL-3 MIT"
SLOT="0"
KEYWORDS="~amd64"
-# no compiling
src_compile() {
- true
+ sed -e "s/VERSION/$(PV)/" < package.json.in > package.json || die
}
src_install() {
- dodoc README
+ dodoc README TODO apache.conf.sample
insinto /usr/share/spice-html5
- doins -r src apache.conf.sample spice.css spice.html spice_auto.html
+ doins -r src *.html *.json *.css
}
diff --git a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
index 129a0fa237..003cfc953a 100644
--- a/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
+++ b/dev-R/RcppEnsmallen/RcppEnsmallen-0.2.17.0.1.ebuild
@@ -14,7 +14,7 @@ LICENSE='GPL-2+'
DEPEND="
>=dev-lang/R-3.3.0
dev-R/Rcpp
- =sci-libs/ensmallen-${MY_PV}*
+ =sci-libs/ensmallen-${MY_PV}*:=
"
RDEPEND="${DEPEND}
>=dev-R/RcppArmadillo-0.8.400.0.0
@@ -38,9 +38,7 @@ src_install() {
R_includedir="/usr/$(get_libdir)/R/site-library/${PN}/include"
dosym8 -r /usr/include/ensmallen.hpp "${R_includedir}/ensmallen.hpp"
- dodir /usr/include/ensmallen_bits
- for file in "${ED}/${R_includedir}"/ensmallen_bits/*; do
- filename=$(basename "${file}")
- dosym8 -r /usr/include/ensmallen_bits/${filename} "${R_includedir}/ensmallen_bits/${filename}"
- done
+ # portage doesn't like symlinks to folders, symlink all the files then
+ rm -rf "${ED}/${R_includedir}"/ensmallen_bits/* || die
+ cp -rs "/usr/include/ensmallen_bits" "${ED}/${R_includedir}" || die
}
diff --git a/dev-ml/afl-persistent/Manifest b/dev-ml/afl-persistent/Manifest
new file mode 100644
index 0000000000..f150fbd820
--- /dev/null
+++ b/dev-ml/afl-persistent/Manifest
@@ -0,0 +1 @@
+DIST afl-persistent-1.3.tar.gz 4310 BLAKE2B fa8a5bb5c86216d36ad59e01ff362c08bdbf112ac2f91f0ad2fcce4861b514f46871dd17771903e8b3e9f8db86fd0dda0b66a96372acf4e0fac4c25731356e63 SHA512 31f940be1c3e79856a001e2af687bb60f1a1bd6e04c6e730dc8f859db22bfccdc38eddb50baef423473cae9d1d3c2b86427a8257df0005328027b0fa2735100a
diff --git a/dev-ml/afl-persistent/afl-persistent-1.3.ebuild b/dev-ml/afl-persistent/afl-persistent-1.3.ebuild
new file mode 100644
index 0000000000..0ef83a591a
--- /dev/null
+++ b/dev-ml/afl-persistent/afl-persistent-1.3.ebuild
@@ -0,0 +1,22 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit opam
+
+DESCRIPTION="Persistent-mode afl-fuzz for ocaml"
+HOMEPAGE="https://github.com/stedolan/ocaml-afl-persistent"
+SRC_URI="https://github.com/stedolan/ocaml-afl-persistent/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/ocaml-${P}"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-ml/base-unix"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ ./build.sh || die
+}
diff --git a/dev-ml/afl-persistent/metadata.xml b/dev-ml/afl-persistent/metadata.xml
new file mode 100644
index 0000000000..f3e866eb3c
--- /dev/null
+++ b/dev-ml/afl-persistent/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ stedolan/ocaml-afl-persistent
+
+
diff --git a/dev-ml/alcotest-lwt/Manifest b/dev-ml/alcotest-lwt/Manifest
new file mode 100644
index 0000000000..e398922c37
--- /dev/null
+++ b/dev-ml/alcotest-lwt/Manifest
@@ -0,0 +1 @@
+DIST alcotest-1.4.0.tar.gz 279675 BLAKE2B 3cc50ab37a16948ceca9b5e6aa885fa50bbe0722c6132ed4991fb64c568253d9913287d1b9e5547f59a210d6803e2a83565f02950fb12cb91ed9f8e24d7864c1 SHA512 adb73c8b2be6f47cb406bbc49dba7dc86e990a60e2e68302592a24dcc24e11e76e2aa6fc2f003c1e4fdbb79744df6ab601daff9540cd7b0096ac9f9bff18098c
diff --git a/dev-ml/alcotest-lwt/alcotest-lwt-1.4.0.ebuild b/dev-ml/alcotest-lwt/alcotest-lwt-1.4.0.ebuild
new file mode 100644
index 0000000000..91ad6de7a0
--- /dev/null
+++ b/dev-ml/alcotest-lwt/alcotest-lwt-1.4.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Lwt-based helpers for Alcotest"
+HOMEPAGE="https://github.com/mirage/alcotest"
+SRC_URI="https://github.com/mirage/alcotest/archive/${PV}.tar.gz -> alcotest-${PV}.tar.gz"
+S="${WORKDIR}/alcotest-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/fmt:=
+ dev-ml/alcotest:=
+ dev-ml/lwt:=
+ dev-ml/logs:=
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/alcotest
+
+
diff --git a/dev-ml/angstrom/angstrom-0.15.0-r2.ebuild b/dev-ml/angstrom/angstrom-0.15.0-r2.ebuild
index 6ba769617e..b218bce609 100644
--- a/dev-ml/angstrom/angstrom-0.15.0-r2.ebuild
+++ b/dev-ml/angstrom/angstrom-0.15.0-r2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
DESCRIPTION="Parser combinators built for speed and memory efficiency"
HOMEPAGE="https://github.com/inhabitedtype/angstrom"
@@ -12,19 +12,31 @@ SRC_URI="https://github.com/inhabitedtype/angstrom/archive/${PV}.tar.gz -> ${P}.
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="async lwt-unix ocamlopt unix"
RDEPEND="
- dev-ml/async
- dev-ml/base
+ async? ( dev-ml/async )
+ lwt-unix? (
+ dev-ml/base
+ dev-ml/lwt
+ )
+ unix? ( dev-ml/base )
+
dev-ml/bigstringaf
- dev-ml/lwt
"
DEPEND="${RDEPEND}"
-src_install() {
- dune_src_install angstrom-async
- dune_src_install angstrom-lwt-unix
- dune_src_install angstrom-unix
- dune_src_install angstrom
+src_compile() {
+ local pkgs="angstrom"
+ use async && pkgs="${pkgs},angstrom-async"
+ use unix && pkgs="${pkgs},angstrom-unix"
+ use lwt-unix && pkgs="${pkgs},angstrom-lwt-unix"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install angstrom
+ use async && dune_src_install angstrom-async
+ use lwt-unix && dune_src_install angstrom-lwt-unix
+ use unix && dune_src_install angstrom-unix
}
diff --git a/dev-ml/angstrom/metadata.xml b/dev-ml/angstrom/metadata.xml
index 4ea80d8393..8afdb71fe6 100644
--- a/dev-ml/angstrom/metadata.xml
+++ b/dev-ml/angstrom/metadata.xml
@@ -9,4 +9,9 @@
inhabitedtype/angstrom
+
diff --git a/dev-ml/arp/Manifest b/dev-ml/arp/Manifest
new file mode 100644
index 0000000000..54ee27714d
--- /dev/null
+++ b/dev-ml/arp/Manifest
@@ -0,0 +1 @@
+DIST arp-v3.0.0.tbz 19557 BLAKE2B ec424b3d74732a3e01eb9875bd6d5b05e79a1df5449a47120b6942023b0ebcb8597915874b2dde5d9e413410e41e8783c5ec8f7f49743a08fa877e3e94129efe SHA512 52eb9fdb00729a5b6c1d7dd9d14fca213aecddc6e2893c0e670dea3b31576e6765061f557b6521a065ed15a931f4cbbf432b4db8fe53df40dc801695acd242d4
diff --git a/dev-ml/arp/arp-3.0.0.ebuild b/dev-ml/arp/arp-3.0.0.ebuild
new file mode 100644
index 0000000000..b8507a44d1
--- /dev/null
+++ b/dev-ml/arp/arp-3.0.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Address resolution protocol (ARP) implementation in OCaml"
+HOMEPAGE="https://github.com/mirage/arp"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/ipaddr
+ dev-ml/logs
+ dev-ml/mirage-time
+ dev-ml/lwt
+ dev-ml/duration
+ dev-ml/mirage-profile
+ dev-ml/ethernet
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/mirage-random
+ dev-ml/mirage-random-test
+ dev-ml/alcotest
+ dev-ml/fmt
+ dev-ml/mirage-vnetif
+ dev-ml/mirage-clock
+ dev-ml/mirage-time[unix]
+ dev-ml/mirage-flow
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/arp/metadata.xml b/dev-ml/arp/metadata.xml
new file mode 100644
index 0000000000..6aae058a5e
--- /dev/null
+++ b/dev-ml/arp/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/arp
+
+
diff --git a/dev-ml/asn1-combinators/Manifest b/dev-ml/asn1-combinators/Manifest
new file mode 100644
index 0000000000..1675e1fbd0
--- /dev/null
+++ b/dev-ml/asn1-combinators/Manifest
@@ -0,0 +1 @@
+DIST asn1-combinators-v0.2.5.tbz 28306 BLAKE2B 0a49a1b3b9340c6992f176ef58c4d19bd7fe73450b9146fb69f6ad5704403be9b9638fb9a8989ba34f04a5bb20b3b1ce31eb58aec60ca759a92db779198855fd SHA512 49767d04129bb842215e57e4efeb79f6fba025ddd67e474d9a3f51625c5101e583208cc0ff6dd69bcbcd4ab415c83b410125c1b9eb66c8cde60132b243b06158
diff --git a/dev-ml/asn1-combinators/asn1-combinators-0.2.5.ebuild b/dev-ml/asn1-combinators/asn1-combinators-0.2.5.ebuild
new file mode 100644
index 0000000000..f34293aab6
--- /dev/null
+++ b/dev-ml/asn1-combinators/asn1-combinators-0.2.5.ebuild
@@ -0,0 +1,30 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Embed typed ASN.1 grammars in OCaml"
+HOMEPAGE="https://github.com/mirleft/ocaml-asn1-combinators"
+SRC_URI="https://github.com/mirleft/ocaml-${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/ptime
+ dev-ml/zarith
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/asn1-combinators/metadata.xml b/dev-ml/asn1-combinators/metadata.xml
new file mode 100644
index 0000000000..730bfe343c
--- /dev/null
+++ b/dev-ml/asn1-combinators/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirleft/ocaml-asn1-combinators
+
+
diff --git a/dev-ml/async_find/Manifest b/dev-ml/async_find/Manifest
new file mode 100644
index 0000000000..371a96284f
--- /dev/null
+++ b/dev-ml/async_find/Manifest
@@ -0,0 +1 @@
+DIST async_find-0.15.0.tar.gz 5785 BLAKE2B 4186658bb411fe16e27da64aeefa7cfe00c73572241663de82142484da2b88d673097b1248a3eeaf783d5d0550f6bb50a3cf9ee62f4746ea63484e55fb0e028b SHA512 37d46686fd7e4809b859474a10600fb9926d9d573fcdcac1a1f62b3a5eda6503d2d0af400e5fafa3b1698710e2be6b7a0cbba4e988307f36c104eb2aff1e091e
diff --git a/dev-ml/async_find/async_find-0.15.0.ebuild b/dev-ml/async_find/async_find-0.15.0.ebuild
new file mode 100644
index 0000000000..1df1b9e7ce
--- /dev/null
+++ b/dev-ml/async_find/async_find-0.15.0.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Directory traversal with Async"
+HOMEPAGE="https://github.com/janestreet/async_find"
+SRC_URI="https://github.com/janestreet/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+DEPEND="
+ dev-ml/async
+ dev-ml/core
+ dev-ml/ppx_jane
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-ml/async_find/metadata.xml b/dev-ml/async_find/metadata.xml
new file mode 100644
index 0000000000..caace9866f
--- /dev/null
+++ b/dev-ml/async_find/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/async_find
+
+
diff --git a/dev-ml/async_inotify/Manifest b/dev-ml/async_inotify/Manifest
new file mode 100644
index 0000000000..30895d12ec
--- /dev/null
+++ b/dev-ml/async_inotify/Manifest
@@ -0,0 +1 @@
+DIST async_inotify-0.15.0.tar.gz 8182 BLAKE2B f1c42be4b2206f7cb330af3fb333ff54a9923350711137d3eeca97231b3babdf73ea296084c213028cbd108071be00f8aaadcfa9b174cedc4ad8f940ea9103c8 SHA512 d3f0d5886ee113ae9e5f9d2440a9fb497eb19c41afb64f8427bcb9c0a5c6b45e176b4570cd3f196ad0f752de1188ed632f89270f57498ab89963df93efa79c02
diff --git a/dev-ml/async_inotify/async_inotify-0.15.0.ebuild b/dev-ml/async_inotify/async_inotify-0.15.0.ebuild
new file mode 100644
index 0000000000..0c50d39b0c
--- /dev/null
+++ b/dev-ml/async_inotify/async_inotify-0.15.0.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Async wrapper for inotify"
+HOMEPAGE="https://github.com/janestreet/async_inotify"
+SRC_URI="https://github.com/janestreet/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+DEPEND="
+ dev-ml/core_unix
+ dev-ml/async
+ dev-ml/async_find
+ dev-ml/core
+ dev-ml/ppx_jane
+ dev-ml/inotify
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-ml/async_inotify/metadata.xml b/dev-ml/async_inotify/metadata.xml
new file mode 100644
index 0000000000..53514bc6d4
--- /dev/null
+++ b/dev-ml/async_inotify/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/async_inotify
+
+
diff --git a/dev-ml/async_ssl/Manifest b/dev-ml/async_ssl/Manifest
new file mode 100644
index 0000000000..811725b72d
--- /dev/null
+++ b/dev-ml/async_ssl/Manifest
@@ -0,0 +1 @@
+DIST async_ssl-0.14.0.tar.gz 40338 BLAKE2B eb673f30d7374b539b37c84ba88e0daf8eeeacc93b278a44177a433cb8b336a843cc05e6033ec8ee831ec1c28fc243c8019a82bd495e96a1e54dfd47a3d10b13 SHA512 89397d0066444cbfdd3d4d27942ff04b3adbe2a9cf11427795fcf59127908c94f88c1575f395aa74eee49abb5be2e86940a88945dda6435fb81165bd58b789a7
diff --git a/dev-ml/async_ssl/async_ssl-0.14.0-r1.ebuild b/dev-ml/async_ssl/async_ssl-0.14.0-r1.ebuild
new file mode 100644
index 0000000000..159de29b5f
--- /dev/null
+++ b/dev-ml/async_ssl/async_ssl-0.14.0-r1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="An Async-pipe-based interface with OpenSSL"
+HOMEPAGE="https://github.com/janestreet/async_ssl"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-libs/openssl:0=
+ dev-ml/async
+ dev-ml/base
+ dev-ml/core
+ dev-ml/ppx_jane
+ dev-ml/stdio
+ dev-ml/ocaml-ctypes
+ dev-ml/dune-configurator
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/async_ssl/metadata.xml b/dev-ml/async_ssl/metadata.xml
new file mode 100644
index 0000000000..0c01f14467
--- /dev/null
+++ b/dev-ml/async_ssl/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/async_ssl
+
+
diff --git a/dev-ml/base-bytes/base-bytes-0.ebuild b/dev-ml/base-bytes/base-bytes-0.ebuild
new file mode 100644
index 0000000000..aa5c680186
--- /dev/null
+++ b/dev-ml/base-bytes/base-bytes-0.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Bytes library distributed with the OCaml compiler"
+HOMEPAGE="https://opam.ocaml.org/packages/base-bytes/"
+
+LICENSE="QPL-1.0 LGPL-2"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="dev-lang/ocaml"
diff --git a/dev-ml/base-bytes/metadata.xml b/dev-ml/base-bytes/metadata.xml
new file mode 100644
index 0000000000..d2b2c8ce9f
--- /dev/null
+++ b/dev-ml/base-bytes/metadata.xml
@@ -0,0 +1,9 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
diff --git a/dev-ml/base-threads/base-threads-0.ebuild b/dev-ml/base-threads/base-threads-0.ebuild
new file mode 100644
index 0000000000..2a29308498
--- /dev/null
+++ b/dev-ml/base-threads/base-threads-0.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Threads library distributed with the OCaml compiler"
+HOMEPAGE="https://opam.ocaml.org/packages/base-threads/"
+
+LICENSE="QPL-1.0 LGPL-2"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="dev-lang/ocaml"
diff --git a/dev-ml/base-threads/metadata.xml b/dev-ml/base-threads/metadata.xml
new file mode 100644
index 0000000000..d2b2c8ce9f
--- /dev/null
+++ b/dev-ml/base-threads/metadata.xml
@@ -0,0 +1,9 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
diff --git a/dev-ml/base-unix/base-unix-0.ebuild b/dev-ml/base-unix/base-unix-0.ebuild
new file mode 100644
index 0000000000..731234eb77
--- /dev/null
+++ b/dev-ml/base-unix/base-unix-0.ebuild
@@ -0,0 +1,13 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Unix library distributed with the OCaml compiler"
+HOMEPAGE="https://opam.ocaml.org/packages/base-unix/"
+
+LICENSE="QPL-1.0 LGPL-2"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="dev-lang/ocaml"
diff --git a/dev-ml/base-unix/metadata.xml b/dev-ml/base-unix/metadata.xml
new file mode 100644
index 0000000000..d2b2c8ce9f
--- /dev/null
+++ b/dev-ml/base-unix/metadata.xml
@@ -0,0 +1,9 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
diff --git a/dev-ml/bheap/bheap-2.0.0.ebuild b/dev-ml/bheap/bheap-2.0.0.ebuild
index ac26321080..e4f6753027 100644
--- a/dev-ml/bheap/bheap-2.0.0.ebuild
+++ b/dev-ml/bheap/bheap-2.0.0.ebuild
@@ -12,7 +12,12 @@ SRC_URI="https://github.com/backtracking/${PN}/releases/download/${PV}/${P}.tbz"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
-DEPEND=""
-RDEPEND="${DEPEND}"
+RDEPEND=""
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/stdlib-shims )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/bigstringaf/Manifest b/dev-ml/bigstringaf/Manifest
index edfd935034..10c09f4724 100644
--- a/dev-ml/bigstringaf/Manifest
+++ b/dev-ml/bigstringaf/Manifest
@@ -1 +1,2 @@
DIST bigstringaf-0.7.0.tar.gz 11896 BLAKE2B 4bc94264865cc7d90def66930dc76264169b14f907094cdc9e25222f308163df3384a2c1a4d9a5b278fe4f9a433bf96b75fbf791d1255ce7dec582decbfd7951 SHA512 ea0827eaa37b053c1a1756ed38f059209e85fbf7d3e19ed97de587416a9717e77c5b1017afa307e9eee938c18b4ef7cb6ff4adea683d5a9b8430358b4096b960
+DIST bigstringaf-0.9.0.tar.gz 12431 BLAKE2B 12024a32d5ae9f3a5bdda223218abb8957519ebc70998ba34ebe841ef560d44d27f5b60413c88ca873fdf1a2a35ea08a3fafba00073c6cba26fe32237b3a56cf SHA512 c5148d967beef15bba21a706009cb8443fe6afd76b949d6a6bcf4fc6c6d410bd0ca4c86b4ef6897cad73c51449e5387ee0173347b8d43c49f1a62024a8aa4db5
diff --git a/dev-ml/bigstringaf/bigstringaf-0.7.0.ebuild b/dev-ml/bigstringaf/bigstringaf-0.7.0.ebuild
index f470ee8149..b44bf3d781 100644
--- a/dev-ml/bigstringaf/bigstringaf-0.7.0.ebuild
+++ b/dev-ml/bigstringaf/bigstringaf-0.7.0.ebuild
@@ -12,9 +12,12 @@ SRC_URI="https://github.com/inhabitedtype/bigstringaf/archive/${PV}.tar.gz -> ${
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
+RDEPEND="dev-ml/bigarray-compat"
DEPEND="
- dev-ml/bigarray-compat
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
"
-RDEPEND="${DEPEND}"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/bigstringaf/bigstringaf-0.9.0.ebuild b/dev-ml/bigstringaf/bigstringaf-0.9.0.ebuild
new file mode 100644
index 0000000000..92e8ca7323
--- /dev/null
+++ b/dev-ml/bigstringaf/bigstringaf-0.9.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Bigstring intrinsics and fast blits based on memcpy/memmove"
+HOMEPAGE="https://github.com/inhabitedtype/bigstringaf"
+SRC_URI="https://github.com/inhabitedtype/bigstringaf/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND=">=dev-lang/ocaml-4.08.0"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/ca-certs-nss/Manifest b/dev-ml/ca-certs-nss/Manifest
new file mode 100644
index 0000000000..351c66d8e5
--- /dev/null
+++ b/dev-ml/ca-certs-nss/Manifest
@@ -0,0 +1 @@
+DIST ca-certs-nss-3.74.tbz 228309 BLAKE2B f90ba922b08c2fd22a527ef96f145b6e7ff108fe7d5cdfe877a962ad272fafb7761c9ed9e2364251d4f3e2f81d281bb2909551b95d69943eb57f121b4be6b2ad SHA512 42ae429ae32047959adc6d107e37e5608b4bca7484efc2b71ee9e319e639639f3f663f1d8528538aecf10584b1839f002e0e6c7602900b600a129ff56cf30fa5
diff --git a/dev-ml/ca-certs-nss/ca-certs-nss-3.74.ebuild b/dev-ml/ca-certs-nss/ca-certs-nss-3.74.ebuild
new file mode 100644
index 0000000000..35e0501492
--- /dev/null
+++ b/dev-ml/ca-certs-nss/ca-certs-nss-3.74.ebuild
@@ -0,0 +1,32 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="X.509 trust anchors extracted from Mozilla's NSS"
+HOMEPAGE="https://github.com/mirage/ca-certs-nss"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="BSD-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/mirage-crypto
+ dev-ml/mirage-clock
+ dev-ml/x509
+"
+DEPEND="
+ ${RDEPEND}
+ dev-ml/logs
+ dev-ml/fmt
+ dev-ml/bos
+ dev-ml/astring
+ dev-ml/cmdliner
+ dev-ml/alcotest
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/ca-certs-nss/metadata.xml b/dev-ml/ca-certs-nss/metadata.xml
new file mode 100644
index 0000000000..236246213e
--- /dev/null
+++ b/dev-ml/ca-certs-nss/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ca-certs-nss
+
+
diff --git a/dev-ml/ca-certs/Manifest b/dev-ml/ca-certs/Manifest
new file mode 100644
index 0000000000..c90323a187
--- /dev/null
+++ b/dev-ml/ca-certs/Manifest
@@ -0,0 +1 @@
+DIST ca-certs-v0.2.1.tbz 26566 BLAKE2B e48c5230501ba790acb5abf078c0a3e3eb26da7a7ba946c001d2c37b8d45952ebc1e8fa7f4ee033e944e18cb9dbe1598be336d29b41e4f04d74006b6d790f319 SHA512 5b337812047e75b97218d0fc28d13dd37c8aebe2672954679884d3eb3ddda59c9678aea2a66dd66def4b2eb0a6b9e25812a95a5e8cae47c074759b2e9ff7a3c9
diff --git a/dev-ml/ca-certs/ca-certs-0.2.1.ebuild b/dev-ml/ca-certs/ca-certs-0.2.1.ebuild
new file mode 100644
index 0000000000..f7cb302e85
--- /dev/null
+++ b/dev-ml/ca-certs/ca-certs-0.2.1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Detect root CA certificates from the operating system"
+HOMEPAGE="https://github.com/mirage/ca-certs"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/astring
+ dev-ml/bos
+ dev-ml/fpath
+ dev-ml/ptime
+ dev-ml/logs
+ dev-ml/mirage-crypto
+ dev-ml/x509
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/fmt
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/ca-certs/metadata.xml b/dev-ml/ca-certs/metadata.xml
new file mode 100644
index 0000000000..0ecf89340e
--- /dev/null
+++ b/dev-ml/ca-certs/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ca-certs
+
+
diff --git a/dev-ml/cdrom/Manifest b/dev-ml/cdrom/Manifest
new file mode 100644
index 0000000000..753c7d32ce
--- /dev/null
+++ b/dev-ml/cdrom/Manifest
@@ -0,0 +1 @@
+DIST cdrom-0.9.4.tar.gz 13081 BLAKE2B 7021464d9a3b8009cb915b2481364975f5446ff1b0ca62a44758db1804bc9a166ee52f50b93098ead3dbb7cf5fd413570dc985e8ae78574ba6a223c056bf3e66 SHA512 7b641062dbe7b0407348fec1f8d595a41bddeb7e566c93ea569a64349e08d13cb824edd7c8a63e68680897aca4811df696b131aba56701da547497743a601f68
diff --git a/dev-ml/cdrom/cdrom-0.9.4.ebuild b/dev-ml/cdrom/cdrom-0.9.4.ebuild
new file mode 100644
index 0000000000..ba6d2086eb
--- /dev/null
+++ b/dev-ml/cdrom/cdrom-0.9.4.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Query the state and contents of CDROM devices under Linux"
+HOMEPAGE="https://github.com/xapi-project/cdrom"
+SRC_URI="https://github.com/xapi-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
diff --git a/dev-ml/cdrom/metadata.xml b/dev-ml/cdrom/metadata.xml
new file mode 100644
index 0000000000..cb2143979a
--- /dev/null
+++ b/dev-ml/cdrom/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ xapi-project/cdrom
+
+
diff --git a/dev-ml/cohttp/Manifest b/dev-ml/cohttp/Manifest
new file mode 100644
index 0000000000..7547e650c8
--- /dev/null
+++ b/dev-ml/cohttp/Manifest
@@ -0,0 +1 @@
+DIST ocaml-cohttp-5.0.0.tar.gz 134016 BLAKE2B 0377bf6e9e355eb8bd27156ba95b3174aee2e9e0e2f66622bfcb9fbf15c7c2ae3fa2ac279134307260b07419887f30935e5d28c4750463eb7720ad022acbc5f2 SHA512 32f9c4cd3e3eda65a74ef01cfd1336f6a7fac30d8dde6b97b6452b887002b26ed54cb92e8abefb236486447742857f9eb712388fbd1ffd69d06d0a7698049458
diff --git a/dev-ml/cohttp/cohttp-5.0.0.ebuild b/dev-ml/cohttp/cohttp-5.0.0.ebuild
new file mode 100644
index 0000000000..767e429e4b
--- /dev/null
+++ b/dev-ml/cohttp/cohttp-5.0.0.ebuild
@@ -0,0 +1,151 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Very lightweight HTTP server using Lwt or Async"
+HOMEPAGE="https://github.com/mirage/ocaml-cohttp"
+SRC_URI="https://github.com/mirage/ocaml-cohttp/archive/v${PV}.tar.gz -> ocaml-cohttp-${PV}.tar.gz"
+S="${WORKDIR}/ocaml-cohttp-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="async bench curl curl-async curl-lwt lwt lwt-jsoo lwt-unix mirage ocamlopt server-lwt-unix test top"
+
+RDEPEND="
+ async? (
+ dev-ml/async
+ dev-ml/async_kernel
+ dev-ml/async_unix
+ dev-ml/base
+ dev-ml/core_unix
+ dev-ml/conduit[async]
+ dev-ml/fmt
+ dev-ml/ipaddr
+ dev-ml/logs
+ dev-ml/magic-mime
+ dev-ml/mirage-crypto
+ )
+ bench? (
+ dev-ml/core
+ dev-ml/core_bench
+ )
+ curl-async? (
+ dev-ml/async_kernel
+ dev-ml/async_unix
+ dev-ml/core_kernel
+ dev-ml/ocurl
+ )
+ curl? ( dev-ml/ocurl )
+ curl-lwt? (
+ dev-ml/lwt
+ dev-ml/ocurl
+ )
+ lwt? (
+ dev-ml/logs
+ dev-ml/lwt
+ dev-ml/ppx_sexp_conv
+ )
+ lwt-jsoo? (
+ dev-ml/js_of_ocaml[lwt,ppx]
+ dev-ml/logs
+ dev-ml/lwt
+ )
+ lwt-unix? (
+ dev-ml/base-unix
+ dev-ml/cmdliner
+ dev-ml/conduit[lwt,lwt-unix]
+ dev-ml/fmt
+ dev-ml/logs
+ dev-ml/lwt
+ dev-ml/magic-mime
+ dev-ml/ppx_sexp_conv
+ )
+ mirage? (
+ dev-ml/astring
+ dev-ml/conduit[mirage]
+ dev-ml/fmt
+ dev-ml/lwt
+ dev-ml/magic-mime
+ dev-ml/mirage-channel
+ dev-ml/mirage-flow
+ dev-ml/mirage-kv
+ dev-ml/ppx_sexp_conv
+ )
+ server-lwt-unix? (
+ dev-ml/lwt
+ )
+
+ dev-ml/ocaml-base64
+ dev-ml/re
+ dev-ml/sexplib0
+ dev-ml/stringext
+ dev-ml/uri[sexp]
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/base_quickcheck
+ dev-ml/ppx_assert
+ dev-ml/ppx_sexp_conv
+ dev-ml/ppx_compare
+ dev-ml/ppx_here
+ dev-ml/core
+ dev-ml/core_bench
+ dev-ml/crowbar
+ dev-ml/fmt
+ dev-ml/conduit[lwt,lwt-unix]
+ dev-ml/ounit
+ dev-ml/lwt
+ net-libs/nodejs[npm]
+ dev-ml/mirage-crypto
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ bench? ( async lwt-unix server-lwt-unix )
+ curl-lwt? ( curl )
+ lwt-jsoo? ( lwt )
+ lwt-unix? ( lwt )
+ mirage? ( lwt )
+ server-lwt-unix? ( lwt )
+ test? ( async curl-async curl-lwt lwt-jsoo lwt-unix lwt )
+"
+
+src_compile() {
+# local pkgs="http,cohttp"
+ local pkgs="cohttp"
+ use async && pkgs="${pkgs},cohttp-async"
+ use bench && pkgs="${pkgs},cohttp-bench"
+ use curl-async && pkgs="${pkgs},cohttp-curl-async"
+ use curl-lwt && pkgs="${pkgs},cohttp-curl-lwt"
+ use curl && pkgs="${pkgs},cohttp-curl"
+ use lwt-jsoo && pkgs="${pkgs},cohttp-lwt-jsoo"
+ use lwt-unix && pkgs="${pkgs},cohttp-lwt-unix"
+ use lwt && pkgs="${pkgs},cohttp-lwt"
+ use mirage && pkgs="${pkgs},cohttp-mirage"
+ use server-lwt-unix && pkgs="${pkgs},cohttp-server-lwt-unix"
+ use top && pkgs="${pkgs},cohttp-top"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+# dune_src_install http
+ dune_src_install cohttp
+ use async && dune_src_install cohttp-async
+ use bench && dune_src_install cohttp-bench
+ use curl-async && dune_src_install cohttp-curl-async
+ use curl-lwt && dune_src_install cohttp-curl-lwt
+ use curl && dune_src_install cohttp-curl
+ use lwt-jsoo && dune_src_install cohttp-lwt-jsoo
+ use lwt-unix && dune_src_install cohttp-lwt-unix
+ use lwt && dune_src_install cohttp-lwt
+ use mirage && dune_src_install cohttp-mirage
+ use server-lwt-unix && dune_src_install cohttp-server-lwt-unix
+ use top && dune_src_install cohttp-top
+}
diff --git a/dev-ml/cohttp/metadata.xml b/dev-ml/cohttp/metadata.xml
new file mode 100644
index 0000000000..49177d5b3c
--- /dev/null
+++ b/dev-ml/cohttp/metadata.xml
@@ -0,0 +1,25 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-cohttp
+
+
+
diff --git a/dev-ml/conduit/Manifest b/dev-ml/conduit/Manifest
new file mode 100644
index 0000000000..a337b00fca
--- /dev/null
+++ b/dev-ml/conduit/Manifest
@@ -0,0 +1 @@
+DIST conduit-5.1.0.tar.gz 41320 BLAKE2B 224201539d7947128c7eeb4d25b95324b8b3ec176ad13593841edd4f131aa6b4f089547d054d1280285d3554cd54c36c0654111204d7443b1f0e66d8de7a50d2 SHA512 5308803f4653d30399b1549cd4f27d0132b2f0202cc626cd1344620684bd8a7e08b8de1887cad73a0eba4c677946192aa05199bce8c0844fecf3695338156b09
diff --git a/dev-ml/conduit/conduit-5.1.0.ebuild b/dev-ml/conduit/conduit-5.1.0.ebuild
new file mode 100644
index 0000000000..cb35f131df
--- /dev/null
+++ b/dev-ml/conduit/conduit-5.1.0.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="Dereference URIs into communication channels for Async or Lwt"
+HOMEPAGE="https://github.com/mirage/ocaml-conduit"
+SRC_URI="https://github.com/mirage/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="async lwt lwt-unix mirage ocamlopt"
+
+# lwt-unix? tls lwt_ssl launchd
+RDEPEND="
+ dev-ml/astring
+ dev-ml/ipaddr[sexp]
+ dev-ml/logs
+ dev-ml/ppx_sexp_conv
+ dev-ml/sexplib
+ dev-ml/uri
+
+ async? (
+ dev-ml/async
+ dev-ml/async_ssl
+ dev-ml/core
+ dev-ml/ppx_here
+ )
+ lwt? (
+ dev-ml/base-unix
+ dev-ml/lwt
+ )
+ lwt-unix? (
+ dev-ml/base-unix
+ dev-ml/ca-certs
+ dev-ml/lwt
+ )
+ mirage? (
+ dev-ml/base
+ dev-ml/ca-certs-nss
+ dev-ml/cstruct
+ dev-ml/dns[client]
+ dev-ml/fmt
+ dev-ml/mirage-clock
+ dev-ml/mirage-flow[combinators]
+ dev-ml/mirage-random
+ dev-ml/mirage-time
+ dev-ml/tcpip
+ dev-ml/tls[mirage]
+ dev-ml/vchan
+ dev-ml/xenstore
+ )
+"
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="
+ lwt-unix? ( lwt )
+ mirage? ( lwt )
+"
+
+src_compile() {
+ local pkgs="conduit"
+ for u in async lwt lwt-unix mirage ; do
+ if use ${u} ; then
+ pkgs="${pkgs},conduit-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install conduit
+ for u in async lwt lwt-unix mirage ; do
+ if use ${u} ; then
+ dune_src_install "conduit-${u}"
+ fi
+ done
+}
diff --git a/dev-ml/conduit/metadata.xml b/dev-ml/conduit/metadata.xml
new file mode 100644
index 0000000000..818fe748bb
--- /dev/null
+++ b/dev-ml/conduit/metadata.xml
@@ -0,0 +1,17 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-conduit
+
+
+
diff --git a/dev-ml/configurator/Manifest b/dev-ml/configurator/Manifest
new file mode 100644
index 0000000000..1f11339a65
--- /dev/null
+++ b/dev-ml/configurator/Manifest
@@ -0,0 +1 @@
+DIST configurator-0.11.0.tar.gz 10567 BLAKE2B 52d529233baa95ce00347d7e43a85127faefcaa2731c61d0c4b2e3e6314c7aa4a6ac6367ca57f6b846223af3d555309420f11c1e8240a93bbadce37157cfc52f SHA512 0163b8af41fb3b3b6f395bc507077c9a1043432e809c5a76dff929c51cbf9ab7df5de6f9c275ce2cda06314bc93bc58b0cad0a58512ce71a9e7722c5bd617102
diff --git a/dev-ml/configurator/configurator-0.11.0.ebuild b/dev-ml/configurator/configurator-0.11.0.ebuild
new file mode 100644
index 0000000000..c8859268c4
--- /dev/null
+++ b/dev-ml/configurator/configurator-0.11.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Helper library for gathering system configuration"
+HOMEPAGE="https://github.com/janestreet/configurator"
+SRC_URI="https://github.com/janestreet/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/stdio
+ dev-ml/base
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ dune upgrade || die
+ dune build -p configurator -j $(makeopts_jobs) @install || die
+}
+
+src_install() {
+ dune_src_install configurator
+}
diff --git a/dev-ml/configurator/metadata.xml b/dev-ml/configurator/metadata.xml
new file mode 100644
index 0000000000..666c314ee5
--- /dev/null
+++ b/dev-ml/configurator/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/configurator
+
+
diff --git a/dev-ml/core_unix/Manifest b/dev-ml/core_unix/Manifest
new file mode 100644
index 0000000000..a9bdefb0ff
--- /dev/null
+++ b/dev-ml/core_unix/Manifest
@@ -0,0 +1 @@
+DIST core_unix-0.14.0.tar.gz 6694 BLAKE2B 6ee13ca55de516962590066b81d5f8bfc058a05d18b26a014decaec92ace7ba699c12a203c0ca4b1381d69f218f3c428eed08df00e25e5b1615e748b30c4d841 SHA512 d020db759cde35c0e9d9919dee2c0ea5bb5b7a5ee75515be922d816f28eb9f74dba37e6e424a636e362eab5120b2c1e672f4e5ba798f2dac7974c0e135f80faf
diff --git a/dev-ml/core_unix/core_unix-0.14.0.ebuild b/dev-ml/core_unix/core_unix-0.14.0.ebuild
new file mode 100644
index 0000000000..b1c2cdfd22
--- /dev/null
+++ b/dev-ml/core_unix/core_unix-0.14.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Unix-specific extensions to some of the modules defined in [core] and [core_kernel]"
+HOMEPAGE="https://github.com/janestreet/core_unix"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/core_kernel
+ dev-ml/expect_test_helpers_core
+ dev-ml/core
+ dev-ml/ppx_jane
+ dev-ml/jane-street-headers
+ dev-ml/jst-config
+ dev-ml/ocaml_intrinsics
+ dev-ml/sexplib
+ dev-ml/timezone
+ dev-ml/base-threads
+ dev-ml/spawn
+"
+DEPEND="
+ ${RDEPEND}
+ sys-kernel/linux-headers
+"
diff --git a/dev-ml/core_unix/metadata.xml b/dev-ml/core_unix/metadata.xml
new file mode 100644
index 0000000000..8551609050
--- /dev/null
+++ b/dev-ml/core_unix/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/core_unix
+
+
diff --git a/dev-ml/crc/Manifest b/dev-ml/crc/Manifest
new file mode 100644
index 0000000000..b7c99024c3
--- /dev/null
+++ b/dev-ml/crc/Manifest
@@ -0,0 +1 @@
+DIST crc-2.1.0.tar.gz 6889 BLAKE2B 10ef45c0c66bea7fcc13d177d23efa28862b79650529791f95867dc203e671cdc60f8b138d74bdd1f02c96ebf4bb67c02ab7cfd39197b9bc387652af76b75bab SHA512 136370780a6ae020d596aa5f16133a7038beaa41bf770153e789ab4a1aa678d36b646b8c9ba81a642d1e6c067e3999dd84d81bccc3245ba9798c75b7ff7396a8
diff --git a/dev-ml/crc/crc-2.1.0.ebuild b/dev-ml/crc/crc-2.1.0.ebuild
new file mode 100644
index 0000000000..c2ffd4341b
--- /dev/null
+++ b/dev-ml/crc/crc-2.1.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="Library for finding the CRC of parts of various kinds of data in-place"
+HOMEPAGE="https://github.com/xapi-project/ocaml-crc"
+SRC_URI="https://github.com/xapi-project/${MYPN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+DEPEND="
+ dev-ml/cstruct
+ dev-ml/rpc
+ dev-ml/ppx_sexp_conv
+"
+RDEPEND="
+ ${DEPEND}
+ test? ( dev-ml/ounit )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/crc/metadata.xml b/dev-ml/crc/metadata.xml
new file mode 100644
index 0000000000..7853df327d
--- /dev/null
+++ b/dev-ml/crc/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ xapi-project/ocaml-crc
+
+
diff --git a/dev-ml/crowbar/Manifest b/dev-ml/crowbar/Manifest
new file mode 100644
index 0000000000..3bcaf02c21
--- /dev/null
+++ b/dev-ml/crowbar/Manifest
@@ -0,0 +1 @@
+DIST crowbar-0.2.1.tar.gz 16921 BLAKE2B 374980856366dcee94b61705057e475709e7c939655831ea62d0bfaec885875ec329c1c9a2b629123fe452efb2b3bb1324e0e05e3926d641beef44029713dc1c SHA512 7c148143412766f8a65d001f833d859235acb008c4f0403753fdc6ef6d5f5933b6213ecca326bf1edc3a43405c755975d8ab4e4459f90ee5088678592eae3e43
diff --git a/dev-ml/crowbar/crowbar-0.2.1.ebuild b/dev-ml/crowbar/crowbar-0.2.1.ebuild
new file mode 100644
index 0000000000..fa3a7d8dfe
--- /dev/null
+++ b/dev-ml/crowbar/crowbar-0.2.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Write tests, let a fuzzer find failing cases"
+HOMEPAGE="https://github.com/stedolan/crowbar"
+SRC_URI="https://github.com/stedolan/crowbar/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/afl-persistent:=
+ >=dev-ml/cmdliner-1.1.0:=
+ dev-ml/ocplib-endian:=
+"
+DEPEND="
+ ${DEPEND}
+ test? (
+ dev-ml/calendar
+ dev-ml/fpath
+ dev-ml/pprint
+ dev-ml/uucp
+ dev-ml/uunf
+ dev-ml/uutf
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/crowbar/metadata.xml b/dev-ml/crowbar/metadata.xml
new file mode 100644
index 0000000000..ef71756ba3
--- /dev/null
+++ b/dev-ml/crowbar/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ stedolan/crowbar
+
+
diff --git a/dev-ml/cstruct/Manifest b/dev-ml/cstruct/Manifest
index 2ad60d23e5..62c35a90cf 100644
--- a/dev-ml/cstruct/Manifest
+++ b/dev-ml/cstruct/Manifest
@@ -1 +1 @@
-DIST ocaml-ctruct-6.0.1.tar.gz 243082 BLAKE2B 874ba34583bbc8b53c5b50ba038e2aa423fd704711194dcf99899239015d5fb383242b1d4654c1be2705fd80465e6da7e8eaa5265eceebca7b09dc036d4ebf40 SHA512 2f696b9dca1426d57f60fd4e997ee0c89b1af1a49e186e08c16911ceb03e9f89518a63faf4407b4a7e3c5f391d51979019e47a77f33961624d767a9e36146ca4
+DIST cstruct-6.0.1.tar.gz 243082 BLAKE2B 874ba34583bbc8b53c5b50ba038e2aa423fd704711194dcf99899239015d5fb383242b1d4654c1be2705fd80465e6da7e8eaa5265eceebca7b09dc036d4ebf40 SHA512 2f696b9dca1426d57f60fd4e997ee0c89b1af1a49e186e08c16911ceb03e9f89518a63faf4407b4a7e3c5f391d51979019e47a77f33961624d767a9e36146ca4
diff --git a/dev-ml/cstruct/cstruct-6.0.1.ebuild b/dev-ml/cstruct/cstruct-6.0.1.ebuild
index b6db64c461..4c1a41d623 100644
--- a/dev-ml/cstruct/cstruct-6.0.1.ebuild
+++ b/dev-ml/cstruct/cstruct-6.0.1.ebuild
@@ -3,35 +3,73 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
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}"
+SRC_URI="https://github.com/mirage/ocaml-cstruct/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/ocaml-${P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="async lwt ocamlopt ppx sexp test unix"
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
+ >=dev-lang/ocaml-4.08.0:=[ocamlopt?]
+ >=dev-ml/fmt-0.8.9:=
+
+ async? (
+ dev-ml/async:=
+ dev-ml/async_unix:=
+ dev-ml/core:=
+ )
+ lwt? (
+ dev-ml/base-unix:=
+ dev-ml/lwt:=
+ )
+ ppx? (
+ dev-ml/ppxlib:=
+ dev-ml/stdlib-shims:=
+ )
+ sexp? ( dev-ml/sexplib:= )
+ unix? ( dev-ml/base-unix:= )
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/crowbar
+ dev-ml/ocaml-migrate-parsetree
+ dev-ml/ounit
+ dev-ml/ppx_sexp_conv
+ dev-ml/cppo
+ dev-ml/lwt
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ ppx? ( sexp )
+ test? ( sexp ppx )
+"
+
+src_compile() {
+ local pkgs="cstruct"
+ use ppx && pkgs="${pkgs},ppx_cstruct"
+ for u in async lwt sexp unix ; do
+ if use ${u} ; then
+ pkgs="${pkgs},cstruct-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
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
+ use async && dune_src_install cstruct-async
+ use lwt && dune_src_install cstruct-lwt
+ use sexp && dune_src_install cstruct-sexp
+ use unix && dune_src_install cstruct-unix
+ use ppx && dune_src_install ppx_cstruct
}
diff --git a/dev-ml/cstruct/metadata.xml b/dev-ml/cstruct/metadata.xml
index e689615f67..0f3f50ae21 100644
--- a/dev-ml/cstruct/metadata.xml
+++ b/dev-ml/cstruct/metadata.xml
@@ -2,11 +2,18 @@
- co-mainteiners welcome
+ co-maintainers welcome
lssndrbarbieri@gmail.com
Alessandro Barbieri
mirage/ocaml-cstruct
+
diff --git a/dev-ml/diet/Manifest b/dev-ml/diet/Manifest
new file mode 100644
index 0000000000..58c0bcc7d7
--- /dev/null
+++ b/dev-ml/diet/Manifest
@@ -0,0 +1 @@
+DIST diet-0.4.tar.gz 10139 BLAKE2B df7e3a06f90ced220a2fecff71c0c0c1d61a3bf6bd27cff80712a41e81bd6db4f7afc385cb0ce20d0077831975dd8c7d3d0888fcb9dd9809bdf9478c08ad2d7d SHA512 a8e122ddd343f6d9130169e1b066578f555d7eb2f0795a4603ba6ee6a31ad1ed2a1cc0a3149ac90d3995a7d8f5e770c56d9002160fa01b35bc16d10b9536ce97
diff --git a/dev-ml/diet/diet-0.4.ebuild b/dev-ml/diet/diet-0.4.ebuild
new file mode 100644
index 0000000000..aece1850fc
--- /dev/null
+++ b/dev-ml/diet/diet-0.4.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="A simple implementation of Discrete Interval Encoding Trees"
+HOMEPAGE="https://github.com/mirage/ocaml-diet"
+SRC_URI="https://github.com/mirage/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="dev-ml/stdlib-shims"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/ounit )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/diet/metadata.xml b/dev-ml/diet/metadata.xml
new file mode 100644
index 0000000000..836835d2fd
--- /dev/null
+++ b/dev-ml/diet/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-diet
+
+
diff --git a/dev-ml/dns/Manifest b/dev-ml/dns/Manifest
new file mode 100644
index 0000000000..c3df7b70da
--- /dev/null
+++ b/dev-ml/dns/Manifest
@@ -0,0 +1 @@
+DIST ocaml-dns-5.0.1.tar.gz 175810 BLAKE2B 0c442b9bc60f05c0cd73c811aced7b33afad7f9462572891ce88e0d67bbd57cace2123ed4ca7ebb3468d23b7b3fe419f06fa19ebaa0182f3d4d5036100ef7a9d SHA512 f66eeeaa7e3f8f2122ac82132d042493f5b63659d3626bd84cb38dc75c141def38303adbea9f748417de9cb355262bed3838ccf40f530eb6fcce58068f99c2e4
diff --git a/dev-ml/dns/dns-5.0.1.ebuild b/dev-ml/dns/dns-5.0.1.ebuild
new file mode 100644
index 0000000000..9ff04593dc
--- /dev/null
+++ b/dev-ml/dns/dns-5.0.1.ebuild
@@ -0,0 +1,133 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="A pure OCaml implementation of the DNS protocol"
+HOMEPAGE="https://github.com/mirage/ocaml-dns"
+SRC_URI="https://github.com/mirage/ocaml-${PN}/archive/v${PV}.tar.gz -> ocaml-${P}.tar.gz"
+S="${WORKDIR}/ocaml-${P}"
+
+LICENSE="BSD-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="certify cli client dnssec mirage ocamlopt resolver server stub test tsig"
+
+RDEPEND="
+ dev-ml/logs:=
+ dev-ml/ptime:=
+ dev-ml/domain-name:=
+ dev-ml/gmap:=
+ dev-ml/cstruct:=
+ dev-ml/ipaddr:=
+ dev-ml/lru:=
+ dev-ml/duration:=
+ dev-ml/metrics:=
+ dev-ml/ocaml-base64:=
+
+ dnssec? ( dev-ml/mirage-crypto:=[ec,pk] )
+ certify? (
+ dev-ml/randomconv:=
+ dev-ml/mirage-time:=
+ dev-ml/mirage-clock:=
+ dev-ml/tcpip:=
+ dev-ml/mirage-crypto:=[ec,pk,rng]
+ dev-ml/x509:=
+ dev-ml/lwt:=
+ )
+ cli? (
+ dev-ml/bos:=
+ dev-ml/cmdliner:=
+ dev-ml/fpath:=
+ dev-ml/x509:=
+ dev-ml/mirage-crypto:=[ec,pk]
+ dev-ml/hex:=
+ dev-ml/mtime:=
+ dev-ml/fmt:=
+ dev-ml/lwt:=
+ dev-ml/randomconv:=
+ )
+ client? (
+ dev-ml/fmt:=
+ dev-ml/lwt:=
+ dev-ml/tcpip:=
+ dev-ml/mirage-random:=
+ dev-ml/mirage-time:=
+ dev-ml/mirage-clock:=
+ dev-ml/mirage-crypto:=[rng]
+ dev-ml/happy-eyeballs:=
+ dev-ml/tls:=[mirage]
+ dev-ml/x509:=
+ dev-ml/ca-certs:=
+ dev-ml/ca-certs-nss:=
+ )
+ mirage? (
+ dev-ml/lwt:=
+ dev-ml/tcpip:=
+ )
+ resolver? (
+ dev-ml/randomconv:=
+ dev-ml/lwt:=
+ dev-ml/mirage-time:=
+ dev-ml/mirage-clock:=
+ dev-ml/mirage-random:=
+ dev-ml/tcpip:=
+ dev-ml/tls:=[mirage]
+ dev-ml/duration:=
+ )
+ server? (
+ dev-ml/randomconv:=
+ dev-ml/duration:=
+ dev-ml/lwt:=
+ dev-ml/mirage-time:=
+ dev-ml/mirage-clock:=
+ dev-ml/tcpip:=
+ dev-ml/mirage-crypto:=[rng]
+ )
+ stub? (
+ dev-ml/randomconv:=
+ dev-ml/lwt:=
+ dev-ml/mirage-time:=
+ dev-ml/mirage-clock:=
+ dev-ml/mirage-random:=
+ dev-ml/tcpip:=
+ )
+ tsig? ( dev-ml/mirage-crypto:= )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ certify? ( mirage tsig )
+ cli? ( certify client dnssec server tsig )
+ resolver? ( dnssec mirage server )
+ server? ( mirage )
+ stub? ( client mirage resolver tsig server )
+ test? ( cli dnssec resolver server tsig )
+"
+
+src_compile() {
+ local pkgs="dns"
+ use dnssec && pkgs="${pkgs},dnssec"
+ for u in certify cli client mirage resolver server stub tsig ; do
+ if use ${u} ; then
+ pkgs="${pkgs},dns-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install dns
+ use dnssec && dune_src_install dnssec
+ for u in certify cli client mirage resolver server stub tsig ; do
+ if use ${u} ; then
+ dune_src_install "dns-${u}"
+ fi
+ done
+}
diff --git a/dev-ml/dns/metadata.xml b/dev-ml/dns/metadata.xml
new file mode 100644
index 0000000000..57d04d4a5c
--- /dev/null
+++ b/dev-ml/dns/metadata.xml
@@ -0,0 +1,23 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-dns
+
+
+
diff --git a/dev-ml/domain-name/domain-name-0.4.0.ebuild b/dev-ml/domain-name/domain-name-0.4.0.ebuild
index 7b2fdcbbd6..7838515259 100644
--- a/dev-ml/domain-name/domain-name-0.4.0.ebuild
+++ b/dev-ml/domain-name/domain-name-0.4.0.ebuild
@@ -12,4 +12,12 @@ SRC_URI="https://github.com/hannesm/domain-name/releases/download/v${PV}/${P}.tb
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
+
+RESTRICT="!test? ( test )"
+
+RDEPEND=""
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
diff --git a/dev-ml/eqaf/Manifest b/dev-ml/eqaf/Manifest
new file mode 100644
index 0000000000..95528d5eb8
--- /dev/null
+++ b/dev-ml/eqaf/Manifest
@@ -0,0 +1 @@
+DIST eqaf-v0.7.tbz 19149 BLAKE2B bd73571d7118b7007a89c07b65eeaaadc34722b2e3923ef045d7a39c5e6d92292f38c6507934bad27af744a9a5eac5be16a9446d0353d998bc727dd86fc2d0bd SHA512 38a2687bafb5cd1d1deb51ceceba94fcff9ce88515fd2c61ec1182808c50c0e3373a4d71fe51a17a23c74616c5ab350a4cf7914de656886981538abf2b57ff61
diff --git a/dev-ml/eqaf/eqaf-0.7-r1.ebuild b/dev-ml/eqaf/eqaf-0.7-r1.ebuild
new file mode 100644
index 0000000000..0d9f37f56c
--- /dev/null
+++ b/dev-ml/eqaf/eqaf-0.7-r1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Constant time equal function to avoid timing attacks in OCaml"
+HOMEPAGE="https://github.com/mirage/eqaf"
+SRC_URI="https://github.com/mirage/eqaf/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="dev-ml/cstruct"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/eqaf/metadata.xml b/dev-ml/eqaf/metadata.xml
new file mode 100644
index 0000000000..fbe05ef42f
--- /dev/null
+++ b/dev-ml/eqaf/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/eqaf
+
+
diff --git a/dev-ml/ethernet/Manifest b/dev-ml/ethernet/Manifest
new file mode 100644
index 0000000000..9ba14438f5
--- /dev/null
+++ b/dev-ml/ethernet/Manifest
@@ -0,0 +1 @@
+DIST ethernet-v3.0.0.tbz 6116 BLAKE2B 09f57cd4b58dff67f5b6ab2e68c8c29f6b527ed07b14664f8dd6da64dc05a17773f3ccb242ac37702ad9c43dc8fc1c6cfe9f04c219fdfae382c7d26a9d9724e8 SHA512 171d061b16f2e00b9caa3dfc1cd9b5b358d380e892281ac5c137dc2a3119c3fa288ea927dcb4e9efbcf4850f6857ed0d4b754f56dbb248c1c6150779e57d24e4
diff --git a/dev-ml/ethernet/ethernet-3.0.0.ebuild b/dev-ml/ethernet/ethernet-3.0.0.ebuild
new file mode 100644
index 0000000000..7fb9814297
--- /dev/null
+++ b/dev-ml/ethernet/ethernet-3.0.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="OCaml Ethernet (IEEE 802.3) layer"
+HOMEPAGE="https://github.com/mirage/ethernet"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/mirage-net
+ dev-ml/ipaddr
+ dev-ml/mirage-profile
+ dev-ml/lwt
+ dev-ml/logs
+ >=dev-ml/cstruct-6.0.0[ppx]
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/ethernet/metadata.xml b/dev-ml/ethernet/metadata.xml
new file mode 100644
index 0000000000..e23736c96c
--- /dev/null
+++ b/dev-ml/ethernet/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ethernet
+
+
diff --git a/dev-ml/expect_test_helpers/Manifest b/dev-ml/expect_test_helpers/Manifest
new file mode 100644
index 0000000000..8c176c91d9
--- /dev/null
+++ b/dev-ml/expect_test_helpers/Manifest
@@ -0,0 +1 @@
+DIST expect_test_helpers-0.13.0.tar.gz 6153 BLAKE2B f125841b585b3c01865de7153e1f7150cde9be15e763f2b6f8658cc230d323ec594e962a77cd7ba5da05ecfb569e8ef64b65f26566099bd6a726967a80c65c3f SHA512 eeb7a447f7c6f1d2ea5dd338fe34fa8f609a0c19e9535d379f04a485624e993f48c323a3f4aab9c24a11609d4d60e159723cb836169231a8c6b71087d1a0d70a
diff --git a/dev-ml/expect_test_helpers/expect_test_helpers-0.13.0-r1.ebuild b/dev-ml/expect_test_helpers/expect_test_helpers-0.13.0-r1.ebuild
new file mode 100644
index 0000000000..e32bed2328
--- /dev/null
+++ b/dev-ml/expect_test_helpers/expect_test_helpers-0.13.0-r1.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Async helpers for writing expectation tests"
+HOMEPAGE="https://github.com/janestreet/expect_test_helpers"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/async
+ dev-ml/core
+ dev-ml/expect_test_helpers_kernel
+ dev-ml/ppx_jane
+ dev-ml/sexp_pretty
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/expect_test_helpers/metadata.xml b/dev-ml/expect_test_helpers/metadata.xml
new file mode 100644
index 0000000000..a3344688f1
--- /dev/null
+++ b/dev-ml/expect_test_helpers/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/expect_test_helpers
+
+
diff --git a/dev-ml/expect_test_helpers_core/Manifest b/dev-ml/expect_test_helpers_core/Manifest
new file mode 100644
index 0000000000..f899be5bb4
--- /dev/null
+++ b/dev-ml/expect_test_helpers_core/Manifest
@@ -0,0 +1 @@
+DIST expect_test_helpers_core-0.14.0.tar.gz 16378 BLAKE2B f64dbd02802456535d19fdc9f991a56331be728ac34f10c618de22264a0425248cc6b6ff653198081fae779acba32ed48b4792d3902e9feef3b38fa5f95367c0 SHA512 ff4525324972875381ab5b2ec6705fabe8cac2d9a7a84d457b4f4b913da7d22956d363d8d7f61104f244980ed910ba242629d1005d7a7dec6cce9a0750e088b9
diff --git a/dev-ml/expect_test_helpers_core/expect_test_helpers_core-0.14.0.ebuild b/dev-ml/expect_test_helpers_core/expect_test_helpers_core-0.14.0.ebuild
new file mode 100644
index 0000000000..2a41fedc6b
--- /dev/null
+++ b/dev-ml/expect_test_helpers_core/expect_test_helpers_core-0.14.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Helpers for writing expectation tests"
+HOMEPAGE="https://github.com/janestreet/expect_test_helpers_core"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+# =dev-lang/ocaml-4.08.0
+ =dev-ml/base-0.14*
+ =dev-ml/base_quickcheck-0.14*
+ =dev-ml/core-0.14*
+ =dev-ml/ppx_jane-0.14*
+ =dev-ml/sexp_pretty-0.14*
+ =dev-ml/stdio-0.14*
+ >=dev-ml/re-1.8.0
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/expect_test_helpers_core/metadata.xml b/dev-ml/expect_test_helpers_core/metadata.xml
new file mode 100644
index 0000000000..5eda91b647
--- /dev/null
+++ b/dev-ml/expect_test_helpers_core/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/expect_test_helpers_core
+
+
diff --git a/dev-ml/expect_test_helpers_kernel/Manifest b/dev-ml/expect_test_helpers_kernel/Manifest
new file mode 100644
index 0000000000..075b5c2a01
--- /dev/null
+++ b/dev-ml/expect_test_helpers_kernel/Manifest
@@ -0,0 +1 @@
+DIST expect_test_helpers_kernel-0.13.0.tar.gz 15700 BLAKE2B 1ef0b4cfafd590a9ac742d113884857b4eacc234d93d57a137c962d111241c917f2e2322f6a98c37989e2d20eb4d256e93c1ac118620de8df6950bface8c7f3f SHA512 5bd75a0f6eaeee4f44d8b873323ff672ad064923c40e3f514153fbdf71214ec0a384eb84a451eb9f4caf22af4dd2895520be2d84875a51cb3c39de8811565f30
diff --git a/dev-ml/expect_test_helpers_kernel/expect_test_helpers_kernel-0.13.0-r1.ebuild b/dev-ml/expect_test_helpers_kernel/expect_test_helpers_kernel-0.13.0-r1.ebuild
new file mode 100644
index 0000000000..04e7c0af30
--- /dev/null
+++ b/dev-ml/expect_test_helpers_kernel/expect_test_helpers_kernel-0.13.0-r1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Helpers for writing expectation tests"
+HOMEPAGE="https://github.com/janestreet/expect_test_helpers_kernel"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/base
+ dev-ml/base_quickcheck
+ dev-ml/core_kernel
+ dev-ml/ppx_jane
+ dev-ml/sexp_pretty
+ dev-ml/stdio
+ dev-ml/re
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/expect_test_helpers_kernel/metadata.xml b/dev-ml/expect_test_helpers_kernel/metadata.xml
new file mode 100644
index 0000000000..fd41099998
--- /dev/null
+++ b/dev-ml/expect_test_helpers_kernel/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/expect_test_helpers_kernel
+
+
diff --git a/dev-ml/ezjsonm/ezjsonm-1.2.0-r2.ebuild b/dev-ml/ezjsonm/ezjsonm-1.2.0-r2.ebuild
index 2d6b4fa965..aa58c0e363 100644
--- a/dev-ml/ezjsonm/ezjsonm-1.2.0-r2.ebuild
+++ b/dev-ml/ezjsonm/ezjsonm-1.2.0-r2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
DESCRIPTION="An easy interface on top of the Jsonm library"
HOMEPAGE="https://github.com/mirage/ezjsonm"
@@ -13,18 +13,38 @@ S="${WORKDIR}/${PN}-v${PV}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="lwt ocamlopt test"
DEPEND="
dev-ml/hex
>=dev-ml/jsonm-1.0.0
- dev-ml/lwt
dev-ml/sexplib0
dev-ml/uutf
+
+ lwt? ( dev-ml/lwt )
"
-RDEPEND="${DEPEND}"
+RDEPEND="
+ ${DEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/js_of_ocaml
+ net-libs/nodejs[npm]
+ dev-ml/ppx_sexp_conv
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( lwt )"
+
+src_compile() {
+ local pkgs="ezjsonm"
+ if use lwt ; then
+ pkgs="${pkgs},ezjsonm-lwt"
+ fi
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
src_install() {
dune_src_install ezjsonm
- dune_src_install ezjsonm-lwt
+ use lwt && dune_src_install ezjsonm-lwt
}
diff --git a/dev-ml/ezjsonm/metadata.xml b/dev-ml/ezjsonm/metadata.xml
index c1c741b0dd..a9cdbcbd46 100644
--- a/dev-ml/ezjsonm/metadata.xml
+++ b/dev-ml/ezjsonm/metadata.xml
@@ -9,4 +9,7 @@
mirage/ezjsonm
+
diff --git a/dev-ml/gmap/Manifest b/dev-ml/gmap/Manifest
new file mode 100644
index 0000000000..3b3471bcbb
--- /dev/null
+++ b/dev-ml/gmap/Manifest
@@ -0,0 +1 @@
+DIST gmap-0.3.0.tbz 7553 BLAKE2B a6efc09fbfc6b448ea07466e1ee0f9beecbac3d30b5f996294b06e24bede082c96cba17885dd3a45942c6de49f0d500b8a3c6a4ca4a180abc1970589705a409f SHA512 71616981f5a15d6b2a47e18702083e52e81f6547076085b1489f676f50b0cc47c7c2c4fa19cb581e2878dc3d4f7133d0c50d8b51a8390be0e6e30318907d81d3
diff --git a/dev-ml/gmap/gmap-0.3.0-r2.ebuild b/dev-ml/gmap/gmap-0.3.0-r2.ebuild
new file mode 100644
index 0000000000..513c6ad691
--- /dev/null
+++ b/dev-ml/gmap/gmap-0.3.0-r2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Heterogenous Map over a GADT"
+HOMEPAGE="https://github.com/hannesm/gmap"
+SRC_URI="https://github.com/hannesm/gmap/releases/download/${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND=""
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/gmap/metadata.xml b/dev-ml/gmap/metadata.xml
new file mode 100644
index 0000000000..f7c50c5687
--- /dev/null
+++ b/dev-ml/gmap/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ hannesm/gmap
+
+
diff --git a/dev-ml/happy-eyeballs/Manifest b/dev-ml/happy-eyeballs/Manifest
new file mode 100644
index 0000000000..4121de5fda
--- /dev/null
+++ b/dev-ml/happy-eyeballs/Manifest
@@ -0,0 +1 @@
+DIST happy-eyeballs-0.3.0.tar.gz 11378 BLAKE2B 186e3f448ee8f04de79dc48c2f1c6d31218a2d48a5d18377265972a8b2269ba85563ad06d0cf2595812ecacf5f5a7baadaccad6e3f12a9b67ba8e4547e74d271 SHA512 a2c38dd618df585e3de446674e0675668da85fa17c0e285bb174b3d23b38bdedae45e0c740f261d0f4e091a14cd32eb2f2b209a7f8c7f9a957fce18e1dcbf63f
diff --git a/dev-ml/happy-eyeballs/happy-eyeballs-0.3.0.ebuild b/dev-ml/happy-eyeballs/happy-eyeballs-0.3.0.ebuild
new file mode 100644
index 0000000000..b393cd2cc6
--- /dev/null
+++ b/dev-ml/happy-eyeballs/happy-eyeballs-0.3.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="An implementation of happy eyeballs (RFC 8305) in OCaml with lwt"
+HOMEPAGE="https://github.com/roburio/happy-eyeballs"
+SRC_URI="https://github.com/roburio/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="lwt mirage ocamlopt"
+
+RDEPEND="
+ dev-ml/domain-name
+ dev-ml/ipaddr
+ dev-ml/logs
+ dev-ml/fmt
+
+ lwt? (
+ dev-ml/cmdliner
+ dev-ml/mtime
+ dev-ml/lwt
+ dev-ml/dns[client]
+ dev-ml/duration
+ )
+ mirage? (
+ dev-ml/mirage-clock
+ dev-ml/dns[client]
+ dev-ml/lwt
+ dev-ml/tcpip
+ dev-ml/mirage-random
+ dev-ml/mirage-time
+ dev-ml/duration
+ )
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ local pkgs="happy-eyeballs"
+ for u in lwt mirage ; do
+ if use ${u} ; then
+ pkgs="${pkgs},happy-eyeballs-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install happy-eyeballs
+ for u in lwt mirage ; do
+ if use ${u} ; then
+ dune_src_install "happy-eyeballs-${u}"
+ fi
+ done
+}
diff --git a/dev-ml/happy-eyeballs/metadata.xml b/dev-ml/happy-eyeballs/metadata.xml
new file mode 100644
index 0000000000..50a217c443
--- /dev/null
+++ b/dev-ml/happy-eyeballs/metadata.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ roburio/happy-eyeballs
+
+
+
diff --git a/dev-ml/hex/metadata.xml b/dev-ml/hex/metadata.xml
index 83a6dee0de..d343e1f4e1 100644
--- a/dev-ml/hex/metadata.xml
+++ b/dev-ml/hex/metadata.xml
@@ -2,7 +2,7 @@
- co-mainteiners welcome
+ co-maintainers welcome
lssndrbarbieri@gmail.com
Alessandro Barbieri
diff --git a/dev-ml/hkdf/Manifest b/dev-ml/hkdf/Manifest
new file mode 100644
index 0000000000..6b8b755db6
--- /dev/null
+++ b/dev-ml/hkdf/Manifest
@@ -0,0 +1 @@
+DIST hkdf-v1.0.4.tbz 11592 BLAKE2B 5c777f92ac8ad52bbe5c9e2383fa2cb705b793a3fcdedee16c37b69c6c0848b89682e168a9be56d020ab51a7d0195a379d23c23a420874c7fc6772540388c670 SHA512 d08e50857f7761572adc4d382975fde5808898c1d92d9e6e943a496cba8780ffabe1edf67844063b70d9727c0fe10b24391e001a3f65c978a5326ac82199cc88
diff --git a/dev-ml/hkdf/hkdf-1.0.4.ebuild b/dev-ml/hkdf/hkdf-1.0.4.ebuild
new file mode 100644
index 0000000000..abb7bb9ec0
--- /dev/null
+++ b/dev-ml/hkdf/hkdf-1.0.4.ebuild
@@ -0,0 +1,29 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="HMAC-based Extract-and-Expand Key Derivation Function (RFC 5869)"
+HOMEPAGE="https://github.com/hannesm/ocaml-hkdf"
+SRC_URI="https://github.com/hannesm/ocaml-${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/mirage-crypto
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/hkdf/metadata.xml b/dev-ml/hkdf/metadata.xml
new file mode 100644
index 0000000000..78153fde6a
--- /dev/null
+++ b/dev-ml/hkdf/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ hannesm/ocaml-hkdf
+
+
diff --git a/dev-ml/inotify/Manifest b/dev-ml/inotify/Manifest
new file mode 100644
index 0000000000..5968c94622
--- /dev/null
+++ b/dev-ml/inotify/Manifest
@@ -0,0 +1 @@
+DIST inotify-2.3_p20211118.tar.gz 15870 BLAKE2B cd9b80dcf924ef9fd3c4b95e2e105e17dcfb3b4897b9552ac87b4f8d59dc128f76c6aa95bbf2647b2b60577b53abde003391ba05833ce5ddf0ebbb366b608780 SHA512 3ac6b739797a7d2bafcbe007bd467841eeab8ceecc50dc3a71cd24e0d24da846d9166166a45d6b07d9717d3bab649cd1619ebc8964149700522a7082c1b0d3d5
diff --git a/dev-ml/inotify/inotify-2.3_p20211118.ebuild b/dev-ml/inotify/inotify-2.3_p20211118.ebuild
new file mode 100644
index 0000000000..1d4a7544b5
--- /dev/null
+++ b/dev-ml/inotify/inotify-2.3_p20211118.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+COMMIT="b340204c72ae3ff27def6e116c1998485fc3227e"
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="OCaml bindings for inotify"
+HOMEPAGE="https://github.com/whitequark/ocaml-inotify"
+SRC_URI="https://github.com/whitequark/${MYPN}/archive/${COMMIT}.tar.gz -> ${PF}.tar.gz"
+S="${WORKDIR}/${MYPN}-${COMMIT}"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+DEPEND="
+ dev-ml/base-unix
+ dev-ml/base-bytes
+"
+RDEPEND="
+ ${DEPEND}
+ test? (
+ >=dev-ml/ounit-2
+ dev-ml/ocaml-fileutils
+ dev-ml/lwt
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/inotify/metadata.xml b/dev-ml/inotify/metadata.xml
new file mode 100644
index 0000000000..b420263b84
--- /dev/null
+++ b/dev-ml/inotify/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ whitequark/ocaml-inotify
+
+
diff --git a/dev-ml/io-page/io-page-2.2.0.ebuild b/dev-ml/io-page/io-page-2.2.0.ebuild
index 6c0aac10db..dcb8fdb37b 100644
--- a/dev-ml/io-page/io-page-2.2.0.ebuild
+++ b/dev-ml/io-page/io-page-2.2.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
MY_P="${PN}-v${PV}"
@@ -15,14 +15,28 @@ S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test unix"
RDEPEND="
dev-ml/bigarray-compat
dev-ml/cstruct
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/ounit )
+ unix? ( dev-ml/configurator )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( unix )"
+
+src_compile() {
+ local pkgs="io-page"
+ use unix && pkgs="${pkgs},io-page-unix"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
src_install() {
- dune_src_install "io-page io-page-unix io-page-xen"
+ dune_src_install io-page
+ use unix && dune_src_install io-page-unix
}
diff --git a/dev-ml/io-page/io-page-2.4.0.ebuild b/dev-ml/io-page/io-page-2.4.0.ebuild
index 40f2ed73c4..528316a847 100644
--- a/dev-ml/io-page/io-page-2.4.0.ebuild
+++ b/dev-ml/io-page/io-page-2.4.0.ebuild
@@ -5,7 +5,8 @@ EAPI=8
inherit dune
-MY_P=${PN}-v${PV}
+MY_P="${PN}-v${PV}"
+
DESCRIPTION="IO memory page library for Mirage backends"
HOMEPAGE="https://github.com/mirage/io-page"
SRC_URI="https://github.com/mirage/io-page/releases/download/v${PV}/${MY_P}.tbz"
@@ -14,10 +15,16 @@ S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
RDEPEND="
dev-ml/bigarray-compat
dev-ml/cstruct
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/ounit )
+"
+BDEPEND="virtual/pkgconfig"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/io-page/metadata.xml b/dev-ml/io-page/metadata.xml
index 0cf20d003c..8f344f1855 100644
--- a/dev-ml/io-page/metadata.xml
+++ b/dev-ml/io-page/metadata.xml
@@ -9,4 +9,7 @@
mirage/io-page
+
diff --git a/dev-ml/ipaddr/ipaddr-5.3.0.ebuild b/dev-ml/ipaddr/ipaddr-5.3.0.ebuild
index 90f8d2b1ad..3cd8e9e431 100644
--- a/dev-ml/ipaddr/ipaddr-5.3.0.ebuild
+++ b/dev-ml/ipaddr/ipaddr-5.3.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
DESCRIPTION="OCaml library for manipulation of IP (and MAC) address representations"
HOMEPAGE="https://github.com/mirage/ocaml-ipaddr"
@@ -13,21 +13,53 @@ S="${WORKDIR}/ocaml-${P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="cstruct macaddr-cstruct macaddr-sexp ocamlopt sexp test"
RDEPEND="
- dev-ml/cstruct
dev-ml/domain-name
- dev-ml/ppx_sexp_conv
- dev-ml/sexplib0
+ dev-ml/stdlib-shims
+
+ cstruct? ( dev-ml/cstruct )
+ macaddr-cstruct? ( dev-ml/cstruct )
+ macaddr-sexp? (
+ dev-ml/ppx_sexp_conv
+ dev-ml/sexplib0
+ )
+ sexp? (
+ dev-ml/ppx_sexp_conv
+ dev-ml/sexplib0
+ )
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/ounit
+ dev-ml/ppx_sexp_conv
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( cstruct macaddr-cstruct macaddr-sexp sexp )"
+
+src_compile() {
+ local pkgs="ipaddr,macaddr"
+ for u in cstruct sexp ; do
+ if use ${u} ; then
+ pkgs="${pkgs},ipaddr-${u}"
+ fi
+ if use macaddr-${u} ; then
+ pkgs="${pkgs},macaddr-${u}"
+ fi
+ done
+
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
src_install() {
- dune_src_install ipaddr
- dune_src_install ipaddr-cstruct
- dune_src_install ipaddr-sexp
dune_src_install macaddr
- dune_src_install macaddr-cstruct
- dune_src_install macaddr-sexp
+ dune_src_install ipaddr
+ use cstruct && dune_src_install ipaddr-cstruct
+ use sexp && dune_src_install ipaddr-sexp
+ use macaddr-cstruct && dune_src_install macaddr-cstruct
+ use macaddr-sexp && dune_src_install macaddr-sexp
}
diff --git a/dev-ml/ipaddr/metadata.xml b/dev-ml/ipaddr/metadata.xml
index e54521662e..edd708d239 100644
--- a/dev-ml/ipaddr/metadata.xml
+++ b/dev-ml/ipaddr/metadata.xml
@@ -9,4 +9,10 @@
mirage/ocaml-ipaddr
+
diff --git a/dev-ml/js_of_ocaml/js_of_ocaml-4.0.0.ebuild b/dev-ml/js_of_ocaml/js_of_ocaml-4.0.0.ebuild
index 4057ce3fc9..2cf9e6fb60 100644
--- a/dev-ml/js_of_ocaml/js_of_ocaml-4.0.0.ebuild
+++ b/dev-ml/js_of_ocaml/js_of_ocaml-4.0.0.ebuild
@@ -3,7 +3,7 @@
EAPI=7
-inherit dune findlib
+inherit dune findlib multiprocessing
DESCRIPTION="A compiler from OCaml bytecode to javascript"
HOMEPAGE="
@@ -15,23 +15,57 @@ SRC_URI="https://github.com/ocsigen/js_of_ocaml/archive/${PV}.tar.gz -> ${P}.tar
KEYWORDS="~amd64"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
-IUSE="ocamlopt"
+IUSE="lwt ocamlopt ppx ppx-deriving-json test toplevel tyxml"
RDEPEND="
dev-ml/cmdliner
- dev-ml/lwt
dev-ml/menhir
dev-ml/ppxlib
- dev-ml/ppx_expect
- dev-ml/react
- dev-ml/reactiveData
- dev-ml/tyxml
dev-ml/yojson
+
+ lwt? ( dev-ml/lwt )
+ tyxml? (
+ dev-ml/react
+ dev-ml/reactiveData
+ dev-ml/tyxml
+ )
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/re
+ dev-ml/ppx_expect
+ dev-ml/num
+ dev-ml/ppxlib
+ dev-ml/graphics
+ dev-ml/cohttp[lwt-unix]
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ lwt? ( ppx )
+ test? ( lwt ppx ppx-deriving-json toplevel tyxml )
+ toplevel? ( ppx )
+ tyxml? ( ppx )
+"
+
+src_compile() {
+ local pkgs="js_of_ocaml,js_of_ocaml-compiler"
+ for u in lwt ppx ppx-deriving-json toplevel tyxml ; do
+ if use ${u} ; then
+ pkgs="${pkgs},js_of_ocaml-${u//-/_}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
src_install() {
- for p in js_of_ocaml{,-compiler,-lwt,-ppx,-ppx_deriving_json,-toplevel,-tyxml} ; do
- dune_src_install ${p}
+ dune_src_install js_of_ocaml-compiler
+ dune_src_install js_of_ocaml
+ for u in lwt ppx ppx-deriving-json toplevel tyxml ; do
+ if use ${u}; then
+ dune_src_install "js_of_ocaml-${u//-/_}"
+ fi
done
}
diff --git a/dev-ml/js_of_ocaml/metadata.xml b/dev-ml/js_of_ocaml/metadata.xml
index b0fbe5f301..28d8e7f626 100644
--- a/dev-ml/js_of_ocaml/metadata.xml
+++ b/dev-ml/js_of_ocaml/metadata.xml
@@ -9,4 +9,11 @@
ocsigen/js_of_ocaml
+
diff --git a/dev-ml/lru/Manifest b/dev-ml/lru/Manifest
new file mode 100644
index 0000000000..454a6f0402
--- /dev/null
+++ b/dev-ml/lru/Manifest
@@ -0,0 +1 @@
+DIST lru-v0.3.0.tbz 9740 BLAKE2B 555c883f603a3981a5de336e72ef13b177b81499986a3a25a1a21b62fe18297f351ddfc7809759411af8217abfb4452e64061964fb42b67688527472fc868283 SHA512 b4d23089bc73bd5b0bdaa977d6e65982486def1c4fd35a2a24655adb22377692927752de2d8373fc0f751a4ec5cf905546b8754320acb01308ce43fa42288112
diff --git a/dev-ml/lru/lru-0.3.0-r2.ebuild b/dev-ml/lru/lru-0.3.0-r2.ebuild
new file mode 100644
index 0000000000..a8f6321eb4
--- /dev/null
+++ b/dev-ml/lru/lru-0.3.0-r2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Scalable LRU caches for OCaml"
+HOMEPAGE="https://github.com/pqwy/lru"
+SRC_URI="https://github.com/pqwy/lru/releases/download/v${PV}/${PN}-v${PV}.tbz"
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="dev-ml/psq"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/qcheck
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/lru/metadata.xml b/dev-ml/lru/metadata.xml
new file mode 100644
index 0000000000..e7e365d7b1
--- /dev/null
+++ b/dev-ml/lru/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ pqwy/lru
+
+
diff --git a/dev-ml/lwt-dllist/lwt-dllist-1.0.1.ebuild b/dev-ml/lwt-dllist/lwt-dllist-1.0.1.ebuild
index 9cd969b207..4fe6f535af 100644
--- a/dev-ml/lwt-dllist/lwt-dllist-1.0.1.ebuild
+++ b/dev-ml/lwt-dllist/lwt-dllist-1.0.1.ebuild
@@ -13,7 +13,12 @@ S="${WORKDIR}/${PN}-v${PV}"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
-DEPEND=""
-RDEPEND="${DEPEND}"
+RDEPEND=""
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/lwt )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/magic-mime/Manifest b/dev-ml/magic-mime/Manifest
new file mode 100644
index 0000000000..c40294b144
--- /dev/null
+++ b/dev-ml/magic-mime/Manifest
@@ -0,0 +1 @@
+DIST magic-mime-1.2.0.tar.gz 13234 BLAKE2B ca86dff6d69777ffa6b4b13235691437d8352c937f6aa157a44cccd66b9c47ccdd9538f4fb236d87f4d7432eeedcc697187f1aa54925a55acadafc7f60258d52 SHA512 70bef663f8cff23d1c9eaf479493309d5eb9c9cec0988eda610025d8c547f778702137c58c39d16a512c3b70034baa67556d4745606d29a003dff4aaf89b0bd9
diff --git a/dev-ml/magic-mime/magic-mime-1.2.0.ebuild b/dev-ml/magic-mime/magic-mime-1.2.0.ebuild
new file mode 100644
index 0000000000..60c6cbd896
--- /dev/null
+++ b/dev-ml/magic-mime/magic-mime-1.2.0.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="Convert file extensions to MIME types"
+HOMEPAGE="https://github.com/mirage/ocaml-magic-mime"
+SRC_URI="https://github.com/mirage/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
diff --git a/dev-ml/magic-mime/metadata.xml b/dev-ml/magic-mime/metadata.xml
new file mode 100644
index 0000000000..42a4f93bd9
--- /dev/null
+++ b/dev-ml/magic-mime/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-magic-mime
+
+
diff --git a/dev-ml/metrics/Manifest b/dev-ml/metrics/Manifest
new file mode 100644
index 0000000000..1e0e9fa6ca
--- /dev/null
+++ b/dev-ml/metrics/Manifest
@@ -0,0 +1 @@
+DIST metrics-0.2.0.tbz 18159 BLAKE2B d480c9c9bd6600748bbe747ef3a10909cfc3e0d65039eadc28c6bc065d6bc1739833bcd3093ae146630a38168cb27df0484f7d6942a53a51f220a43aeebc22f6 SHA512 3f1a6cfbcc674409a7382446084c11c3646e6b380e4972306334e7fa0e558d256dadfd39f7f3acd32afffe78757f66ecefc1b7960ae366afe09397ba0bbdaf68
diff --git a/dev-ml/metrics/metadata.xml b/dev-ml/metrics/metadata.xml
new file mode 100644
index 0000000000..4e8d5310f2
--- /dev/null
+++ b/dev-ml/metrics/metadata.xml
@@ -0,0 +1,18 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/metrics
+
+
+
diff --git a/dev-ml/metrics/metrics-0.2.0.ebuild b/dev-ml/metrics/metrics-0.2.0.ebuild
new file mode 100644
index 0000000000..8570938e4e
--- /dev/null
+++ b/dev-ml/metrics/metrics-0.2.0.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Infrastructure to collect metrics from OCaml applications"
+HOMEPAGE="https://github.com/mirage/metrics"
+SRC_URI="https://github.com/mirage/metrics/releases/download/${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="influx lwt ocamlopt rusage test unix"
+
+RDEPEND="
+ dev-ml/fmt
+ influx? (
+ dev-ml/duration
+ dev-ml/lwt
+ )
+ lwt? (
+ dev-ml/lwt
+ dev-ml/logs
+ )
+ rusage? ( dev-ml/logs )
+ unix? (
+ dev-ml/uuidm
+ dev-ml/mtime
+ sci-visualization/gnuplot
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( lwt unix )"
+
+src_compile() {
+ local pkgs="metrics"
+ for u in influx lwt unix rusage ; do
+ if use ${u} ; then
+ pkgs="${pkgs},metrics-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install metrics
+ use influx && dune_src_install metrics-influx
+ use lwt && dune_src_install metrics-lwt
+ use rusage && dune_src_install metrics-rusage
+ use unix && dune_src_install metrics-unix
+}
diff --git a/dev-ml/mirage-block-unix/Manifest b/dev-ml/mirage-block-unix/Manifest
new file mode 100644
index 0000000000..f766799d84
--- /dev/null
+++ b/dev-ml/mirage-block-unix/Manifest
@@ -0,0 +1 @@
+DIST mirage-block-unix-2.14.0.tar.gz 23692 BLAKE2B 398e6c0c1a3d48d47aa9dd8a990c537c8afb6e4979867cf3b6ab67c66f06855995a25f0ed4b5b00ac2069a891ba416ab1d776e2699623262952f0154baa8b0d8 SHA512 6c6a98670f0c5763cbff027308df97456af975b572dbc20a64f8410e48f7d5b4ad08007aa33d7020203a7f0f060c06b4b2a17461abb909d3561cccd5ef7421ab
diff --git a/dev-ml/mirage-block-unix/metadata.xml b/dev-ml/mirage-block-unix/metadata.xml
new file mode 100644
index 0000000000..e0c0fc9945
--- /dev/null
+++ b/dev-ml/mirage-block-unix/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-block-unix
+
+
diff --git a/dev-ml/mirage-block-unix/mirage-block-unix-2.14.0.ebuild b/dev-ml/mirage-block-unix/mirage-block-unix-2.14.0.ebuild
new file mode 100644
index 0000000000..6ef1150c25
--- /dev/null
+++ b/dev-ml/mirage-block-unix/mirage-block-unix-2.14.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Unix implementation of the Mirage_types.BLOCK interface"
+HOMEPAGE="https://github.com/mirage/mirage-block-unix"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct[lwt]
+ dev-ml/lwt
+ dev-ml/mirage-block
+ dev-ml/rresult
+ dev-ml/uri
+ dev-ml/logs
+ dev-ml/io-page
+
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/fmt
+ >=dev-ml/ounit-2
+ dev-ml/diet
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/mirage-block/Manifest b/dev-ml/mirage-block/Manifest
new file mode 100644
index 0000000000..e9e5cfc399
--- /dev/null
+++ b/dev-ml/mirage-block/Manifest
@@ -0,0 +1 @@
+DIST mirage-block-3.0.0.tar.gz 9920 BLAKE2B e35702a2a363117270c9d6f637d509c8a5f236535018907d47ea1d5a83dc5efbb8eddbb4b9562ce3b6b991197abfbd83b4c6c8679fddee034037465586842192 SHA512 e8580ac754a2d5e90dfb0fa5c0709014bdcd5c76c818ab5f471392d218e5cd8cfe4de8d5cebfdb713cedc3b1ecf50541818d9d835a99a5dd6636ba7fc15a0958
diff --git a/dev-ml/mirage-block/metadata.xml b/dev-ml/mirage-block/metadata.xml
new file mode 100644
index 0000000000..f1b9cef231
--- /dev/null
+++ b/dev-ml/mirage-block/metadata.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-block
+
+
+
diff --git a/dev-ml/mirage-block/mirage-block-3.0.0.ebuild b/dev-ml/mirage-block/mirage-block-3.0.0.ebuild
new file mode 100644
index 0000000000..89393a9bd8
--- /dev/null
+++ b/dev-ml/mirage-block/mirage-block-3.0.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Block implementations for mirage"
+HOMEPAGE="https://github.com/mirage/mirage-block"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="combinators ocamlopt"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/lwt
+ dev-ml/fmt
+
+ combinators? (
+ dev-ml/io-page
+ dev-ml/logs
+ )
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ local pkgs="mirage-block"
+ use combinators && pkgs="${pkgs},mirage-block-combinators"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install mirage-block
+ use combinators && dune_src_install mirage-block-combinators
+}
diff --git a/dev-ml/mirage-channel/Manifest b/dev-ml/mirage-channel/Manifest
new file mode 100644
index 0000000000..91a6a024ca
--- /dev/null
+++ b/dev-ml/mirage-channel/Manifest
@@ -0,0 +1 @@
+DIST mirage-channel-4.1.0.tar.gz 8219 BLAKE2B 946d012d286d550ba5cae9c91bccb0b1cefedf61fae0787c19424e1e089d37bd0a67c1fb69067ecc2f73b5869c498639460027afdaa2eb66b064ca776512fe47 SHA512 92130890acfcbc2ab1c4882259b10e2ac6d608c9ed1bb7e98d1356b1239e0518790829e295c1d14f34a5621640f0fa41b732945e66f98a47dadab53b142461ec
diff --git a/dev-ml/mirage-channel/metadata.xml b/dev-ml/mirage-channel/metadata.xml
new file mode 100644
index 0000000000..fa66e57c18
--- /dev/null
+++ b/dev-ml/mirage-channel/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-channel
+
+
diff --git a/dev-ml/mirage-channel/mirage-channel-4.1.0.ebuild b/dev-ml/mirage-channel/mirage-channel-4.1.0.ebuild
new file mode 100644
index 0000000000..5b7981845b
--- /dev/null
+++ b/dev-ml/mirage-channel/mirage-channel-4.1.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="An implementation of channels using page-aligned memory"
+HOMEPAGE="https://github.com/mirage/mirage-time"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/logs
+ dev-ml/lwt
+ dev-ml/mirage-flow
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/mirage-crypto/Manifest b/dev-ml/mirage-crypto/Manifest
new file mode 100644
index 0000000000..bda186885e
--- /dev/null
+++ b/dev-ml/mirage-crypto/Manifest
@@ -0,0 +1 @@
+DIST mirage-crypto-v0.10.1.tbz 1200115 BLAKE2B 4a7557adb0e16834a6e298fb52f40b85e67cde44fdc04607dfd46a8a29a1957e1a61bfcec1c35f80477e1319dc2fe850fc65aac3c07ba9b706e6cfdec563a0e6 SHA512 08ba60ae7cc0e0c77b4d71fa05241bfd2e47bfb907cf7e1a4f6bd8bf62854ee82becd2f4e65eade1a01b58d91fb33829f4f69b39e8910df9cfeaa87c933a336d
diff --git a/dev-ml/mirage-crypto/metadata.xml b/dev-ml/mirage-crypto/metadata.xml
new file mode 100644
index 0000000000..e05bee98be
--- /dev/null
+++ b/dev-ml/mirage-crypto/metadata.xml
@@ -0,0 +1,19 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-crypto
+
+
+
diff --git a/dev-ml/mirage-crypto/mirage-crypto-0.10.1.ebuild b/dev-ml/mirage-crypto/mirage-crypto-0.10.1.ebuild
new file mode 100644
index 0000000000..3b71217ebf
--- /dev/null
+++ b/dev-ml/mirage-crypto/mirage-crypto-0.10.1.ebuild
@@ -0,0 +1,85 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Simple symmetric cryptography for the modern age"
+HOMEPAGE="https://github.com/mirage/mirage-crypto"
+SRC_URI="https://github.com/mirage/mirage-crypto/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ec ocamlopt pk rng rng-async rng-mirage test"
+
+DEPEND="
+ dev-ml/cstruct
+ dev-ml/dune-configurator
+ dev-ml/eqaf
+
+ pk? (
+ dev-libs/gmp
+ dev-ml/mirage
+ dev-ml/sexplib0
+ dev-ml/zarith
+ )
+ rng? (
+ dev-ml/duration
+ dev-ml/logs
+ )
+ rng-async? ( dev-ml/async )
+ rng-mirage? (
+ dev-ml/lwt
+ dev-ml/mirage
+ dev-ml/mirage-clock
+ dev-ml/mirage-time[unix]
+ dev-ml/mirage-unix
+ )
+"
+RDEPEND="
+ ${DEPEND}
+ test? (
+ >=dev-ml/ounit-2
+ dev-ml/randomconv
+ dev-ml/hex
+ dev-ml/asn1-combinators
+ dev-ml/ppx_deriving
+ dev-ml/ppx_deriving_yojson
+ dev-ml/yojson
+ dev-ml/alcotest
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ test? ( ec pk rng )
+ ec? ( rng )
+ pk? ( rng )
+ rng-async? ( rng )
+ rng-mirage? ( rng )
+"
+
+src_compile() {
+ local pkgs="mirage-crypto"
+ for u in rng rng-async rng-mirage pk ec ; do
+ if use ${u} ; then
+ pkgs="${pkgs},mirage-crypto-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install mirage-crypto
+ use rng && dune_src_install mirage-crypto-rng
+ use ec && dune_src_install mirage-crypto-ec
+ use pk && dune_src_install mirage-crypto-pk
+ use rng-async && dune_src_install mirage-crypto-rng-async
+ use rng-mirage && dune_src_install mirage-crypto-rng-mirage
+}
diff --git a/dev-ml/mirage-flow/Manifest b/dev-ml/mirage-flow/Manifest
new file mode 100644
index 0000000000..c2479cfbf8
--- /dev/null
+++ b/dev-ml/mirage-flow/Manifest
@@ -0,0 +1 @@
+DIST mirage-flow-3.0.0.tar.gz 11463 BLAKE2B 7d2060516b9de854567818dd1ab037d0b90d8e405a7e33ef6eca4ef6dba0c1d5520ce45083d1a7b245e04b5a697622bd53e4cf3a6bbc65ad6a31197b44178aa6 SHA512 0397bf5a1bea5ae91c498fe0a56f5b5e863b59709938bca91ae75c998435a221199ffb9a26ab06bf238fce0a34e06a3c3f3794bca5ad9d95114eca03b5ff7e8c
diff --git a/dev-ml/mirage-flow/metadata.xml b/dev-ml/mirage-flow/metadata.xml
new file mode 100644
index 0000000000..c94d178337
--- /dev/null
+++ b/dev-ml/mirage-flow/metadata.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-flow
+
+
+
diff --git a/dev-ml/mirage-flow/mirage-flow-3.0.0.ebuild b/dev-ml/mirage-flow/mirage-flow-3.0.0.ebuild
new file mode 100644
index 0000000000..81747855f1
--- /dev/null
+++ b/dev-ml/mirage-flow/mirage-flow-3.0.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Flow implementations for Mirage"
+HOMEPAGE="https://github.com/mirage/mirage-flow"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="combinators ocamlopt test unix"
+
+RDEPEND="
+ combinators? ( dev-ml/mirage-clock )
+ dev-ml/cstruct
+ dev-ml/fmt
+ dev-ml/logs
+ dev-ml/lwt
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+REQUIRED_USE="test? ( combinators unix )"
+RESTRICT="!test? ( test )"
+
+src_compile() {
+ local pkgs="mirage-flow"
+ for u in combinators unix ; do
+ if use ${u} ; then
+ pkgs="${pkgs},mirage-flow-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install mirage-flow
+ use combinators && dune_src_install mirage-flow-combinators
+ use unix && dune_src_install mirage-flow-unix
+}
diff --git a/dev-ml/mirage-kv/Manifest b/dev-ml/mirage-kv/Manifest
new file mode 100644
index 0000000000..f62a4df364
--- /dev/null
+++ b/dev-ml/mirage-kv/Manifest
@@ -0,0 +1 @@
+DIST mirage-kv-4.0.1.tar.gz 6043 BLAKE2B 5b98347bca279f5ab263308538a75fc1ef72b1e44abae8ad7f36c119ac1e1867c4b36ed58c8dd52cc70b26c101ddda623cfe41d59e7570b585ca3643fae75080 SHA512 16fba72945026cebdd655d1e49b3d86214c29761a573131ad40d5283e796327951dc16cc2853d3d40f5ed5923ad81e7d0393a20d68ba66bb8f9c47eae0a030b0
diff --git a/dev-ml/mirage-kv/metadata.xml b/dev-ml/mirage-kv/metadata.xml
new file mode 100644
index 0000000000..69b772df1c
--- /dev/null
+++ b/dev-ml/mirage-kv/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-kv
+
+
diff --git a/dev-ml/mirage-kv/mirage-kv-4.0.1.ebuild b/dev-ml/mirage-kv/mirage-kv-4.0.1.ebuild
new file mode 100644
index 0000000000..7c2005726e
--- /dev/null
+++ b/dev-ml/mirage-kv/mirage-kv-4.0.1.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="MirageOS signature for key/value stores"
+HOMEPAGE="https://github.com/mirage/mirage-time"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/fmt
+ dev-ml/lwt
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/mirage-net/Manifest b/dev-ml/mirage-net/Manifest
new file mode 100644
index 0000000000..5256306e4d
--- /dev/null
+++ b/dev-ml/mirage-net/Manifest
@@ -0,0 +1 @@
+DIST mirage-net-v4.0.0.tbz 3935 BLAKE2B f41dfd68d98048bd98baa6251ca91f7d7a21bfa4b7055bc93be8b51127131375a29f4294b0b5f6058dd34038c40afcc638a9ac4e3b25cb5fc94238aa959370c4 SHA512 52064dc704ebd0d305fd234b6d89fc313d5a80016d8875ef93212a1962ad8b1f332f7b0338244afbb2d2f207a28d476e7d7639be9dc607d95145afee7fccc483
diff --git a/dev-ml/mirage-net/metadata.xml b/dev-ml/mirage-net/metadata.xml
new file mode 100644
index 0000000000..dae051bbbf
--- /dev/null
+++ b/dev-ml/mirage-net/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-net
+
+
diff --git a/dev-ml/mirage-net/mirage-net-4.0.0.ebuild b/dev-ml/mirage-net/mirage-net-4.0.0.ebuild
new file mode 100644
index 0000000000..f9d83337c8
--- /dev/null
+++ b/dev-ml/mirage-net/mirage-net-4.0.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Network devices for MirageOS"
+HOMEPAGE="https://github.com/mirage/mirage-net"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/fmt
+ dev-ml/ipaddr
+ dev-ml/lwt
+ >=dev-ml/cstruct-4.0.0
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/mirage-profile/metadata.xml b/dev-ml/mirage-profile/metadata.xml
index 7f44c78f27..d19645d326 100644
--- a/dev-ml/mirage-profile/metadata.xml
+++ b/dev-ml/mirage-profile/metadata.xml
@@ -9,6 +9,7 @@
mirage/mirage-profile
diff --git a/dev-ml/mirage-profile/mirage-profile-0.9.1.ebuild b/dev-ml/mirage-profile/mirage-profile-0.9.1.ebuild
index b5f8080af1..341d92f632 100644
--- a/dev-ml/mirage-profile/mirage-profile-0.9.1.ebuild
+++ b/dev-ml/mirage-profile/mirage-profile-0.9.1.ebuild
@@ -13,27 +13,35 @@ S="${WORKDIR}/mirage-profile-${PV}"
LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt xen"
+IUSE="ocamlopt unix" # xen
RDEPEND="
- dev-ml/mtime
- dev-ml/io-page
+ dev-ml/cstruct
+ dev-ml/lwt
dev-ml/ocplib-endian
- xen? (
- dev-ml/mirage-xen
- dev-ml/xenstore
- )
+ unix? ( dev-ml/mtime )
+"
+# xen? (
+# dev-ml/io-page[xen]
+# dev-ml/mirage-xen
+# dev-ml/mirage-xen-minios
+# dev-ml/xenstore
+# )
+DEPEND="
+ ${RDEPEND}
+ dev-ml/cstruct[ppx]
"
-DEPEND="${RDEPEND}"
src_compile() {
- local pkgs="mirage-profile-unix,mirage-profile"
- use xen && pkgs="${pkgs},mirage-profile-xen"
- dune build --only-packages "${pkgs}" -j $(makeopts_jobs) --profile release || die
+ local pkgs="mirage-profile"
+# use xen && pkgs="${pkgs},mirage-profile-xen"
+ use unix && pkgs="${pkgs},mirage-profile-unix"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
}
src_install() {
- dune_src_install mirage-profile mirage-profile-unix
- use xen && dune_src_install mirage-profile-xen
+ dune_src_install mirage-profile
+ use unix && dune_src_install mirage-profile-unix
+# use xen && dune_src_install mirage-profile-xen
}
diff --git a/dev-ml/mirage-random-test/Manifest b/dev-ml/mirage-random-test/Manifest
new file mode 100644
index 0000000000..3cc8765d96
--- /dev/null
+++ b/dev-ml/mirage-random-test/Manifest
@@ -0,0 +1 @@
+DIST mirage-random-test-v0.1.0.tbz 2187 BLAKE2B 89547b5d14f37d6cbc0410b9ff66d29a23074664002e9ba3c7eb2641c9d6e30ce7fdbc92b38684c6523bcfb60e089dff91a60b8378cd637c3d05525a35450ae2 SHA512 8c155111d0a9b9f5b557597b250ea4a53b84eb6e9f3f50e9a47092c8844c7de08857ddfd078b5237f7e7d097da4f3a4bc8d704fa577bacd1c9150550503e5dd2
diff --git a/dev-ml/mirage-random-test/metadata.xml b/dev-ml/mirage-random-test/metadata.xml
new file mode 100644
index 0000000000..f71fbc3cbb
--- /dev/null
+++ b/dev-ml/mirage-random-test/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-random-test
+
+
diff --git a/dev-ml/mirage-random-test/mirage-random-test-0.1.0.ebuild b/dev-ml/mirage-random-test/mirage-random-test-0.1.0.ebuild
new file mode 100644
index 0000000000..ee179da91d
--- /dev/null
+++ b/dev-ml/mirage-random-test/mirage-random-test-0.1.0.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="A stub implementation providing the Mirage_random.C interface for testing"
+HOMEPAGE="https://github.com/mirage/mirage-random-test"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/mirage-random
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/mirage-random/Manifest b/dev-ml/mirage-random/Manifest
new file mode 100644
index 0000000000..ef33bda990
--- /dev/null
+++ b/dev-ml/mirage-random/Manifest
@@ -0,0 +1 @@
+DIST mirage-random-v3.0.0.tbz 2254 BLAKE2B 0c3033e97d38d1b5cc1135f31c96f20d236aa90e91755de9680d22c749ff0a589c3945f0b6a6670be9fc907065fc5709f862ffea125d879f1b9a5004754968da SHA512 5d16855740e04f8efe5bcd5a7596ccffb5b927a616c5e6de4a5f5bd96e2f9f8f3b030d8b216156cac897d49a64b0f5bd7f89c30c787c3d9be63ab952c9984160
diff --git a/dev-ml/mirage-random/metadata.xml b/dev-ml/mirage-random/metadata.xml
new file mode 100644
index 0000000000..dd61869c6c
--- /dev/null
+++ b/dev-ml/mirage-random/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-random
+
+
diff --git a/dev-ml/mirage-random/mirage-random-3.0.0.ebuild b/dev-ml/mirage-random/mirage-random-3.0.0.ebuild
new file mode 100644
index 0000000000..dec9d49d0a
--- /dev/null
+++ b/dev-ml/mirage-random/mirage-random-3.0.0.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Random-related devices for MirageOS"
+HOMEPAGE="https://github.com/mirage/mirage-random"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+DEPEND="dev-ml/cstruct"
+RDEPEND="${DEPEND}"
diff --git a/dev-ml/mirage-time/Manifest b/dev-ml/mirage-time/Manifest
new file mode 100644
index 0000000000..2dcef863a4
--- /dev/null
+++ b/dev-ml/mirage-time/Manifest
@@ -0,0 +1 @@
+DIST mirage-time-3.0.0.tar.gz 2710 BLAKE2B 0dbdfe1e995a5e297e1ed23d704ffc2fdad6cf958420cd5ff98bb440d1e03606c543a3401fdfb288a7ddb34fcec6ab2c2ae4172ac9294bb33bc00fb3a3b85b8c SHA512 a3b72b1bbc7d5794e33a1fffab0808be1b4e89a722e9ceab88fe615ea5d3921c256f1ddfa8962f80e0c8d4eea0b11df95c03248d4a47709be4e7a000659ac51e
diff --git a/dev-ml/mirage-time/metadata.xml b/dev-ml/mirage-time/metadata.xml
new file mode 100644
index 0000000000..a721ce060b
--- /dev/null
+++ b/dev-ml/mirage-time/metadata.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-time
+
+
+
diff --git a/dev-ml/mirage-time/mirage-time-3.0.0.ebuild b/dev-ml/mirage-time/mirage-time-3.0.0.ebuild
new file mode 100644
index 0000000000..bd650d930a
--- /dev/null
+++ b/dev-ml/mirage-time/mirage-time-3.0.0.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Time signatures for MirageOS"
+HOMEPAGE="https://github.com/mirage/mirage-time"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt unix"
+
+RDEPEND="
+ dev-ml/lwt
+ unix? ( dev-ml/duration )
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ local pkgs="mirage-time"
+ use unix && pkgs="${pkgs},mirage-time-unix"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install mirage-time
+ use unix && dune_src_install mirage-time-unix
+}
diff --git a/dev-ml/mirage-unix/Manifest b/dev-ml/mirage-unix/Manifest
new file mode 100644
index 0000000000..ad93efac95
--- /dev/null
+++ b/dev-ml/mirage-unix/Manifest
@@ -0,0 +1 @@
+DIST mirage-unix-v5.0.0.tar.gz 9801 BLAKE2B c34426db046b5578f2f9130c16a5fbcf93f5c79b76da7009836d96c6476a3f4fb5e2de25ff8a595cbddb6f61527a9140322afefd1de978888fe8731434bd9907 SHA512 5ca5dc54d9e3eac5b94f59d44b70eb89b3595fb0d09368b8f9fe64f97837bc6675c9319993bde21210dec04806e6f73f0c0a93e7f183b1508941d9844c1ab5d3
diff --git a/dev-ml/mirage-unix/metadata.xml b/dev-ml/mirage-unix/metadata.xml
new file mode 100644
index 0000000000..e213abe988
--- /dev/null
+++ b/dev-ml/mirage-unix/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-unix
+
+
diff --git a/dev-ml/mirage-unix/mirage-unix-5.0.0.ebuild b/dev-ml/mirage-unix/mirage-unix-5.0.0.ebuild
new file mode 100644
index 0000000000..c40ec29f22
--- /dev/null
+++ b/dev-ml/mirage-unix/mirage-unix-5.0.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYP="${PN}-v${PV}"
+
+DESCRIPTION="Unix core platform libraries for MirageOS"
+HOMEPAGE="https://github.com/mirage/mirage-unix"
+SRC_URI="https://github.com/mirage/${PN}/archive/v${PV}.tar.gz -> ${MYP}.tar.gz"
+S="${WORKDIR}/${MYP}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/duration
+ dev-ml/io-page
+ dev-ml/lwt
+ dev-ml/mirage
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/mirage-vnetif/Manifest b/dev-ml/mirage-vnetif/Manifest
new file mode 100644
index 0000000000..1d08c3b65d
--- /dev/null
+++ b/dev-ml/mirage-vnetif/Manifest
@@ -0,0 +1 @@
+DIST mirage-vnetif-0.6.0.tbz 11787 BLAKE2B 62cace0cc86cb0e167b7604c592907cfc73efbfdb97b82cbdc7957f8c689717df0ae80f6c2a1579d8e11e749f50b5c92ca847d99ca22539df84cf2672191993d SHA512 c3202e2e2d5025d8f71fab8aea60495ad7b2f864d1bee6e0909cde088a8a080305279537b3f412ea3050dc35b4e39ce224e34a0c6b944f80c7d28a524ef56111
diff --git a/dev-ml/mirage-vnetif/metadata.xml b/dev-ml/mirage-vnetif/metadata.xml
new file mode 100644
index 0000000000..6d156933bb
--- /dev/null
+++ b/dev-ml/mirage-vnetif/metadata.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-vnetif
+
+
+
diff --git a/dev-ml/mirage-vnetif/mirage-vnetif-0.6.0.ebuild b/dev-ml/mirage-vnetif/mirage-vnetif-0.6.0.ebuild
new file mode 100644
index 0000000000..5bf9f7f539
--- /dev/null
+++ b/dev-ml/mirage-vnetif/mirage-vnetif-0.6.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Virtual network interface and software bridge for Mirage"
+HOMEPAGE="https://github.com/mirage/mirage-vnetif"
+SRC_URI="https://github.com/mirage/${PN}/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt stack test"
+
+RDEPEND="
+ dev-ml/result
+ dev-ml/lwt
+ dev-ml/mirage-net
+ dev-ml/cstruct
+ dev-ml/ipaddr
+ dev-ml/mirage-profile
+ dev-ml/duration
+ dev-ml/logs
+
+ stack? (
+ dev-ml/mirage-time
+ dev-ml/mirage-clock
+ dev-ml/mirage-random
+ dev-ml/tcpip
+ dev-ml/ethernet
+ dev-ml/arp
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/mirage-random-test
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( stack )"
+
+src_compile() {
+ local pkgs="mirage-vnetif"
+ use stack && pkgs="${pkgs},mirage-vnetif-stack"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install mirage-vnetif
+ use stack && dune_src_install mirage-vnetif-stack
+}
diff --git a/dev-ml/mirage/mirage-4.0.0.ebuild b/dev-ml/mirage/mirage-4.0.0.ebuild
index f8f71c5388..c92432695a 100644
--- a/dev-ml/mirage/mirage-4.0.0.ebuild
+++ b/dev-ml/mirage/mirage-4.0.0.ebuild
@@ -18,17 +18,17 @@ KEYWORDS="~amd64"
IUSE="ocamlopt"
RDEPEND="
- dev-ml/ipaddr
- dev-ml/bos
- dev-ml/astring
- dev-ml/logs
- dev-ml/lwt
- dev-ml/emile
- dev-ml/cmdliner
- dev-ml/base
- dev-ml/result
- dev-ml/rresult
- dev-ml/uri
+ dev-ml/ipaddr:=
+ dev-ml/bos:=
+ dev-ml/astring:=
+ dev-ml/logs:=
+ dev-ml/lwt:=
+ dev-ml/emile:=
+ >=dev-ml/cmdliner-1.1.1:=
+ dev-ml/base:=
+ dev-ml/result:=
+ dev-ml/rresult:=
+ dev-ml/uri:=
"
DEPEND="${RDEPEND}"
diff --git a/dev-ml/mustache/Manifest b/dev-ml/mustache/Manifest
new file mode 100644
index 0000000000..c2b5418f03
--- /dev/null
+++ b/dev-ml/mustache/Manifest
@@ -0,0 +1 @@
+DIST mustache-3.1.0.tar.gz 21162 BLAKE2B 6a0d54414ac0154d85023a02e9f2e6f256edb528392a89024566a8903b3d80beaa1ccf0d78af523a3c186f0ca09175848579564fcbc7c847ed7491fc527a46bf SHA512 00657c9a5a5bd07ffc2922e4e35b66e07d2da111c6a9f2d2410dda933d99c436ff93a051d1ce8b76257ae6c8d45589a223f76521ab9d3621353f696f13188503
diff --git a/dev-ml/mustache/metadata.xml b/dev-ml/mustache/metadata.xml
new file mode 100644
index 0000000000..97dc892423
--- /dev/null
+++ b/dev-ml/mustache/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ rgrinberg/ocaml-mustache
+
+
diff --git a/dev-ml/mustache/mustache-3.1.0.ebuild b/dev-ml/mustache/mustache-3.1.0.ebuild
new file mode 100644
index 0000000000..afd8eea783
--- /dev/null
+++ b/dev-ml/mustache/mustache-3.1.0.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="mustache.js logic-less templates in OCaml"
+HOMEPAGE="https://github.com/rgrinberg/ocaml-mustache"
+SRC_URI="https://github.com/rgrinberg/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+DEPEND="
+ dev-ml/jsonm
+ dev-ml/menhir
+ dev-ml/cmdliner
+"
+RDEPEND="
+ ${DEPEND}
+ test? (
+ dev-ml/ounit
+ dev-ml/ezjsonm
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/nbd/Manifest b/dev-ml/nbd/Manifest
new file mode 100644
index 0000000000..f3c31ffc7f
--- /dev/null
+++ b/dev-ml/nbd/Manifest
@@ -0,0 +1 @@
+DIST nbd-5.0.0.tar.gz 45288 BLAKE2B 783f54a633693315493d4e6edfb900aa885a41e0233514f75dde4658f9e60bfa9a076d3c314e83987f98d41ef7b632e79d2527389d6e1232c8488fb8454a6528 SHA512 33bece2c02666b39ab671ea5ae3425780deaa542ae135d01a7c5f9c4020a0e3953a4811cc1cfc2d02bed4d143d469d8425f5c9bf0b6df4bc444c3326826f129f
diff --git a/dev-ml/nbd/metadata.xml b/dev-ml/nbd/metadata.xml
new file mode 100644
index 0000000000..560dfe8550
--- /dev/null
+++ b/dev-ml/nbd/metadata.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ xapi-project/nbd
+
+
+
diff --git a/dev-ml/nbd/nbd-5.0.0.ebuild b/dev-ml/nbd/nbd-5.0.0.ebuild
new file mode 100644
index 0000000000..6885181656
--- /dev/null
+++ b/dev-ml/nbd/nbd-5.0.0.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="Ocaml NBD library"
+HOMEPAGE="https://github.com/xapi-project/nbd"
+SRC_URI="https://github.com/xapi-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test tool unix"
+
+RDEPEND="
+ dev-ml/cstruct[ppx]
+ dev-ml/io-page
+ dev-ml/mirage-block-unix
+ dev-ml/lwt
+ dev-ml/lwt_log
+ dev-ml/ppx_sexp_conv
+ dev-ml/rresult
+ dev-ml/sexplib
+ dev-ml/uri
+
+ tool? ( dev-ml/cmdliner )
+ unix? (
+ dev-ml/cstruct[lwt]
+ dev-ml/io-page[unix(-)]
+ dev-ml/lwt_ssl
+ dev-ml/ocaml-ssl
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ app-emulation/qemu
+ dev-ml/alcotest
+ dev-ml/io-page[unix(-)]
+ sys-block/nbd
+ || ( net-analyzer/openbsd-netcat net-analyzer/nmap[ncat] )
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ tool? ( unix )
+ test? ( tool )
+"
+
+src_compile() {
+ local pkgs="nbd"
+ for u in tool unix ; do
+ if use ${u} ; then
+ pkgs="${pkgs},nbd-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install nbd
+ use tool && dune_src_install nbd-tool
+ use unix && dune_src_install nbd-unix
+}
diff --git a/dev-ml/netlink/Manifest b/dev-ml/netlink/Manifest
new file mode 100644
index 0000000000..3d0c34713c
--- /dev/null
+++ b/dev-ml/netlink/Manifest
@@ -0,0 +1 @@
+DIST netlink-0.3.4.tar.gz 3508 BLAKE2B 778b2fea7252b03526715ef0ad400322c0d61ffcf56964f1c4e187af6dd85b5b9dfc9b66ffcb5b1ebf537b99e97bd42bde8a3e24f3b6ac5c932173c1957fae7b SHA512 fd68eaa52acaca3a044692141b1fef12db86a408f4f517c92b3d2717c2d1d98081686f7b80557b9b5653fbd78ee7b2c4c9415e65dce48b82e7818057e9af790a
diff --git a/dev-ml/netlink/metadata.xml b/dev-ml/netlink/metadata.xml
new file mode 100644
index 0000000000..1b255a1433
--- /dev/null
+++ b/dev-ml/netlink/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ xapi-project/ocaml-netlink
+
+
diff --git a/dev-ml/netlink/netlink-0.3.4.ebuild b/dev-ml/netlink/netlink-0.3.4.ebuild
new file mode 100644
index 0000000000..a1f6b6e827
--- /dev/null
+++ b/dev-ml/netlink/netlink-0.3.4.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="OCaml bindings to libnl"
+HOMEPAGE="https://github.com/xapi-project/ocaml-netlink"
+SRC_URI="https://github.com/xapi-project/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+DEPEND="
+ dev-libs/libnl:3
+ dev-ml/ocaml-ctypes
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-ml/ocaml_intrinsics/Manifest b/dev-ml/ocaml_intrinsics/Manifest
new file mode 100644
index 0000000000..03876f324c
--- /dev/null
+++ b/dev-ml/ocaml_intrinsics/Manifest
@@ -0,0 +1 @@
+DIST ocaml_intrinsics-0.15.0.tar.gz 24893 BLAKE2B 8cdefcb4f6ad3ea676dd9da417c41c0aff8cc6f3e55ca5ca72be52eb95fc1962093ad73c603e3b0beb0df681c120ca555ed9fdc8a0746f308522fafb4bcd665a SHA512 dff2fc6f1df71891fcc781e9a0b3b57c76834e3b82aca362ade86a639290a7a03d86be17bda60d862ad1ac20ea628792d60651277070b81c995d1d5a079914e1
diff --git a/dev-ml/ocaml_intrinsics/metadata.xml b/dev-ml/ocaml_intrinsics/metadata.xml
new file mode 100644
index 0000000000..d9584e431e
--- /dev/null
+++ b/dev-ml/ocaml_intrinsics/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/async_ssl
+
+
diff --git a/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.0.ebuild b/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.0.ebuild
new file mode 100644
index 0000000000..db513b3fea
--- /dev/null
+++ b/dev-ml/ocaml_intrinsics/ocaml_intrinsics-0.15.0.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Functions to invoke amd64 instructions when available"
+HOMEPAGE="https://github.com/janestreet/ocaml_intrinsics"
+SRC_URI="https://github.com/janestreet/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="dev-ml/dune-configurator"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/ounit/Manifest b/dev-ml/ounit/Manifest
new file mode 100644
index 0000000000..5fc736a568
--- /dev/null
+++ b/dev-ml/ounit/Manifest
@@ -0,0 +1 @@
+DIST ounit-2.2.6.tbz 58186 BLAKE2B 6d6305eebef450968dc0a87c01f0a591faa855cc829fd130783c1b3d1b0546e2a9e167be397314ed69bceb7afea222551940cbb60e502bb04635a7a4273ba8af SHA512 d7cb36a1fe245d02afab606cd1ee755a178ee4cb18fbbfec1df32baa88fa90ef6c9a50d9fd5bde46c7fd9c481f2debe4bafac75c4e3bdfbdb63fc18b0ccce3cc
diff --git a/dev-ml/ounit/metadata.xml b/dev-ml/ounit/metadata.xml
new file mode 100644
index 0000000000..6e56a9a78a
--- /dev/null
+++ b/dev-ml/ounit/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+
diff --git a/dev-ml/ounit/ounit-2.2.6.ebuild b/dev-ml/ounit/ounit-2.2.6.ebuild
new file mode 100644
index 0000000000..9bbaaf352a
--- /dev/null
+++ b/dev-ml/ounit/ounit-2.2.6.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit dune findlib multiprocessing
+
+DESCRIPTION="Unit testing framework for OCaml"
+HOMEPAGE="https://github.com/gildor478/ounit"
+SRC_URI="https://github.com/gildor478/ounit/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="lwt ocamlopt"
+
+RDEPEND="
+ dev-ml/base-bytes:=
+ dev-ml/base-unix:=
+ dev-ml/seq:=
+ dev-ml/stdlib-shims:=
+
+ lwt? ( dev-ml/lwt:= )
+"
+DEPEND="${RDEPEND}"
+
+src_compile() {
+ local pkgs="ounit,ounit2"
+ use lwt && pkgs="${pkgs},ounit-lwt,ounit2-lwt"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ for p in ounit{,2} ; do
+ dune_src_install "${p}"
+ done
+ if use lwt; then
+ for p in ounit{,2}-lwt ; do
+ dune_src_install "${p}"
+ done
+ fi
+}
diff --git a/dev-ml/pbkdf/Manifest b/dev-ml/pbkdf/Manifest
new file mode 100644
index 0000000000..32c5f4f373
--- /dev/null
+++ b/dev-ml/pbkdf/Manifest
@@ -0,0 +1 @@
+DIST pbkdf-1.1.0.tbz 5237 BLAKE2B 80d7e1984f30c73cfe846b665c01a4b417553430c2d0363bb5c1088fa390ccbf5d2d99106181b2ea2a91db0ecf23cc8bf361b59d58ce34c2578fe6a841b01ddf SHA512 7c31f5470b9028a5f0b3baf670494f26c632af0449e59911efbe126d71e69fe8ebd73522f4fc96761cd71b67125579a5bbd75762f8753f9fb8c746f98bbb0aa5
diff --git a/dev-ml/pbkdf/metadata.xml b/dev-ml/pbkdf/metadata.xml
new file mode 100644
index 0000000000..d5235e07b9
--- /dev/null
+++ b/dev-ml/pbkdf/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ abeaumont/ocaml-pbkdf
+
+
diff --git a/dev-ml/pbkdf/pbkdf-1.1.0.ebuild b/dev-ml/pbkdf/pbkdf-1.1.0.ebuild
new file mode 100644
index 0000000000..c1218918a9
--- /dev/null
+++ b/dev-ml/pbkdf/pbkdf-1.1.0.ebuild
@@ -0,0 +1,26 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Password based key derivation functions (PBKDF) from PKCS#5"
+HOMEPAGE="https://github.com/abeaumont/ocaml-pbkdf"
+SRC_URI="https://github.com/abeaumont/ocaml-${PN}/releases/download/${PV}/${P}.tbz"
+
+LICENSE="BSD-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/mirage-crypto
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/pcap-format/Manifest b/dev-ml/pcap-format/Manifest
new file mode 100644
index 0000000000..0d89aac10d
--- /dev/null
+++ b/dev-ml/pcap-format/Manifest
@@ -0,0 +1 @@
+DIST pcap-format-0.5.2.tar.gz 6190 BLAKE2B c1be65a4006f6f2f5aa1f8f1af686e9d974c2188b148a60d950e86d4bc6a48924eb5e2b6d30b25d3a980a6086b774b5c2e4cad85ce0ad06f741c451d8f0d964f SHA512 aa7d58e1b30033c879ead653ed065ca418192fc37c7ec66abf8cdb52d62a0b1509b54febc519673345c1f15a24f381cb1f75cbd894ca991508461bd0a5fa139b
diff --git a/dev-ml/pcap-format/metadata.xml b/dev-ml/pcap-format/metadata.xml
new file mode 100644
index 0000000000..39e9c8c14e
--- /dev/null
+++ b/dev-ml/pcap-format/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-pcap
+
+
diff --git a/dev-ml/pcap-format/pcap-format-0.5.2-r2.ebuild b/dev-ml/pcap-format/pcap-format-0.5.2-r2.ebuild
new file mode 100644
index 0000000000..4be1c548db
--- /dev/null
+++ b/dev-ml/pcap-format/pcap-format-0.5.2-r2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Read and write pcap-formatted network packet traces"
+HOMEPAGE="https://github.com/mirage/ocaml-pcap"
+SRC_URI="https://github.com/mirage/ocaml-pcap/archive/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/ocaml-pcap-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="dev-ml/cstruct[ppx]"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/ounit
+ dev-ml/mmap
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/pci/Manifest b/dev-ml/pci/Manifest
new file mode 100644
index 0000000000..7dc425435c
--- /dev/null
+++ b/dev-ml/pci/Manifest
@@ -0,0 +1 @@
+DIST pci-1.0.1.tar.gz 71886 BLAKE2B f01544daab4156ca3c03e97aa9a16bcd054813f299e6b32c2de314a1b90f5a54bae814fb9f685049240a1231899c58b9b961a56ba1fd2897a8a9882bf10e90f3 SHA512 814d189d3cdea73363982b6c4e9dd1aa8678f40883e74da7bd65c9ac0a6c2ac069d28f56b056e7f7e10ad5d800a0323888afcb161448f6a1b1408a826440471b
diff --git a/dev-ml/pci/metadata.xml b/dev-ml/pci/metadata.xml
new file mode 100644
index 0000000000..784a8e785a
--- /dev/null
+++ b/dev-ml/pci/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ simonjbeaumont/ocaml-pci
+
+
diff --git a/dev-ml/pci/pci-1.0.1.ebuild b/dev-ml/pci/pci-1.0.1.ebuild
new file mode 100644
index 0000000000..070a12855c
--- /dev/null
+++ b/dev-ml/pci/pci-1.0.1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit findlib opam
+
+MY_P="ocaml-${P}"
+
+DESCRIPTION="OCaml bindings to libpci using Ctypes"
+HOMEPAGE="https://github.com/simonjbeaumont/ocaml-pci"
+SRC_URI="https://github.com/simonjbeaumont/ocaml-pci/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="test"
+
+RDEPEND="
+ sys-apps/pciutils
+ dev-ml/ocaml-ctypes
+"
+DEPEND="
+ ${RDEPEND}
+ dev-ml/ounit
+"
+
+RESTRICT="!test? ( test )"
+OPAM_FILE=opam
+
+src_configure() {
+ myconf=(
+ $(usex test '--enable-test' '')
+ --prefix "/usr"
+ --destdir "${D}"
+ --libdir "/usr/$(get_libdir)"
+ --docdir "/usr/share/doc/${PF}"
+ --htmldir "/usr/share/doc/${PF}/html"
+ --override debug false
+ --override is_native $(usex ocamlopt true false)
+ )
+ ./configure "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake
+ use test && emake test
+}
+
+src_install() {
+ findlib_src_preinst
+ emake install
+}
+
+src_test() {
+ opam_src_test
+}
diff --git a/dev-ml/pecu/pecu-0.6.ebuild b/dev-ml/pecu/pecu-0.6.ebuild
index fea655da1a..cb1cd0971d 100644
--- a/dev-ml/pecu/pecu-0.6.ebuild
+++ b/dev-ml/pecu/pecu-0.6.ebuild
@@ -13,7 +13,17 @@ S="${WORKDIR}/${PN}-v${PV}"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
-DEPEND=""
-RDEPEND="${DEPEND}"
+RDEPEND=""
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/astring
+ dev-ml/crowbar
+ dev-ml/fmt
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/polly/Manifest b/dev-ml/polly/Manifest
new file mode 100644
index 0000000000..5943501ed5
--- /dev/null
+++ b/dev-ml/polly/Manifest
@@ -0,0 +1 @@
+DIST polly-0.2.2.tar.gz 6698 BLAKE2B 0e4c7dae1314e0879504a3bdcb073649290498e90ea64aef3d3e99c10d430cc31ab19732b71257b1ba70a132eb70e04f8d4f919809e8bd71a7dcabdafcfc506b SHA512 ac5c60bdf029baf5cb50e96322b029acf270ec50361ca077f8da88f3fded6b50314b116f6a2c7d88f627b098490481391fc0190e26902088f8d689c804c8b457
diff --git a/dev-ml/polly/metadata.xml b/dev-ml/polly/metadata.xml
new file mode 100644
index 0000000000..08de9a72fc
--- /dev/null
+++ b/dev-ml/polly/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ lindig/polly
+
+
diff --git a/dev-ml/polly/polly-0.2.2.ebuild b/dev-ml/polly/polly-0.2.2.ebuild
new file mode 100644
index 0000000000..a39abb639d
--- /dev/null
+++ b/dev-ml/polly/polly-0.2.2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="OCaml bindings for Linux epoll(2)"
+HOMEPAGE="https://github.com/lindig/polly"
+SRC_URI="https://github.com/lindig/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+DEPEND="
+ dev-ml/base-unix
+ dev-ml/cmdliner
+"
+RDEPEND="${DEPEND}"
diff --git a/dev-ml/psq/Manifest b/dev-ml/psq/Manifest
new file mode 100644
index 0000000000..8914696b16
--- /dev/null
+++ b/dev-ml/psq/Manifest
@@ -0,0 +1 @@
+DIST psq-v0.2.0.tbz 10538 BLAKE2B 87626e0cac63b27d114c0497709d2b4cea55df4045b2033d5104bfacdb67b5286bcdf379a7f68936e852cd0f1260deb2258d0792691d32db406162dd3453e2d4 SHA512 0c570c5fc2bb2348b1ec03507abb4f152673a5d8f92c388c4cd5b7fc43a6e8f514007dbf4fb613503c4e8d5c8d3210b24ac37c546c79d94ebdf6b482e5cde024
diff --git a/dev-ml/psq/metadata.xml b/dev-ml/psq/metadata.xml
new file mode 100644
index 0000000000..14405eed69
--- /dev/null
+++ b/dev-ml/psq/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ pqwy/psq
+
+
diff --git a/dev-ml/psq/psq-0.2.0-r2.ebuild b/dev-ml/psq/psq-0.2.0-r2.ebuild
new file mode 100644
index 0000000000..aba4c1da48
--- /dev/null
+++ b/dev-ml/psq/psq-0.2.0-r2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="Functional Priority Search Queues for OCaml"
+HOMEPAGE="https://github.com/pqwy/psq"
+SRC_URI="https://github.com/pqwy/psq/releases/download/v${PV}/${PN}-v${PV}.tbz"
+S="${WORKDIR}/${PN}-v${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="dev-ml/seq"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/qcheck
+ dev-ml/alcotest
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/qmp/Manifest b/dev-ml/qmp/Manifest
new file mode 100644
index 0000000000..c636da4f02
--- /dev/null
+++ b/dev-ml/qmp/Manifest
@@ -0,0 +1 @@
+DIST qmp-0.17.0.tar.gz 24131 BLAKE2B bcf594c77cdcc4d6810008a841db25240bca350a2e6bd2e71919207aa6c96d7649836a916c3e38b262607dc17312ac79dce1ff97e6b5d45efb155808ff756bd1 SHA512 b8e295cb0664b6e74a5c3c536132e71185c484d008d319b0eb802959d1e11322c958739e73cf24809a323fdf8b55a9b01431d8f4d1b1e95d5d42f38645ad8892
diff --git a/dev-ml/qmp/metadata.xml b/dev-ml/qmp/metadata.xml
new file mode 100644
index 0000000000..d4b0d7732a
--- /dev/null
+++ b/dev-ml/qmp/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ xapi-project/ocaml-qmp
+
+
diff --git a/dev-ml/qmp/qmp-0.17.0.ebuild b/dev-ml/qmp/qmp-0.17.0.ebuild
new file mode 100644
index 0000000000..4e3f4699cf
--- /dev/null
+++ b/dev-ml/qmp/qmp-0.17.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="A Qemu Message Protocol (QMP) client in OCaml"
+HOMEPAGE="https://github.com/xapi-project/ocaml-qmp"
+SRC_URI="https://github.com/xapi-project/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+DEPEND="
+ dev-ml/base-unix
+ dev-ml/yojson
+ dev-ml/cmdliner
+"
+RDEPEND="
+ ${DEPEND}
+ test? ( dev-ml/ounit )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/randomconv/Manifest b/dev-ml/randomconv/Manifest
new file mode 100644
index 0000000000..a8b06f6504
--- /dev/null
+++ b/dev-ml/randomconv/Manifest
@@ -0,0 +1 @@
+DIST randomconv-v0.1.3.tbz 2385 BLAKE2B 788fcb8ba45854d11fc556b2e17b97b6701b38bfe876fbe139dca7a693af2f2c3b11f6a4f0120455772ceaf5161d94d26aab40aa395f515a75fd9da19745044d SHA512 f5186f7669a6b1b943442fdcfcdb37cf6c8199a1c644ed815f351f50428b9b7e1e5408ff4a0fcdfb093451b5237e48602af60f87a1b93e49897576c8aa2cd23f
diff --git a/dev-ml/randomconv/metadata.xml b/dev-ml/randomconv/metadata.xml
new file mode 100644
index 0000000000..0f5d9b8708
--- /dev/null
+++ b/dev-ml/randomconv/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ hannesm/randomconv
+
+
diff --git a/dev-ml/randomconv/randomconv-0.1.3.ebuild b/dev-ml/randomconv/randomconv-0.1.3.ebuild
new file mode 100644
index 0000000000..08921fcef5
--- /dev/null
+++ b/dev-ml/randomconv/randomconv-0.1.3.ebuild
@@ -0,0 +1,21 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Convert from random bytes to random native numbers"
+HOMEPAGE="https://github.com/hannesm/randomconv"
+SRC_URI="https://github.com/hannesm/${PN}/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="dev-ml/cstruct"
+DEPEND="${DEPEND}"
diff --git a/dev-ml/rpc/metadata.xml b/dev-ml/rpc/metadata.xml
index f926d92a96..a938097597 100644
--- a/dev-ml/rpc/metadata.xml
+++ b/dev-ml/rpc/metadata.xml
@@ -8,4 +8,9 @@
mirage/ocaml-rpc
+
diff --git a/dev-ml/rpc/rpc-8.1.2.ebuild b/dev-ml/rpc/rpc-8.1.2.ebuild
index 9f42f8ce12..7bba29c2b4 100644
--- a/dev-ml/rpc/rpc-8.1.2.ebuild
+++ b/dev-ml/rpc/rpc-8.1.2.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
MY_P="rpclib-${PV}"
@@ -15,30 +15,50 @@ S="${WORKDIR}/${MY_P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="async html js ocamlopt test"
DEPEND="
- dev-ml/async
- dev-ml/ocaml-base64
- dev-ml/cmdliner
- dev-ml/cow
- dev-ml/js_of_ocaml
- dev-ml/lwt
- dev-ml/ppxlib
- dev-ml/result
- dev-ml/rresult
- dev-ml/xmlm
- dev-ml/yojson
+ dev-ml/cmdliner:=
+ dev-ml/lwt:=
+ dev-ml/ocaml-base64:=
+ dev-ml/ppxlib:=
+ dev-ml/result:=
+ dev-ml/rresult:=
+ dev-ml/xmlm:=
+ dev-ml/yojson:=
+
+ async? ( dev-ml/async:= )
+ html? ( dev-ml/cow:= )
+ js? ( dev-ml/js_of_ocaml:=[ppx] )
+"
+RDEPEND="
+ ${DEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/alcotest-lwt
+ sys-apps/which
+ )
"
-RDEPEND="${DEPEND}"
BDEPEND="app-text/md2mld"
+RESTRICT="!test? ( test )"
+
+src_compile() {
+ local pkgs="rpclib,rpc,rpclib-lwt,ppx_deriving_rpc"
+ for u in async js html ; do
+ if use ${u} ; then
+ pkgs="${pkgs},rpclib-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
src_install() {
- dune_src_install ppx_deriving_rpc
- dune_src_install rpc
- dune_src_install rpclib-async
- dune_src_install rpclib-html
- dune_src_install rpclib-js
dune_src_install rpclib-lwt
dune_src_install rpclib
+ dune_src_install ppx_deriving_rpc
+ dune_src_install rpc
+ use async && dune_src_install rpclib-async
+ use html && dune_src_install rpclib-html
+ use js && dune_src_install rpclib-js
}
diff --git a/dev-ml/sexp_pretty/Manifest b/dev-ml/sexp_pretty/Manifest
new file mode 100644
index 0000000000..2a8745be3a
--- /dev/null
+++ b/dev-ml/sexp_pretty/Manifest
@@ -0,0 +1 @@
+DIST sexp_pretty-0.14.0.tar.gz 19700 BLAKE2B 21672e09c994f24d0080a6bfc8fbfc74bf43efe2131338b600ad802ec61581f401c984397036103bc1848544078a1af37b7f197b94c6d36c57c8d55422cf7dfa SHA512 7b32a7df5e66db77aef5e00279cfbb49dec185de604c31baa1ff1f4991bd930aca39fce94fcb737414279458ff942df968382090f79a011e9366e676eced9a74
diff --git a/dev-ml/sexp_pretty/metadata.xml b/dev-ml/sexp_pretty/metadata.xml
new file mode 100644
index 0000000000..418a0ad297
--- /dev/null
+++ b/dev-ml/sexp_pretty/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ janestreet/sexp_pretty
+
+
diff --git a/dev-ml/sexp_pretty/sexp_pretty-0.14.0-r1.ebuild b/dev-ml/sexp_pretty/sexp_pretty-0.14.0-r1.ebuild
new file mode 100644
index 0000000000..d16dc48ab0
--- /dev/null
+++ b/dev-ml/sexp_pretty/sexp_pretty-0.14.0-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="S-expression pretty-printer"
+HOMEPAGE="https://github.com/janestreet/sexp_pretty"
+SRC_URI="https://github.com/janestreet/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="
+ dev-ml/base
+ dev-ml/ppx_base
+ dev-ml/sexplib
+ dev-ml/re
+"
+DEPEND="${RDEPEND}"
diff --git a/dev-ml/shared-block-ring/Manifest b/dev-ml/shared-block-ring/Manifest
new file mode 100644
index 0000000000..df7364e522
--- /dev/null
+++ b/dev-ml/shared-block-ring/Manifest
@@ -0,0 +1 @@
+DIST shared-block-ring-3.0.0.tar.gz 18503 BLAKE2B 786997d650a9094068822ba0b214e8e26658c8caaa26a0bc28f504bdf18f5f07a69896aae46ead9d337db1c7272d8198ed37b8e573e66c7e13ebd56bf94a96d8 SHA512 1f16926aaf641bcfb285d6047cb45b271c4bbb70b345aa803b51f8f966f7815a2890f6993f449aadb11c254f05064f6469cedb9020074c5a566eb6a4ca9d2a6e
diff --git a/dev-ml/shared-block-ring/files/shared-block-ring-3.0.0-PR-62.patch b/dev-ml/shared-block-ring/files/shared-block-ring-3.0.0-PR-62.patch
new file mode 100644
index 0000000000..90b185afdc
--- /dev/null
+++ b/dev-ml/shared-block-ring/files/shared-block-ring-3.0.0-PR-62.patch
@@ -0,0 +1,318 @@
+From 4c8fb45a201cd15aa038d84bd792679a31bec5a8 Mon Sep 17 00:00:00 2001
+From: Hannes Mehnert
+Date: Thu, 27 Jan 2022 16:24:42 +0100
+Subject: [PATCH 1/3] avoid deprecated Cstruct.len, use Cstruct.length instead
+
+--- a/lib/eraseBlock.ml
++++ b/lib/eraseBlock.ml
+@@ -23,14 +23,14 @@ module Make(B: S.BLOCK) = struct
+ >>= fun info ->
+ let pages = Io_page.get block_size_pages in
+ let buffer = Io_page.to_cstruct pages in
+- for i = 0 to Cstruct.len buffer - 1 do
++ for i = 0 to Cstruct.length buffer - 1 do
+ Cstruct.set_char buffer i (pattern.[i mod (String.length pattern)])
+ done;
+ let rec loop n =
+ if n = info.Mirage_block.size_sectors
+ then return (Ok ())
+ else
+- let buffer_in_sectors = Cstruct.len buffer / info.Mirage_block.sector_size in
++ let buffer_in_sectors = Cstruct.length buffer / info.Mirage_block.sector_size in
+ let needed = Int64.to_int (min (Int64.sub info.Mirage_block.size_sectors n) (Int64.of_int buffer_in_sectors)) in
+ let towrite = Cstruct.sub buffer 0 (needed * info.Mirage_block.sector_size) in
+ B.write t n [ towrite ]
+--- a/lib/ring.ml
++++ b/lib/ring.ml
+@@ -34,7 +34,7 @@ let minimum_size_sectors = Int64.add sector_data 1L
+ let magic = Printf.sprintf "mirage shared-block-device 1.0"
+
+ let zero buf =
+- for i = 0 to Cstruct.len buf - 1 do
++ for i = 0 to Cstruct.length buf - 1 do
+ Cstruct.set_uint8 buf i 0
+ done
+
+@@ -357,7 +357,7 @@ module Producer = struct
+ let open ResultM in
+ let _sector = alloc t.info.Mirage_block.sector_size in
+ (* add a 4 byte header of size, and round up to the next 4-byte offset *)
+- let needed_bytes = Int64.(logand (lognot 3L) (add 7L (of_int (Cstruct.len item)))) in
++ let needed_bytes = Int64.(logand (lognot 3L) (add 7L (of_int (Cstruct.length item)))) in
+ let first_sector = Int64.(div t.producer.producer (of_int t.info.Mirage_block.sector_size)) in
+ let first_offset = Int64.(to_int (rem t.producer.producer (of_int t.info.Mirage_block.sector_size))) in
+
+@@ -365,23 +365,23 @@ module Producer = struct
+ the first page as it's only a 4-byte integer and we're padding to 4-byte offsets. *)
+ read_modify_write t first_sector (fun sector ->
+ (* Write the header and anything else we can *)
+- Cstruct.LE.set_uint32 sector first_offset (Int32.of_int (Cstruct.len item));
++ Cstruct.LE.set_uint32 sector first_offset (Int32.of_int (Cstruct.length item));
+ if first_offset + 4 = t.info.Mirage_block.sector_size
+ then item (* We can't write anything else, so just return the item *)
+ else begin
+- let this = min (t.info.Mirage_block.sector_size - first_offset - 4) (Cstruct.len item) in
++ let this = min (t.info.Mirage_block.sector_size - first_offset - 4) (Cstruct.length item) in
+ Cstruct.blit item 0 sector (first_offset + 4) this;
+ Cstruct.shift item this
+ end) >>= fun remaining ->
+
+ let rec loop offset remaining =
+- if Cstruct.len remaining = 0
++ if Cstruct.length remaining = 0
+ then return ()
+ else begin
+ read_modify_write t offset (fun sector ->
+- let this = min t.info.Mirage_block.sector_size (Cstruct.len remaining) in
++ let this = min t.info.Mirage_block.sector_size (Cstruct.length remaining) in
+ let frag = Cstruct.sub sector 0 this in
+- Cstruct.blit remaining 0 frag 0 (Cstruct.len frag);
++ Cstruct.blit remaining 0 frag 0 (Cstruct.length frag);
+ Cstruct.shift remaining this) >>= fun remaining ->
+ loop (Int64.succ offset) remaining
+ end in
+@@ -408,7 +408,7 @@ module Producer = struct
+ (fun () ->
+ let item = Item.to_cstruct item in
+ (* every item has a 4 byte header *)
+- let needed_bytes = Int64.(add 4L (of_int (Cstruct.len item))) in
++ let needed_bytes = Int64.(add 4L (of_int (Cstruct.length item))) in
+ let open C in
+ let open ResultM in
+ ok_to_write t needed_bytes
+@@ -535,10 +535,10 @@ module Consumer = struct
+ let frag = Cstruct.sub sector (4 + first_offset) this in
+ Cstruct.blit frag 0 result 0 this;
+ let rec loop consumer remaining =
+- if Cstruct.len remaining = 0
++ if Cstruct.length remaining = 0
+ then return ()
+ else
+- let this = min t.info.Mirage_block.sector_size (Cstruct.len remaining) in
++ let this = min t.info.Mirage_block.sector_size (Cstruct.length remaining) in
+ let frag = Cstruct.sub remaining 0 this in
+ read Int64.(add sector_data (rem consumer total_sectors)) t.disk sector >>= fun () ->
+ Cstruct.blit sector 0 frag 0 this;
+@@ -547,7 +547,7 @@ module Consumer = struct
+ (* Read the payload before updating the consumer pointer *)
+ let needed_bytes = Int64.(logand (lognot 3L) (add 7L (of_int (len)))) in
+ match Item.of_cstruct result with
+- | None -> Lwt.return (Error (`Msg (Printf.sprintf "Failed to parse queue item: (%d)[%s]" (Cstruct.len result) (String.escaped (Cstruct.to_string result)))))
++ | None -> Lwt.return (Error (`Msg (Printf.sprintf "Failed to parse queue item: (%d)[%s]" (Cstruct.length result) (String.escaped (Cstruct.to_string result)))))
+ | Some result ->
+ return (Int64.(add t.consumer.consumer needed_bytes),result)
+ end
+--- a/lib_test/test.ml
++++ b/lib_test/test.ml
+@@ -47,7 +47,7 @@ let alloc sector_size =
+ sector
+
+ let fill_with_message buffer message =
+- for i = 0 to Cstruct.len buffer - 1 do
++ for i = 0 to Cstruct.length buffer - 1 do
+ Cstruct.set_char buffer i (message.[i mod (String.length message)])
+ done
+
+--- a/shared-block-ring.opam
++++ b/shared-block-ring.opam
+@@ -13,7 +13,7 @@ depends: [
+ "ocaml" {>= "4.06.0"}
+ "bisect_ppx" {dev & >= "2.5.0"}
+ "cmdliner"
+- "cstruct" {>= "3.0.0"}
++ "cstruct" {>= "6.0.0"}
+ "dune" {>= "2.7.0"}
+ "duration"
+ "io-page"
+
+From f0b61e87f809dce36fb93e31349d02d9a679253a Mon Sep 17 00:00:00 2001
+From: Hannes Mehnert
+Date: Thu, 27 Jan 2022 16:26:39 +0100
+Subject: [PATCH 2/3] adapt to mirage-block 3.0.0 changes
+
+--- a/lib/ring.ml
++++ b/lib/ring.ml
+@@ -92,14 +92,12 @@ module Common(Log: S.LOG)(B: S.BLOCK) = struct
+ m >>= function
+ | Error `Is_read_only -> Lwt.return (Error `Is_read_only)
+ | Error `Disconnected -> Lwt.return (Error `Disconnected)
+- | Error `Unimplemented -> Lwt.return (Error `Unimplemented)
+ | Error x -> Lwt.return (Error x)
+ | Ok x -> f x
+ let to_msg m =
+ let open Lwt.Infix in
+ m >>= function
+ | Error `Disconnected -> Lwt.return (Error (`Msg "BLOCK device has already disconnected"))
+- | Error `Unimplemented -> Lwt.return (Error (`Msg "BLOCK function is unimplemented"))
+ | Error `Is_read_only -> Lwt.return (Error (`Msg "BLOCK device is read-only"))
+ | Error _ -> Lwt.return (Error (`Msg "Unknown error from BLOCK device"))
+ | Ok x -> Lwt.return (Ok x)
+@@ -110,14 +108,12 @@ module Common(Log: S.LOG)(B: S.BLOCK) = struct
+ let open Lwt.Infix in
+ m >>= function
+ | Error `Disconnected -> Lwt.return (Error `Disconnected)
+- | Error `Unimplemented -> Lwt.return (Error `Unimplemented)
+ | Error x -> Lwt.return (Error x)
+ | Ok x -> f x
+ let to_msg m =
+ let open Lwt.Infix in
+ m >>= function
+ | Error `Disconnected -> Lwt.return (Error (`Msg "BLOCK device has already disconnected"))
+- | Error `Unimplemented -> Lwt.return (Error (`Msg "BLOCK function is unimplemented"))
+ | Error _ -> Lwt.return (Error (`Msg "Unknown error from BLOCK device"))
+ | Ok x -> Lwt.return (Ok x)
+ let return x = Lwt.return (Ok x)
+--- a/shared-block-ring.opam
++++ b/shared-block-ring.opam
+@@ -21,8 +21,8 @@ depends: [
+ "logs"
+ "lwt"
+ "lwt_log"
+- "mirage-block" {>= "2.0.1"}
+- "mirage-block-unix"
++ "mirage-block" {>= "3.0.0"}
++ "mirage-block-unix" {>= "2.13.0"}
+ "mirage-clock" {>= "3.0.0"}
+ "mirage-clock-unix" {with-test}
+ "mirage-time" {>= "2.0.1"}
+
+From 1c99469a8f6ce12455c1e5e27c54eb5fe5611251 Mon Sep 17 00:00:00 2001
+From: Hannes Mehnert
+Date: Mon, 11 Apr 2022 11:18:01 +0200
+Subject: [PATCH 3/3] update to cmdliner 1.1.0, remove io-page-unix dependency
+
+--- a/example/dune
++++ b/example/dune
+@@ -6,7 +6,6 @@
+ cmdliner
+ cstruct
+ io-page
+- io-page-unix
+ logs
+ logs.fmt
+ logs.lwt
+--- a/example/main.ml
++++ b/example/main.ml
+@@ -171,8 +171,10 @@ let produce_cmd =
+ `S "DESCRIPTION";
+ `P "Read lines of text from stdin and push them as individual items onto the ring.";
+ ] @ help in
+- Term.(ret(pure produce $ filename $ interval)),
+- Term.info "produce" ~doc ~man
++ let term = Term.(ret(const produce $ filename $ interval))
++ and info = Cmd.info "produce" ~doc ~man
++ in
++ Cmd.v info term
+
+ let consume_cmd =
+ let doc = "Pop data from the ring" in
+@@ -180,8 +182,10 @@ let consume_cmd =
+ `S "DESCRIPTION";
+ `P "Read lines of text from the ring and print them to stdout.";
+ ] @ help in
+- Term.(ret(pure consume $ filename $ interval)),
+- Term.info "consume" ~doc ~man
++ let term = Term.(ret(const consume $ filename $ interval))
++ and info = Cmd.info "consume" ~doc ~man
++ in
++ Cmd.v info term
+
+ let create_cmd =
+ let doc = "Create an empty ring" in
+@@ -189,8 +193,10 @@ let create_cmd =
+ `S "DESCRIPTION";
+ `P "Initialise a device or file with an empty ring."
+ ] @ help in
+- Term.(ret(pure create $ filename)),
+- Term.info "create" ~doc ~man
++ let term = Term.(ret(const create $ filename))
++ and info = Cmd.info "create" ~doc ~man
++ in
++ Cmd.v info term
+
+ let diagnostics_cmd =
+ let doc = "Display the current state of a ring." in
+@@ -199,8 +205,10 @@ let diagnostics_cmd =
+ `P "Display the current ring state including producer and consumer pointers, together with the current ring contents for diagnostic purposes.";
+ `P "Note: the ring will not be modified."
+ ] @ help in
+- Term.(ret(pure diagnostics $ filename)),
+- Term.info "diagnostics" ~doc ~man
++ let term = Term.(ret(const diagnostics $ filename))
++ and info = Cmd.info "diagnostics" ~doc ~man
++ in
++ Cmd.v info term
+
+ let suspend_cmd =
+ let doc = "Suspend the ring." in
+@@ -208,8 +216,10 @@ let suspend_cmd =
+ `S "DESCRIPTION";
+ `P "Perform a co-operative suspend of the ring. Once finished, the producer will have acknowledged and promise not to send any more data.";
+ ] @ help in
+- Term.(ret(pure suspend $ filename)),
+- Term.info "suspend" ~doc ~man
++ let term = Term.(ret(const suspend $ filename))
++ and info = Cmd.info "suspend" ~doc ~man
++ in
++ Cmd.v info term
+
+ let resume_cmd =
+ let doc = "Resume the ring." in
+@@ -217,19 +227,19 @@ let resume_cmd =
+ `S "DESCRIPTION";
+ `P "Perform a co-operative resume of the ring. Once finished, the producer will have acknowledged and will be able to produce data.";
+ ] @ help in
+- Term.(ret(pure resume $ filename)),
+- Term.info "resume" ~doc ~man
++ let term = Term.(ret(const resume $ filename))
++ and info = Cmd.info "resume" ~doc ~man
++ in
++ Cmd.v info term
+
+-let default_cmd =
+- let doc = "manipulate shared rings on block devices" in
+- let man = help in
+- Term.(ret (pure (`Help (`Pager, None)))),
+- Term.info (Sys.argv.(0)) ~version:"1.0.0" ~doc ~man
++let default_cmd = Term.(ret (const (`Help (`Pager, None))))
+
+ let cmds = [create_cmd; produce_cmd; consume_cmd; suspend_cmd; resume_cmd; diagnostics_cmd]
+
+-let _ =
++let () =
+ Logs.set_reporter (Logs_fmt.reporter ());
+- match Term.eval_choice default_cmd cmds with
+- | `Error _ -> exit 1
+- | _ -> exit 0
++ let doc = "manipulate shared rings on block devices" in
++ let man = help in
++ let info = Cmd.info (Sys.argv.(0)) ~version:"%%VERSION%%" ~doc ~man in
++ let group = Cmd.group ~default:default_cmd info cmds in
++ exit (Cmd.eval group)
+--- a/lib_test/dune
++++ b/lib_test/dune
+@@ -4,7 +4,6 @@
+ cstruct
+ duration
+ io-page
+- io-page-unix
+ logs
+ logs.fmt
+ logs.lwt
+--- a/shared-block-ring.opam
++++ b/shared-block-ring.opam
+@@ -12,12 +12,11 @@ bug-reports: "https://github.com/mirage/shared-block-ring/issues/"
+ depends: [
+ "ocaml" {>= "4.06.0"}
+ "bisect_ppx" {dev & >= "2.5.0"}
+- "cmdliner"
++ "cmdliner" {>= "1.1.0"}
+ "cstruct" {>= "6.0.0"}
+ "dune" {>= "2.7.0"}
+ "duration"
+- "io-page"
+- "io-page-unix" {>= "2.0.0"}
++ "io-page" {>= "2.4.0"}
+ "logs"
+ "lwt"
+ "lwt_log"
diff --git a/dev-ml/shared-block-ring/metadata.xml b/dev-ml/shared-block-ring/metadata.xml
new file mode 100644
index 0000000000..393a3ec738
--- /dev/null
+++ b/dev-ml/shared-block-ring/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/shared-block-ring
+
+
diff --git a/dev-ml/shared-block-ring/shared-block-ring-3.0.0.ebuild b/dev-ml/shared-block-ring/shared-block-ring-3.0.0.ebuild
new file mode 100644
index 0000000000..ad7e707b04
--- /dev/null
+++ b/dev-ml/shared-block-ring/shared-block-ring-3.0.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="A simple on-disk fixed length queue"
+HOMEPAGE="https://github.com/mirage/shared-block-ring"
+SRC_URI="https://github.com/mirage/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ >=dev-ml/cstruct-6.0.0:=[ppx]
+ dev-ml/lwt:=
+ dev-ml/lwt_log:=
+ dev-ml/cmdliner:=
+ dev-ml/duration:=
+ >=dev-ml/io-page-2.4.0:=
+ dev-ml/logs:=
+ >=dev-ml/mirage-block-2.0.1:=
+ dev-ml/mirage-block-unix:=
+ dev-ml/mirage-clock:=
+ >=dev-ml/mirage-time-2.0.1:=
+ >=dev-ml/ppx_sexp_conv-0.10.0:=
+ dev-ml/result:=
+ dev-ml/rresult:=
+ dev-ml/sexplib:=
+ dev-ml/sexplib0:=
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( >=dev-ml/ounit-2 )
+"
+
+RESTRICT="!test? ( test )"
+PATCHES="${FILESDIR}/${P}-PR-62.patch"
diff --git a/dev-ml/stringext/stringext-1.6.0-r2.ebuild b/dev-ml/stringext/stringext-1.6.0-r2.ebuild
index 6322071c55..95464acb20 100644
--- a/dev-ml/stringext/stringext-1.6.0-r2.ebuild
+++ b/dev-ml/stringext/stringext-1.6.0-r2.ebuild
@@ -12,9 +12,15 @@ SRC_URI="https://github.com/rgrinberg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
-RDEPEND="
- dev-ml/base
+RDEPEND=""
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/ounit
+ dev-ml/qtest
+ )
"
-DEPEND="${RDEPEND}"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/systemd/Manifest b/dev-ml/systemd/Manifest
new file mode 100644
index 0000000000..a935d689ad
--- /dev/null
+++ b/dev-ml/systemd/Manifest
@@ -0,0 +1 @@
+DIST systemd-1.2.tar.gz 47912 BLAKE2B b41e5e38f4bce5460449fec46755ea37ffddf8c30b0459f2d70f4714c6f63dffd62c67ed44cb8385e67243b4e0518f1626f5340e24112730c1d058b5a1d30f99 SHA512 a04cb75a425882af95a31a22643cea5620d3f6683c099f9a21e250f1935143db85b12637a8636842463e25b18a18df389026b6950931015f2e612c6c407c67a4
diff --git a/dev-ml/systemd/metadata.xml b/dev-ml/systemd/metadata.xml
new file mode 100644
index 0000000000..e4a496827d
--- /dev/null
+++ b/dev-ml/systemd/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ juergenhoetzel/ocaml-systemd
+
+
diff --git a/dev-ml/systemd/systemd-1.2.ebuild b/dev-ml/systemd/systemd-1.2.ebuild
new file mode 100644
index 0000000000..e9aa7435f7
--- /dev/null
+++ b/dev-ml/systemd/systemd-1.2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit findlib opam
+
+MY_P="ocaml-${P}"
+
+DESCRIPTION="OCaml module for native access to the systemd facilities"
+HOMEPAGE="https://github.com/juergenhoetzel/ocaml-systemd"
+SRC_URI="https://github.com/juergenhoetzel/ocaml-${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="LGPL-3-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt"
+
+RDEPEND="sys-apps/systemd"
+DEPEND="
+ ${RDEPEND}
+ dev-ml/ocamlbuild
+"
+
+OPAM_FILE=opam
+
+src_configure() {
+ myconf=(
+ --prefix "/usr"
+ --destdir "${D}"
+ --libdir "/usr/$(get_libdir)"
+ --docdir "/usr/share/doc/${PF}"
+ --htmldir "/usr/share/doc/${PF}/html"
+ --override debug false
+ --override is_native $(usex ocamlopt true false)
+ )
+ ./configure "${myconf[@]}" || die
+}
+
+src_compile() {
+ emake
+}
+
+src_install() {
+ findlib_src_preinst
+ emake install
+}
diff --git a/dev-ml/tar/Manifest b/dev-ml/tar/Manifest
new file mode 100644
index 0000000000..96729e50ab
--- /dev/null
+++ b/dev-ml/tar/Manifest
@@ -0,0 +1 @@
+DIST tar-2.0.1.tar.gz 26751 BLAKE2B a381c258c75350198c25c105f8ca33f33dd8d946f88cb102186ece414def2fa5e25191c2ed43d5d0e9286a0bc352ffec8b6999d17f18479642900b59f4d1cc17 SHA512 fd2e302497eb673a4e8000d0bcfd9012b1f118021e1d071a7c56cc6652ec6da9c6f755c18aa4b275daf1f722409d71cbb4519285096682344bfa65bbe800cbd1
diff --git a/dev-ml/tar/metadata.xml b/dev-ml/tar/metadata.xml
new file mode 100644
index 0000000000..76d46cfa29
--- /dev/null
+++ b/dev-ml/tar/metadata.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-tar
+
+
+
diff --git a/dev-ml/tar/tar-2.0.1.ebuild b/dev-ml/tar/tar-2.0.1.ebuild
new file mode 100644
index 0000000000..8ddc49ac34
--- /dev/null
+++ b/dev-ml/tar/tar-2.0.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="Pure OCaml library to read and write tar files"
+HOMEPAGE="https://github.com/mirage/ocaml-tar"
+SRC_URI="https://github.com/mirage/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="mirage ocamlopt test unix"
+
+RDEPEND="
+ dev-ml/camlp-streams
+ dev-ml/cstruct
+ dev-ml/re
+ dev-ml/lwt
+
+ mirage? (
+ dev-ml/io-page
+ dev-ml/mirage-block
+ dev-ml/mirage-kv
+ dev-ml/ptime
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/mirage-block-unix
+ >=dev-ml/ounit-2[lwt]
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ test? ( mirage unix )
+"
+
+src_compile() {
+ local pkgs="tar"
+ for u in mirage unix ; do
+ if use ${u} ; then
+ pkgs="${pkgs},tar-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install tar
+ use mirage && dune_src_install tar-mirage
+ use unix && dune_src_install tar-unix
+}
diff --git a/dev-ml/tcpip/Manifest b/dev-ml/tcpip/Manifest
new file mode 100644
index 0000000000..e7402133a9
--- /dev/null
+++ b/dev-ml/tcpip/Manifest
@@ -0,0 +1 @@
+DIST tcpip-7.1.0.tbz 103853 BLAKE2B 157c6a45dfe05e43e0f36182060b75e7910a9ef1c4701c0145056a164e743a00f73f07ccb953a29f6468ee88e03fa0b5363c36aabc1a41a9ac93a9f3e0876d10 SHA512 fae605ba30b0bb5ae28cbedc32f220c5a5166db4af9e060d82007cd020132f1e334fa8fcb7e9bd68851fc838f7e6fb1b4e1d3cba8fb787dcec79d2107b8ffd4a
diff --git a/dev-ml/tcpip/metadata.xml b/dev-ml/tcpip/metadata.xml
new file mode 100644
index 0000000000..ee477510cb
--- /dev/null
+++ b/dev-ml/tcpip/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/mirage-tcpip
+
+
diff --git a/dev-ml/tcpip/tcpip-7.1.0.ebuild b/dev-ml/tcpip/tcpip-7.1.0.ebuild
new file mode 100644
index 0000000000..5d3645a7e9
--- /dev/null
+++ b/dev-ml/tcpip/tcpip-7.1.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MYPN="mirage-${PN}"
+
+DESCRIPTION="TCP/IP networking stack in pure OCaml, using the Mirage platform libraries"
+HOMEPAGE="https://github.com/mirage/mirage-tcpip"
+SRC_URI="https://github.com/mirage/${MYPN}/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct[lwt,ppx]
+ dev-ml/mirage-net
+ dev-ml/mirage-clock
+ dev-ml/mirage-random
+ dev-ml/mirage-time
+ dev-ml/ipaddr[macaddr-cstruct]
+ dev-ml/mirage-profile
+ dev-ml/fmt
+ dev-ml/lwt
+ dev-ml/lwt-dllist
+ dev-ml/logs
+ dev-ml/duration
+ dev-ml/randomconv
+ dev-ml/ethernet
+ dev-ml/arp
+ dev-ml/mirage-flow
+ dev-ml/lru
+ dev-ml/metrics
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/mirage-vnetif
+ dev-ml/alcotest
+ dev-ml/pcap-format
+ dev-ml/mirage-clock
+ dev-ml/mirage-random-test
+ dev-ml/ipaddr[cstruct]
+ )
+"
+BDEPEND="virtual/pkgconfig"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/tls/Manifest b/dev-ml/tls/Manifest
new file mode 100644
index 0000000000..c5b08613cf
--- /dev/null
+++ b/dev-ml/tls/Manifest
@@ -0,0 +1 @@
+DIST tls-v0.13.1.tbz 299082 BLAKE2B e366f0135233c67aac72cb930d9c702ff660bb2eeaa4e2105a695026866d7723a6e41657d3f4d1a107742325d875612183ed51d96d2a9d5da50d358a99688fa3 SHA512 f5ec06a9401c5bba7b9ba011fbec14136685b673f4ec87d0eefedb9cb53f93d02142bb9a75955b8c2c5832cdcebec8751c63ce092d2b6e361a19fe1a8a1e36b1
diff --git a/dev-ml/tls/metadata.xml b/dev-ml/tls/metadata.xml
new file mode 100644
index 0000000000..ec20f745d5
--- /dev/null
+++ b/dev-ml/tls/metadata.xml
@@ -0,0 +1,16 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirleft/ocaml-tls
+
+
+
diff --git a/dev-ml/tls/tls-0.13.1.ebuild b/dev-ml/tls/tls-0.13.1.ebuild
new file mode 100644
index 0000000000..8be88f06b0
--- /dev/null
+++ b/dev-ml/tls/tls-0.13.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Transport Layer Security purely in OCaml"
+HOMEPAGE="https://github.com/mirleft/ocaml-tls"
+SRC_URI="https://github.com/mirleft/ocaml-tls/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="async mirage ocamlopt test"
+
+RDEPEND="
+ dev-ml/ppx_sexp_conv
+ dev-ml/cstruct[ppx,sexp]
+ dev-ml/sexplib
+ dev-ml/mirage-crypto[ec,pk,rng]
+ dev-ml/x509
+ dev-ml/domain-name
+ dev-ml/fmt
+ dev-ml/lwt
+ dev-ml/ptime
+ dev-ml/hkdf
+ dev-ml/logs
+ dev-ml/ipaddr[sexp]
+
+ async? (
+ dev-ml/async
+ dev-ml/async_unix
+ dev-ml/core
+ dev-ml/cstruct[async]
+ dev-ml/ppx_jane
+ dev-ml/mirage-crypto[rng-async]
+ )
+ mirage? (
+ dev-ml/mirage-flow
+ dev-ml/mirage-kv
+ dev-ml/mirage-clock
+ dev-ml/mirage-crypto[pk]
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/cstruct[unix]
+ dev-ml/alcotest
+ dev-ml/randomconv
+ >=dev-ml/ounit-2
+ )
+"
+
+RESTRICT="!test? ( test )"
+
+src_compile() {
+ local pkgs="tls"
+ for u in async mirage ; do
+ if use ${u} ; then
+ pkgs="${pkgs},tls-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install tls
+ use async && dune_src_install tls-async
+ use mirage && dune_src_install tls-mirage
+}
diff --git a/dev-ml/uri/metadata.xml b/dev-ml/uri/metadata.xml
index 982af7c50a..57acd83577 100644
--- a/dev-ml/uri/metadata.xml
+++ b/dev-ml/uri/metadata.xml
@@ -9,4 +9,8 @@
mirage/ocaml-uri
+
diff --git a/dev-ml/uri/uri-4.2.0.ebuild b/dev-ml/uri/uri-4.2.0.ebuild
index e8103d4f00..afff9437d7 100644
--- a/dev-ml/uri/uri-4.2.0.ebuild
+++ b/dev-ml/uri/uri-4.2.0.ebuild
@@ -3,7 +3,7 @@
EAPI=8
-inherit dune
+inherit dune multiprocessing
DESCRIPTION="RFC3986 URI parsing library for OCaml"
HOMEPAGE="https://github.com/mirage/ocaml-uri"
@@ -13,19 +13,42 @@ S="${WORKDIR}/ocaml-${P}"
LICENSE="ISC"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt re sexp test"
RDEPEND="
dev-ml/angstrom
- dev-ml/ppx_sexp_conv
- dev-ml/re
- dev-ml/sexplib0
dev-ml/stringext
+
+ re? (
+ dev-ml/re
+ )
+ sexp? (
+ dev-ml/ppx_sexp_conv
+ dev-ml/sexplib0
+ )
"
-DEPEND="${RDEPEND}"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/ounit
+ dev-ml/ppx_sexp_conv
+ )
+"
+
+RESTRICT="!test? ( test )"
+
+src_compile() {
+ local pkgs="uri"
+ for u in sexp re ; do
+ if use ${u} ; then
+ pkgs="${pkgs},uri-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
src_install() {
dune_src_install uri
- dune_src_install uri-re
- dune_src_install uri-sexp
+ use re && dune_src_install uri-re
+ use sexp && dune_src_install uri-sexp
}
diff --git a/dev-ml/vchan/Manifest b/dev-ml/vchan/Manifest
new file mode 100644
index 0000000000..737b763b61
--- /dev/null
+++ b/dev-ml/vchan/Manifest
@@ -0,0 +1 @@
+DIST vchan-6.0.1.tbz 21954 BLAKE2B 01a8cea18ac7a94176f969323d765aadaf0ebb95ab781019caa7473fc1c0807bde3f432d81fbdd8d72261952ef36c5b7cd58fc6182d9477fe4db092bb523ec55 SHA512 8507095e49d2c47d3aa71a62a2856dea3bce0607ee3f03cd9c4a7a93b2a0f6b53788ef0345ce1193a10048251f4bd0f6d1af74ba2191682686ec463653b17622
diff --git a/dev-ml/vchan/metadata.xml b/dev-ml/vchan/metadata.xml
new file mode 100644
index 0000000000..19eeb5aaef
--- /dev/null
+++ b/dev-ml/vchan/metadata.xml
@@ -0,0 +1,15 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/vchan
+
+
+
diff --git a/dev-ml/vchan/vchan-6.0.1.ebuild b/dev-ml/vchan/vchan-6.0.1.ebuild
new file mode 100644
index 0000000000..d21da75dc7
--- /dev/null
+++ b/dev-ml/vchan/vchan-6.0.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MY_PN="ocaml-${PN}"
+
+DESCRIPTION="Pure OCaml implementation of the vchan shared-memory communication protocol"
+HOMEPAGE="https://github.com/mirage/ocaml-vchan"
+SRC_URI="https://github.com/mirage/${MY_PN}/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test unix xen"
+
+RDEPEND="
+ dev-ml/lwt
+ dev-ml/ppx_sexp_conv
+ dev-ml/io-page
+ dev-ml/mirage-flow
+ dev-ml/xenstore
+ dev-ml/xenstore-clients
+ dev-ml/sexplib
+ dev-ml/cstruct[ppx]
+
+ unix? (
+ dev-ml/xen-evtchn[unix]
+ dev-ml/xen-gnt[unix]
+ dev-ml/fmt
+ )
+ xen? ( dev-ml/mirage-xen )
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/cmdliner
+ dev-ml/ounit
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( unix xen )"
+
+src_compile() {
+ local pkgs="vchan"
+ for u in xen unix ; do
+ if use ${u} ; then
+ pkgs="${pkgs},vchan-${u}"
+ fi
+ done
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install vchan
+ use unix && dune_src_install vchan-unix
+ use xen && dune_src_install vchan-xen
+}
diff --git a/dev-ml/vhd/Manifest b/dev-ml/vhd/Manifest
new file mode 100644
index 0000000000..d18356c4de
--- /dev/null
+++ b/dev-ml/vhd/Manifest
@@ -0,0 +1 @@
+DIST vhd-0.12.2.tar.gz 51907 BLAKE2B 55c08d3dc7ec6f3611fe081860942f0e68eb6e1cdb284d5190baac70d5f2145ea8af3adb80ab51a388b9810b13bece8654d0c49814fecba212d0a400b9cd1662 SHA512 bea4b97492b9c5304418ed220e9303d8d94b3a7db6b7dc3566a967a9878da7dc69b655be6a66edb0ff22806de13c75693cf2dbe93e6e57a736fab0964872d99d
diff --git a/dev-ml/vhd/metadata.xml b/dev-ml/vhd/metadata.xml
new file mode 100644
index 0000000000..909764cf19
--- /dev/null
+++ b/dev-ml/vhd/metadata.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/ocaml-vhd
+
+
+
diff --git a/dev-ml/vhd/vhd-0.12.2.ebuild b/dev-ml/vhd/vhd-0.12.2.ebuild
new file mode 100644
index 0000000000..07ba2d35fb
--- /dev/null
+++ b/dev-ml/vhd/vhd-0.12.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MYPN="ocaml-${PN}"
+
+DESCRIPTION="Read and write .vhd-format format data"
+HOMEPAGE="https://github.com/mirage/ocaml-vhd-format"
+SRC_URI="https://github.com/mirage/${MYPN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MYPN}-${PV}"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="lwt ocamlopt test"
+
+RDEPEND="
+ dev-ml/cstruct
+ dev-ml/io-page
+ dev-ml/rresult
+ dev-ml/uuidm
+ dev-ml/stdlib-shims
+
+ lwt? (
+ dev-ml/mirage-block
+ dev-ml/lwt
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/ounit
+ dev-ml/io-page[unix(-)]
+ )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( lwt )"
+
+src_compile() {
+ local pkgs="vhd-format"
+ use lwt && pkgs="${pkgs},vhd-format-lwt"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install vhd-format
+ use lwt && dune_src_install vhd-format-lwt
+}
diff --git a/dev-ml/x509/Manifest b/dev-ml/x509/Manifest
new file mode 100644
index 0000000000..9de5accc46
--- /dev/null
+++ b/dev-ml/x509/Manifest
@@ -0,0 +1 @@
+DIST x509-v0.13.0.tbz 143302 BLAKE2B d4079a5cce87617ea611ed5624697577b97cf69a1df830fe2b4775ffa47ab557a72cb01bf24b6b56478f6fb22afb87e971ab260ae6acd7e75ef6ad0ff4052c24 SHA512 ab6d4df7e6b6796b962d4ec3d949723c2a039fc9d534a196d8ebd71499dce310716aba3be7bd9600428b534f5eadf7b8b106f77633a63f46c16eceb447e946cc
diff --git a/dev-ml/x509/metadata.xml b/dev-ml/x509/metadata.xml
new file mode 100644
index 0000000000..973e19557b
--- /dev/null
+++ b/dev-ml/x509/metadata.xml
@@ -0,0 +1,12 @@
+
+
+
+
+ co-maintainers welcome
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirleft/ocaml-x509
+
+
diff --git a/dev-ml/x509/x509-0.13.0.ebuild b/dev-ml/x509/x509-0.13.0.ebuild
new file mode 100644
index 0000000000..ff84020ed1
--- /dev/null
+++ b/dev-ml/x509/x509-0.13.0.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Public Key Infrastructure purely in OCaml"
+HOMEPAGE="https://github.com/mirleft/ocaml-x509"
+SRC_URI="https://github.com/mirleft/ocaml-x509/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="BSD-2"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+RDEPEND="
+ dev-ml/asn1-combinators
+ dev-ml/cstruct
+ dev-ml/domain-name
+ dev-ml/fmt
+ dev-ml/gmap
+ dev-ml/ipaddr
+ dev-ml/logs
+ dev-ml/mirage-crypto[ec,pk,rng]
+ dev-ml/ocaml-base64
+ dev-ml/pbkdf
+ dev-ml/ptime
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/alcotest
+ dev-ml/cstruct[unix]
+ )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/xapi-test-utils/Manifest b/dev-ml/xapi-test-utils/Manifest
new file mode 100644
index 0000000000..0a08c7f46a
--- /dev/null
+++ b/dev-ml/xapi-test-utils/Manifest
@@ -0,0 +1 @@
+DIST xapi-test-utils-1.4.0.tar.gz 13201 BLAKE2B 7d2afe32bf71289922ec13413a013ce4255e078a6736f58c92f39fbbad37461e5fced7d1258c1147d1ec896b5458c14ee9c0b4a5b3894b333dc369a7128bd337 SHA512 dc939b0a7fe9cca227a7dc797c3c6e4cf1d6f7f851f20e50d0d97f03a25f89503be671defbab58bbb9638dbed2a57ebf07ae216fa612bef6f6c4ea38f3d38579
diff --git a/dev-ml/xapi-test-utils/metadata.xml b/dev-ml/xapi-test-utils/metadata.xml
new file mode 100644
index 0000000000..70ada5d582
--- /dev/null
+++ b/dev-ml/xapi-test-utils/metadata.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ xapi-project/xapi-test-utils
+
+
diff --git a/dev-ml/xapi-test-utils/xapi-test-utils-1.4.0.ebuild b/dev-ml/xapi-test-utils/xapi-test-utils-1.4.0.ebuild
new file mode 100644
index 0000000000..9700d133a9
--- /dev/null
+++ b/dev-ml/xapi-test-utils/xapi-test-utils-1.4.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune
+
+DESCRIPTION="An OCaml package with modules for easy unit testing"
+HOMEPAGE="https://github.com/xapi-project/xapi-test-utils"
+SRC_URI="https://github.com/xapi-project/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1-with-linking-exception"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test"
+
+DEPEND=""
+RDEPEND="
+ ${DEPEND}
+ test? ( dev-ml/alcotest )
+"
+
+RESTRICT="!test? ( test )"
diff --git a/dev-ml/xen-evtchn/Manifest b/dev-ml/xen-evtchn/Manifest
new file mode 100644
index 0000000000..72bf6af24d
--- /dev/null
+++ b/dev-ml/xen-evtchn/Manifest
@@ -0,0 +1 @@
+DIST xen-evtchn-v2.1.0.tbz 6877 BLAKE2B 458250df905a5b32f62161e06c637823c35933463418d13ee0b6aa2e7fd8146d9a019bf0bb6f8a125e73c0470789254728fceb27cfd24887660f246b87d48ea6 SHA512 df7d767432d450c19b5f26a85f9d442f5b5eab2013a1733c5b04b820043b61cad814813c322f7c6ce2f000b7428941b8a83f6c1059d0ee88947df9f16029d92d
diff --git a/dev-ml/xen-evtchn/metadata.xml b/dev-ml/xen-evtchn/metadata.xml
new file mode 100644
index 0000000000..d19b9659ba
--- /dev/null
+++ b/dev-ml/xen-evtchn/metadata.xml
@@ -0,0 +1,14 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ mirage/evtchn
+
+
+
diff --git a/dev-ml/xen-evtchn/xen-evtchn-2.1.0.ebuild b/dev-ml/xen-evtchn/xen-evtchn-2.1.0.ebuild
new file mode 100644
index 0000000000..ae76783a04
--- /dev/null
+++ b/dev-ml/xen-evtchn/xen-evtchn-2.1.0.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+MY_P="${PN}-v${PV}"
+
+DESCRIPTION="Xen event channel interface for Mirage"
+HOMEPAGE="https://github.com/mirage/ocaml-evtchn"
+SRC_URI="https://github.com/mirage/ocaml-evtchn/releases/download/v${PV}/${MY_P}.tbz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt test unix"
+
+RDEPEND="
+ dev-ml/lwt
+ dev-ml/lwt-dllist
+ dev-ml/cmdliner
+
+ unix? ( app-emulation/xen )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( dev-ml/ounit )
+"
+
+RESTRICT="!test? ( test )"
+REQUIRED_USE="test? ( unix )"
+
+src_compile() {
+ local pkgs="xen-evtchn"
+ use unix && pkgs="${pkgs},xen-evtchn-unix"
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install xen-evtchn
+ use unix && dune_src_install xen-evtchn-unix
+}
diff --git a/dev-ml/xen-gnt/Manifest b/dev-ml/xen-gnt/Manifest
index c541047b7b..94ee082a7a 100644
--- a/dev-ml/xen-gnt/Manifest
+++ b/dev-ml/xen-gnt/Manifest
@@ -1 +1 @@
-DIST xen-gnt-v4.0.0.tbz 11113 BLAKE2B fc96116ad592e5ba64169cbb56c9ff7837fbe512e74185b4b64aae5f37318c41ffa1944596e69c87352e0241de54717aea6ae65d02fe0929616b7be6bf9d2022 SHA512 add0a28fc21bde76cc84b2735efdff1dba1849a95e79cf5946eca9af9c1698a5cc68f0701459631b8eea15b0234942bbeb12e744fef6fccd84e29549303f57d0
+DIST xen-gnt-4.0.1.tbz 11525 BLAKE2B ff979644451edf867251a16e855760adfa90d248f6cf74d45271072d0e0cdda84c8d1263478670a4e013e846993d9f7b9e8bdbf8dee2ec5e48365131427127c6 SHA512 24d34dc8d21eb65a0ead77b47a772120c084844732d3c4243aa7a6b61a269668c380eb8e625faf06d7d53fe69fc986cc19caec9a188717bdcf850ddee968f839
diff --git a/dev-ml/xen-gnt/metadata.xml b/dev-ml/xen-gnt/metadata.xml
index e5f4c8ec96..ad55fc5375 100644
--- a/dev-ml/xen-gnt/metadata.xml
+++ b/dev-ml/xen-gnt/metadata.xml
@@ -8,4 +8,7 @@
mirage/ocaml-gnt
+
diff --git a/dev-ml/xen-gnt/xen-gnt-4.0.0.ebuild b/dev-ml/xen-gnt/xen-gnt-4.0.0.ebuild
deleted file mode 100644
index 843fe2e4cf..0000000000
--- a/dev-ml/xen-gnt/xen-gnt-4.0.0.ebuild
+++ /dev/null
@@ -1,31 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-inherit dune
-
-DESCRIPTION="OCaml bindings to the Xen grant tables libraries"
-HOMEPAGE="https://github.com/mirage/ocaml-gnt"
-SRC_URI="https://github.com/mirage/ocaml-gnt/releases/download/v${PV}/${PN}-v${PV}.tbz"
-S="${WORKDIR}/${PN}-v${PV}"
-
-LICENSE="ISC"
-SLOT="0/${PV}"
-KEYWORDS="~amd64"
-IUSE="ocamlopt"
-
-DEPEND="
- dev-ml/cstruct
- dev-ml/cmdliner
- <=dev-ml/io-page-2.2.0
- dev-ml/lwt
- dev-ml/lwt-dllist
- dev-ml/mirage-profile
-"
-RDEPEND="${DEPEND}"
-
-src_install() {
- dune_src_install xen-gnt
- dune_src_install xen-gnt-unix
-}
diff --git a/dev-ml/xen-gnt/xen-gnt-4.0.1.ebuild b/dev-ml/xen-gnt/xen-gnt-4.0.1.ebuild
new file mode 100644
index 0000000000..e92657c4fe
--- /dev/null
+++ b/dev-ml/xen-gnt/xen-gnt-4.0.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit dune multiprocessing
+
+DESCRIPTION="OCaml bindings to the Xen grant tables libraries"
+HOMEPAGE="https://github.com/mirage/ocaml-gnt"
+SRC_URI="https://github.com/mirage/ocaml-gnt/releases/download/v${PV}/${P}.tbz"
+
+LICENSE="ISC"
+SLOT="0/${PV}"
+KEYWORDS="~amd64"
+IUSE="ocamlopt unix"
+
+DEPEND="
+ >=dev-lang/ocaml-4.08.0:=[ocamlopt?]
+ dev-ml/cstruct:=
+ dev-ml/cmdliner:=
+ >=dev-ml/io-page-2.4.0:=
+ dev-ml/lwt:=
+ dev-ml/lwt-dllist:=
+ dev-ml/mirage-profile:=
+
+ unix? ( app-emulation/xen )
+"
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ local pkgs="xen-gnt"
+ if use unix ; then
+ pkgs="${pkgs},xen-gnt-unix"
+ fi
+ dune build -p "${pkgs}" -j $(makeopts_jobs) || die
+}
+
+src_install() {
+ dune_src_install xen-gnt
+ use unix && dune_src_install xen-gnt-unix
+}
diff --git a/dev-ml/xenstore-clients/xenstore-clients-1.1.0.ebuild b/dev-ml/xenstore-clients/xenstore-clients-1.1.0.ebuild
index 4fd43e2026..8c480bfc5f 100644
--- a/dev-ml/xenstore-clients/xenstore-clients-1.1.0.ebuild
+++ b/dev-ml/xenstore-clients/xenstore-clients-1.1.0.ebuild
@@ -13,13 +13,18 @@ S="${WORKDIR}/ocaml-${P}"
LICENSE="LGPL-2.1-with-linking-exception"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="ocamlopt"
+IUSE="ocamlopt test"
DEPEND="
- dev-ml/cstruct
+ dev-ml/lwt
dev-ml/xenstore
"
-RDEPEND="${DEPEND}"
+RDEPEND="
+ ${DEPEND}
+ test? ( dev-ml/ounit )
+"
+
+RESTRICT="!test? ( test )"
src_install() {
dune_src_install xenstore_transport
diff --git a/dev-python/XenAPI/XenAPI-22.14.0.ebuild b/dev-python/XenAPI/XenAPI-22.14.0.ebuild
index 0ecf932e72..4097ba38b5 100644
--- a/dev-python/XenAPI/XenAPI-22.14.0.ebuild
+++ b/dev-python/XenAPI/XenAPI-22.14.0.ebuild
@@ -19,32 +19,95 @@ S="${WORKDIR}/xen-api-${PV}"
LICENSE="LGPL-2"
SLOT="0"
-KEYWORDS=""
-IUSE="ocamlopt pam python"
+KEYWORDS="~amd64"
+IUSE="ocamlopt pam python test"
RDEPEND="
python? ( ${PYTHON_DEPS} )
+ app-emulation/xen
+ dev-libs/openssl
dev-libs/xxhash
- dev-ml/cstruct
- dev-ml/ezjsonm
- dev-ml/ezxenstore
- dev-ml/mtime
- dev-ml/rpc
- dev-ml/uuidm
- dev-ml/xapi-backtrace
- dev-ml/xapi-stdext
- dev-ml/xcp-inventory
- dev-ml/xcp-rrd
- dev-ml/xen-gnt
- dev-ml/xenctrl
- dev-ml/xenstore
- dev-ml/xenstore-clients
- dev-ml/xmlm
+ dev-ml/alcotest:=
+ dev-ml/angstrom:=
+ dev-ml/astring:=
+ dev-ml/async_inotify:=
+ dev-ml/async_unix:=
+ dev-ml/async:=
+ dev-ml/base-threads:=
+ dev-ml/base-unix:=
+ dev-ml/cdrom:=
+ dev-ml/cmdliner:=
+ dev-ml/cohttp:=[async,lwt,lwt-unix]
+ dev-ml/core:=
+ dev-ml/crc:=
+ dev-ml/cstruct:=[ppx,unix]
+ dev-ml/domain-name:=
+ dev-ml/dune-build-info:=
+ dev-ml/ezjsonm:=
+ dev-ml/ezxenstore:=
+ dev-ml/fd-send-recv:=
+ dev-ml/fmt:=
+ dev-ml/fpath:=
+ dev-ml/inotify:=
+ dev-ml/io-page:=[unix(-)]
+ dev-ml/ipaddr:=
+ dev-ml/logs:=
+ dev-ml/lwt:=
+ dev-ml/lwt_log:=
+ dev-ml/lwt_ssl:=
+ dev-ml/mirage-block-unix:=
+ dev-ml/mirage-crypto:=[pk]
+ dev-ml/mtime:=
+ dev-ml/mustache:=
+ dev-ml/nbd:=[unix]
+ dev-ml/netlink:=
+ dev-ml/ocaml-base64:=
+ dev-ml/ocaml-ctypes:=
+ dev-ml/ocaml-migrate-parsetree:=
+ dev-ml/ocaml-sha:=
+ dev-ml/pci:=
+ dev-ml/polly:=
+ dev-ml/ppx_sexp_conv:=
+ dev-ml/qmp:=
+ dev-ml/re:=
+ dev-ml/result:=
+ dev-ml/rpc:=[async]
+ dev-ml/rresult:=
+ dev-ml/sexplib:=
+ dev-ml/sexplib0:=
+ dev-ml/shared-block-ring:=
+ dev-ml/systemd:=
+ dev-ml/tar:=[unix]
+ dev-ml/uri:=
+ dev-ml/uuidm:=
+ dev-ml/uutf:=
+ dev-ml/vhd:=[lwt]
+ dev-ml/x509:=
+ dev-ml/xapi-backtrace:=
+ dev-ml/xapi-stdext:=
+ dev-ml/xapi-test-utils:=
+ dev-ml/xcp-inventory:=
+ dev-ml/xcp-rrd:=
+ dev-ml/xenctrl:=
+ dev-ml/xen-gnt:=[unix]
+ dev-ml/xenstore:=
+ dev-ml/xenstore-clients:=
+ dev-ml/xmlm:=
+ dev-ml/yojson:=
+ sys-libs/pam
+"
+DEPEND="
+ ${RDEPEND}
+ test? (
+ dev-ml/mirage-crypto[rng]
+ >=dev-ml/ounit-2
+ dev-ml/qcheck
+ )
"
-DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
src_compile() {
dune_src_compile
diff --git a/dev-python/asyncssh/asyncssh-2.10.0.ebuild b/dev-python/asyncssh/asyncssh-2.10.0.ebuild
index b874e75e0c..b3e8af92f9 100644
--- a/dev-python/asyncssh/asyncssh-2.10.0.ebuild
+++ b/dev-python/asyncssh/asyncssh-2.10.0.ebuild
@@ -5,6 +5,11 @@ EAPI=8
DOCS_BUILDER="sphinx"
DOCS_DIR="docs"
+EPYTEST_DESELECT=(
+ tests/test_connection.py::_TestConnection::test_connect_timeout_exceeded
+ tests/test_connection.py::_TestConnection::test_connect_timeout_exceeded_string
+ tests/test_connection.py::_TestConnection::test_connect_timeout_exceeded_tunnel
+) # network tests
PYTHON_COMPAT=( python3_{8..9} )
inherit distutils-r1 docs optfeature
diff --git a/dev-python/dotmap/Manifest b/dev-python/dotmap/Manifest
index e144385b38..0d06fae4db 100644
--- a/dev-python/dotmap/Manifest
+++ b/dev-python/dotmap/Manifest
@@ -1,2 +1,2 @@
-DIST dotmap-1.3.26.tar.gz 12070 BLAKE2B 28023eebf6437530f3f1ee541f138eaffbc632f441bc9698e2329ab8d9894510e04122f797a77416cbe498fde5092f5c0a821615c4e9fbd1959c75cce94f7cfc SHA512 5083fec8f9e909f68f0fa12db8709ca064d0fd134230f6d0fe315c66613983290bf7de35db29d805013b13024babf250e9110308817265d4e70b9dea5b9a132f
DIST dotmap-1.3.28.tar.gz 12097 BLAKE2B c172a3c4b8f4b10e2351d342cf38eed1ea8cac510eb4a66fa7df5660628fcf57056083af519f8360e78dce1d494185d2b09edfc7a4e7e604af658af15335fcc3 SHA512 9d16b1886884464cbe9df5d0af6426c869969767b9fee527cf108551d8f0d5d81f479d429350e31c89b9db2d3cc6d395945321f56688850dca7bfa2bbf273451
+DIST dotmap-1.3.30.tar.gz 12391 BLAKE2B f6e5713704d2f7c828c0a373174348900ebe39b72fd85456ed374a62f474c67e916b5956afeec246d8a6e9253b08c5e495c781d2915cecb38bee0d0b256810d2 SHA512 8e6d3e4419c3dbd1c0a3209dfc7bcda859bf547ab3fe88471c04a7f4c34219c9ca13b848788e6a24c6d3ece539f9ba0a16600f7941abdbd99c4e6d0badf4af27
diff --git a/dev-python/dotmap/dotmap-1.3.26.ebuild b/dev-python/dotmap/dotmap-1.3.30.ebuild
similarity index 100%
rename from dev-python/dotmap/dotmap-1.3.26.ebuild
rename to dev-python/dotmap/dotmap-1.3.30.ebuild
diff --git a/dev-python/ncclient/Manifest b/dev-python/ncclient/Manifest
index 923800b635..15fe4be7d4 100644
--- a/dev-python/ncclient/Manifest
+++ b/dev-python/ncclient/Manifest
@@ -1 +1,2 @@
DIST ncclient-0.6.12.tar.gz 129189 BLAKE2B 456791d422928b134aefc568f2ffa31ada9246c3e10e481724d57c56e8eb44353e402e828dfa34ee12edc7edb40e86a8e1ad12797666a7d12ecd9931e4377323 SHA512 ba1547579c830733f2f450ecafaf146a364b3a123f4cb0a3395e0ed19ad31025823b928d06acb537a531203a5ac65fc757b6fb34fefdde0f1e357e5f57bf73d0
+DIST ncclient-0.6.13.tar.gz 130399 BLAKE2B b6084b967d4099d5c40075bf1ea0a70a19f8b1eb75225113e74469ce3d6fa381d8398b920ae570895fb0d39af1dd2523816a343c1e110640324fd10e784fdfbe SHA512 650d07477d48cd209ef758ebd1716e48c4021c3d681f0ce2e9065ca5f34ace82079f5577884d26fc99e552c6f4cd7b59a9bf8866008e7b2985f1d8b23cc8d61f
diff --git a/dev-python/ncclient/ncclient-0.6.13.ebuild b/dev-python/ncclient/ncclient-0.6.13.ebuild
new file mode 100644
index 0000000000..5637bac607
--- /dev/null
+++ b/dev-python/ncclient/ncclient-0.6.13.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{8..10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Python library for NETCONF clients"
+HOMEPAGE="
+ https://github.com/ncclient/ncclient
+ https://pypi.org/project/ncclient/
+"
+SRC_URI="https://github.com/ncclient/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+ dev-python/lxml[${PYTHON_USEDEP}]
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( dev-python/mock[${PYTHON_USEDEP}] )"
+
+distutils_enable_tests nose
diff --git a/dev-python/ovsdbapp/Manifest b/dev-python/ovsdbapp/Manifest
index dc1a3c89f8..cd0401a7eb 100644
--- a/dev-python/ovsdbapp/Manifest
+++ b/dev-python/ovsdbapp/Manifest
@@ -1 +1 @@
-DIST ovsdbapp-1.15.1.tar.gz 106361 BLAKE2B 754195e6ed1c9f6e43c34df66976403e84390febf3dba71a73245a34fd0c277a72def3f5b8ce6ed56c0897d3de80737ce4be521a9aec0a6d3c24ca4a36b5503a SHA512 f4d6e983c883ca23827e8216f90f352926600e0cdcf32d524a1c912505e4672c143ed66bf2e1e1bbbba1578469befc559077828910862d7fc81db2b6ceb68887
+DIST ovsdbapp-1.16.0.tar.gz 105855 BLAKE2B 4aad43209c9c51c526fd101b8dc34108cd331b455ba36564fd3d2c1907f7eded0b7811926fb1cbae692d53f878d8f058928a796d310ab222143cdb0aa181f8d0 SHA512 035db0ebb6677cd43c8943f027d61f09f7413fed42cc9e1d84bc71cdb87bab0a44660c0d8df9ab6239df118952e0a5ead0cca67dfc2bf28d5f4c50f4930ed672
diff --git a/dev-python/ovsdbapp/ovsdbapp-1.15.1.ebuild b/dev-python/ovsdbapp/ovsdbapp-1.16.0.ebuild
similarity index 100%
rename from dev-python/ovsdbapp/ovsdbapp-1.15.1.ebuild
rename to dev-python/ovsdbapp/ovsdbapp-1.16.0.ebuild
diff --git a/dev-python/rchitect/Manifest b/dev-python/rchitect/Manifest
new file mode 100644
index 0000000000..0016442365
--- /dev/null
+++ b/dev-python/rchitect/Manifest
@@ -0,0 +1 @@
+DIST rchitect-0.3.36.tar.gz 32682 BLAKE2B dbd9dec8d60f0b3558d0b8fac5c3a02e5ce210778b941b4cd994ee7f815205a34897605a8a7cd29e96791f223ba9d611bdf3064b93f13647c98084e9d07747bc SHA512 53b9cd3cc5cd566d39e74fd70dcb9b6eeb259885b57dde6c42beaea775db07b12f0745abc996218d0df0522d3db39919e953eb1bc13b8e89f69f583b6323476c
diff --git a/dev-python/rchitect/files/rchitect-0.3.36-no-pytest-runner.patch b/dev-python/rchitect/files/rchitect-0.3.36-no-pytest-runner.patch
new file mode 100644
index 0000000000..41ee0be51f
--- /dev/null
+++ b/dev-python/rchitect/files/rchitect-0.3.36-no-pytest-runner.patch
@@ -0,0 +1,12 @@
+--- a/setup.py
++++ b/setup.py
+@@ -44,8 +44,7 @@
+ python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*',
+ install_requires=install_requires,
+ setup_requires=[
+- 'cffi>=1.10.0',
+- "pytest-runner"
++ 'cffi>=1.10.0'
+ ],
+ extras_require={
+ "test": [
diff --git a/dev-python/rchitect/metadata.xml b/dev-python/rchitect/metadata.xml
new file mode 100644
index 0000000000..0a6791078c
--- /dev/null
+++ b/dev-python/rchitect/metadata.xml
@@ -0,0 +1,16 @@
+
+
+
+
+ lssndrbarbieri@gmail.com
+ Alessandro Barbieri
+
+
+ randy3k/rchitect
+ rchitect
+
+ randy.cs.lai@gmail.com
+ Randy Lai
+
+
+
diff --git a/dev-python/rchitect/rchitect-0.3.36.ebuild b/dev-python/rchitect/rchitect-0.3.36.ebuild
new file mode 100644
index 0000000000..7210f6e6c2
--- /dev/null
+++ b/dev-python/rchitect/rchitect-0.3.36.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Interoperate R with Python"
+HOMEPAGE="
+ https://pypi.org/project/rchitect/
+ https://github.com/randy3k/rchitect
+"
+SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND=">=dev-python/cffi-1.10.0[${PYTHON_USEDEP}]"
+DEPEND="
+ ${RDEPEND}
+ >=dev-python/six-1.9.0[${PYTHON_USEDEP}]
+ dev-python/wheel[${PYTHON_USEDEP}]
+"
+BDEPEND="test? ( dev-python/pytest-mock[${PYTHON_USEDEP}] )"
+
+PATCHES=( "${FILESDIR}/${P}-no-pytest-runner.patch" )
+
+distutils_enable_tests pytest
diff --git a/dev-python/ufo2ft/Manifest b/dev-python/ufo2ft/Manifest
index fe175322b9..28493d4249 100644
--- a/dev-python/ufo2ft/Manifest
+++ b/dev-python/ufo2ft/Manifest
@@ -1,2 +1,2 @@
-DIST ufo2ft-2.25.3.tar.gz 173168 BLAKE2B 365a14dff4704f98a8c6ad1904420d01e367099e96d35fe9275e93dd30c4224d3c0f573fc5d0cb4bede7625e6eaeea58f14a1864fa22355ce4ee259f18a82f18 SHA512 eec5ddd997830bfb93c7545e94569d447f31f23ac74babe66bf5a3f552c709ef9add6da43b02a92f6990413aaa64b411dc8ed79151cf4debf5c38aadeb4ff856
DIST ufo2ft-2.26.0.tar.gz 173354 BLAKE2B 6271498143219e7a6870dc66eacf99a0ef4f6a0216d6d41e20b74517b0efa68f9a0a950c17c92d0a080a26c0761a86cf88d4918efb76658e233d9b08b76d1e9d SHA512 6a6d07603c0335adbe74f6913bfa3cb33d5eaaf6fb8b3ff0d92744bb2aaddcfa14bbfeedfd18215d3483fe39e4c6166352387b639768ce90a7d9c4905a79900d
+DIST ufo2ft-2.27.0.tar.gz 174521 BLAKE2B 2b80fa7bf234860e2d61940c662435d3f1a0f7a254e9a79a2acda1aded5b2948840a8e74455f177b6a76e6d5dc2950fc2328589cdc517a98b863cef228326594 SHA512 f1475424730a98d8eee4b1c3fcbcace97b55e8b5109cae5ad5a1de191d30483ac9ecfc8e1ade3eabb0d04e12dfb2bfc73478b17d637d65c566b7ddf41dc0caec
diff --git a/dev-python/ufo2ft/ufo2ft-2.25.3.ebuild b/dev-python/ufo2ft/ufo2ft-2.27.0.ebuild
similarity index 100%
rename from dev-python/ufo2ft/ufo2ft-2.25.3.ebuild
rename to dev-python/ufo2ft/ufo2ft-2.27.0.ebuild
diff --git a/dev-util/annobin/Manifest b/dev-util/annobin/Manifest
index a38c6d64be..2704283dd1 100644
--- a/dev-util/annobin/Manifest
+++ b/dev-util/annobin/Manifest
@@ -1 +1,2 @@
DIST annobin-10.60.tar.xz 848432 BLAKE2B df7dafd25af009bf0cbe779088892bd11120cf99f587293f7730083007586d84c452737d4e3b32e2b73586ab51958ba8f16d358cef9041ccb493198e72bc1b37 SHA512 7d5158da6a59000d686fb837b0ac1a86351898c00a93e29c2cb599ec6eccb325b66fbd775855bd3661d2d9541e3d2cb2493b087b6670fca137f9992f33c68082
+DIST annobin-10.62.tar.xz 849684 BLAKE2B 363cc54f56199e210edb82549b7743f9d70e62f481faab7363f715ce3ab2f127e9025f04cf92ccbd0402804df4fe8ff1c92259639b32b6c76f47eb82de0c022b SHA512 60f65d80158dc074f9293ae4d35e312a8b2129b20e10eb3268d335be215e8eee9f6bb0efc341bcaae7169a32a5fbdbf8d81fd372e6b3c793d7380682e1baf595
diff --git a/dev-util/annobin/annobin-10.62.ebuild b/dev-util/annobin/annobin-10.62.ebuild
new file mode 100644
index 0000000000..2a3dfe7f1a
--- /dev/null
+++ b/dev-util/annobin/annobin-10.62.ebuild
@@ -0,0 +1,89 @@
+# Copyright 2018-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LLVM_MAX_SLOT=14
+
+inherit autotools llvm toolchain-funcs
+
+DESCRIPTION="Binary annotation compiler plugin and tools"
+HOMEPAGE="https://nickc.fedorapeople.org"
+SRC_URI="https://nickc.fedorapeople.org/${P}.tar.xz"
+
+KEYWORDS="~amd64"
+LICENSE="GPL-3"
+SLOT="0"
+IUSE="clang doc llvm test"
+
+RDEPEND="
+ app-arch/rpm
+ dev-libs/elfutils
+ sys-libs/binutils-libs
+
+ clang? ( ${P}.tar.gz
+ $(cargo_crate_uris)
+"
+LICENSE="
+ || ( 0BSD Apache-2.0 MIT )
+ || ( Apache-2.0 Boost-1.0 )
+ || ( Apache-2.0 Boost-1.0 MIT )
+ || ( Apache-2.0 MIT )
+ || ( Apache-2.0 MIT ZLIB )
+ || ( Apache-2.0-with-LLVM-exceptions Apache-2.0 MIT )
+ || ( MIT Unlicense )
+ Apache-2.0
+ BSD
+ CC0-1.0
+ MIT
+ MPL-2.0
+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+ssl"
+
+DEPEND="ssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}"
+
+QA_FLAGS_IGNORED="usr/bin/.*"
+
+src_configure() {
+ use ssl || features="--no-default-features"
+ cargo_src_configure "${features}"
+}
+
+src_install() {
+ cargo_src_install
+ dodoc README.md
+}
diff --git a/dev-util/gftools/Manifest b/dev-util/gftools/Manifest
index e204848705..5f89122daf 100644
--- a/dev-util/gftools/Manifest
+++ b/dev-util/gftools/Manifest
@@ -1,3 +1,3 @@
DIST GlyphsInfo-e33ccf3515cc5b8005a3a50b4163663623649d20.tar.gz 576525 BLAKE2B 306146533d15e412e8e18f072a1fd55770310fd7a85e0a8cb956f1262622e40776b60c1bb729701b419c155970870a55a398cf01257e0b4f4a338c8714232c79 SHA512 7481f524273e73cbb7827ee6ddf9ae63852b44440e9ef5097c6fea643e99912195f0257e9140ca17738a208559c36d8dbec51ec9ec5f24cd9510d5989378be13
-DIST gftools-0.9.4.tar.gz 4645902 BLAKE2B e74e94d195bb3c49f453dec09372dfa2d42fc8c2abba79a23106dc605f94992efd2c239b7ace8b96e4677629cbf230c4e08d379683aebd1a0a60b6fdc4aeff1e SHA512 ab26899b844f60cbe9a15f9ad01675a3e317c64590339efcc3efc1bfb67b5a05364dfefd7dc3433246c6b5c50bd89a42d438398b4535c04782ca67c192935a3b
DIST gftools-0.9.5.tar.gz 4649591 BLAKE2B 8bb31da074b973718c4354a2e7eafaedbe5a45927f108c16ebcf3b8f8764647800cc83b5c079d66bd54426896278bba80008e855d27a3c3c20f1aa76178f1aa5 SHA512 d996147df5be58cdb5cfd5399afd71c4f88e6199e023e749216351be8cbe1f43061b871d80961e8be13936da6d331bea19f9361e3ec5a50a66c104814117d87b
+DIST gftools-0.9.6.tar.gz 4648604 BLAKE2B b1d0a7b68e0df56810255b5bde514a9ba3ad803e8d722e4e2efb2e176bb5bd92dc631b53ff192be951107a0fdf00030f14ab98d1fa39a3951c7a11c38e3dadd9 SHA512 5483eaeb4bf8b46b7f80058b1294d0617522d16f0110b075fc72c9cf1740ce1ce23b7ccef933a524010e05f9742528f60dd2fabedd1981564d2d3edf9a088fb1
diff --git a/dev-util/gftools/gftools-0.9.4.ebuild b/dev-util/gftools/gftools-0.9.6.ebuild
similarity index 98%
rename from dev-util/gftools/gftools-0.9.4.ebuild
rename to dev-util/gftools/gftools-0.9.6.ebuild
index e197ff1052..896f41d007 100644
--- a/dev-util/gftools/gftools-0.9.4.ebuild
+++ b/dev-util/gftools/gftools-0.9.6.ebuild
@@ -53,6 +53,7 @@ RDEPEND="
dev-python/jinja[${PYTHON_USEDEP}]
dev-python/hyperglot[${PYTHON_USEDEP}]
>=dev-python/fontFeatures-1.6.2[${PYTHON_USEDEP}]
+ dev-python/vharfbuzz[${PYTHON_USEDEP}]
')
"
DEPEND="
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass
index 6cbf9d7d35..51765af2b4 100644
--- a/eclass/R-packages.eclass
+++ b/eclass/R-packages.eclass
@@ -1,9 +1,25 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
+# @ECLASS: R-packages.eclass
+# @AUTHOR:
+# André Erdmann
+# Denis Dupeyron
+# Benda Xu
+# Alessandro Barbieri
+# @BLURB: eclass to build R packages
+# @MAINTAINER:
+# Alessandro Barbieri
+# @SUPPORTED_EAPIS: 7
+
inherit eutils optfeature toolchain-funcs
-EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst
+case ${EAPI} in
+ 7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI} unsupported."
+esac
+
+EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_postinst
SRC_URI="mirror://cran/src/contrib/${PN}_${PV}.tar.gz"
HOMEPAGE="https://cran.r-project.org/package=${PN}"
@@ -12,14 +28,24 @@ SLOT="0"
DEPEND="dev-lang/R"
RDEPEND="${DEPEND}"
+BDEPEND="sys-apps/pkgcore"
-dodocrm() {
+# @FUNCTION: _movelink
+# @INTERNAL
+# @USAGE: [ ]
+# @DESCRIPTION:
+# will contain symlinks to everything in
+_movelink() {
if [ -e "${1}" ]; then
- dodoc -r "${1}"
- rm -rf "${1}" || die
+ local rp1="$(realpath ${1})" || die
+ mv "${rp1}" "${2}" || die
+ cp -rsf "${2}" "${rp1}" || die
fi
}
+# @FUNCTION: R-packages_src_unpack
+# @DESCRIPTION:
+# function to unpack R packages into the right folder
R-packages_src_unpack() {
unpack ${A}
if [[ -d "${PN//_/.}" ]] && [[ ! -d "${P}" ]]; then
@@ -27,43 +53,91 @@ R-packages_src_unpack() {
fi
}
+# @FUNCTION: R-packages_src_prepare
+# @DESCRIPTION:
+# function to remove unwanted files from the sources
R-packages_src_prepare() {
rm -f LICENSE || die
default
}
+# @FUNCTION: R-packages_src_configure
+# @DESCRIPTION:
+# dummy function to disable configure
+R-packages_src_configure() { :; }
+
+# @FUNCTION: R-packages_src_compile
+# @DESCRIPTION:
+# function that will pass some environment variables to R and then build/install the package
R-packages_src_compile() {
- MAKEFLAGS="AR=$(tc-getAR) CFLAGS=${CFLAGS// /\\ } CXXFLAGS=${CXXFLAGS// /\\ } FFLAGS=${FFLAGS// /\\ } FCFLAGS=${FCFLAGS// /\\ } LDFLAGS=${LDFLAGS// /\\ }" R CMD INSTALL . -l "${WORKDIR}" "--byte-compile" || die
+ MAKEFLAGS=" \
+ ${MAKEFLAGS// /\\ } \
+ AR=$(tc-getAR) \
+ CC=$(tc-getCC) \
+ CPP=$(tc-getCPP) \
+ CXX=$(tc-getCXX) \
+ FC=$(tc-getFC) \
+ LD=$(tc-getLD) \
+ NM=$(tc-getNM) \
+ RANLIB=$(tc-getRANLIB) \
+ CFLAGS=${CFLAGS// /\\ } \
+ CPPFLAGS=${CPPFLAGS// /\\ } \
+ CXXFLAGS=${CXXFLAGS// /\\ } \
+ FFLAGS=${FFLAGS// /\\ } \
+ FCFLAGS=${FCFLAGS// /\\ } \
+ LDFLAGS=${LDFLAGS// /\\ } \
+ MAKEOPTS=${MAKEOPTS// /\\ } \
+ " \
+ R CMD INSTALL . -l "${WORKDIR}" "--byte-compile" || die
}
+
+# @FUNCTION: R-packages_src_install
+# @DESCRIPTION:
+# function to move the files in the right folders
+# documentation and examples to docsdir, symlinked back to R site-library (to allow access from within R)
+# everything else to R site-library
R-packages_src_install() {
- cd "${WORKDIR}/${PN//_/.}" || die
+ pushd "${WORKDIR}/${PN//_/.}" || die
- dodocrm examples || die
- #dodocrm DESCRIPTION || die #keep this
- dodocrm NEWS.md || die
- dodocrm README.md || die
- dodocrm html || die
+ local DOCS_DIR="${ED}/usr/share/doc/${PF}"
- if [ -e doc ]; then
- if [ -e doc/html ]; then
- docinto "${DOCSDIR}/html"
- dodoc -r doc/*.html
- rm -r doc/*.html || die
- docompress -x "${DOCSDIR}/html"
- fi
+ mkdir -p "${DOCS_DIR}" || die
- docinto "${DOCSDIR}"
- dodoc -r doc/.
- rm -r doc || die
+ for i in NEWS.md README.md DESCRIPTION examples ; do
+ _movelink "${i}" "${DOCS_DIR}/${i}" || die
+ done
+
+ if [ -e html ]; then
+ _movelink html "${DOCS_DIR}/html" || die
+ docompress -x "${DOCS_DIR}/html"
fi
+ if [ -e doc ]; then
+ pushd doc || die
+ for i in * ; do
+ _movelink "${i}" "${DOCS_DIR}/${i}" || die
+ done
+ popd || die
+ fi
+ if [ -e doc/html ]; then
+ docompress -x "${DOCS_DIR}/html"
+ fi
+ docompress -x "${DOCS_DIR}"
insinto "/usr/$(get_libdir)/R/site-library"
doins -r "${WORKDIR}/${PN//_/.}"
}
+# @FUNCTION: R-packages_pkg_postinst
+# @DESCRIPTION:
+# function that will prompt to install the suggested packages if they exist
R-packages_pkg_postinst() {
if [ -v SUGGESTED_PACKAGES ]; then
- optfeature "having the upstream suggested packages" "${SUGGESTED_PACKAGES}"
+ for p in ${SUGGESTED_PACKAGES} ; do
+ pexist=$(pquery -n1 "${p}" 2>/dev/null) || die
+ if [ -n "${pexist}" ]; then
+ optfeature "having the upstream suggested package" "${p}"
+ fi
+ done
fi
}
diff --git a/eclass/octaveforge.eclass b/eclass/octaveforge.eclass
index 8a7fe03963..b9303884cf 100644
--- a/eclass/octaveforge.eclass
+++ b/eclass/octaveforge.eclass
@@ -1,43 +1,72 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-#
-# Original Author: Rafael G. Martins
-# Purpose: octaveforge helper eclass.
-#
+# @ECLASS: octaveforge.eclass
+# @AUTHOR:
+# Rafael G. Martins
+# Alessandro Barbieri
+# @BLURB: octaveforge helper eclass.
+# @MAINTAINER:
+# Alessandro Barbieri
+# @SUPPORTED_EAPIS: 8
+
+inherit autotools
+
+case ${EAPI} in
+ 8) ;;
+ *) die "${ECLASS}: EAPI ${EAPI} unsupported."
+esac
+
+EXPORT_FUNCTIONS src_unpack src_prepare src_install pkg_postinst pkg_prerm pkg_postrm
# @ECLASS-VARIABLE: OCTAVEFORGE_CAT
# @DESCRIPTION:
# the octave-forge category of the package.
OCTAVEFORGE_CAT="${OCTAVEFORGE_CAT:-main}"
+# @ECLASS-VARIABLE: REPO_URI
+# @DESCRIPTION:
+# URI to the sourceforge octave-forge repository
REPO_URI="http://svn.code.sf.net/p/octave/code/trunk/octave-forge"
-inherit autotools
-SRC_URI="mirror://sourceforge/octave/${P}.tar.gz"
+# defining some paths
+
+# @ECLASS-VARIABLE: OCT_ROOT
+# @DESCRIPTION:
+# full path to octave share
+OCT_ROOT="/usr/share/octave"
+
+# @ECLASS-VARIABLE: OCT_PKGDIR
+# @DESCRIPTION:
+# path to octave pkgdir
+OCT_PKGDIR="${OCT_ROOT}/packages"
+
+# @ECLASS-VARIABLE: OCT_BIN
+# @DESCRIPTION:
+# full path to octave binary
+OCT_BIN="$(type -p octave)"
SRC_URI="
- ${SRC_URI}
+ mirror://sourceforge/octave/${P}.tar.gz
${REPO_URI}/packages/package_Makefile.in -> octaveforge_Makefile
${REPO_URI}/packages/package_configure.in -> octaveforge_configure
"
SLOT="0"
-# defining some paths
-OCT_ROOT="/usr/share/octave"
-OCT_PKGDIR="${OCT_ROOT}/packages"
-OCT_BIN="$(type -p octave)"
-
-EXPORT_FUNCTIONS src_unpack src_prepare src_install pkg_postinst pkg_prerm pkg_postrm
-
+# @FUNCTION: octaveforge_src_unpack
+# @DESCRIPTION:
+# function to unpack and set the correct S
octaveforge_src_unpack() {
default
if [ ! -d "${WORKDIR}/${P}" ]; then
S="${WORKDIR}/${PN}"
- cd "${S}" || die
+ pushd "${S}" || die
fi
}
+# @FUNCTION: octaveforge_src_prepare
+# @DESCRIPTION:
+# function to add octaveforge specific makefile and configure and run autogen.sh if available
octaveforge_src_prepare() {
for filename in Makefile configure; do
cp "${DISTDIR}/octaveforge_${filename}" "${S}/${filename}" || die
@@ -48,7 +77,9 @@ octaveforge_src_prepare() {
chmod 0755 "${S}/configure" || die
if [ -e "${S}/src/autogen.sh" ]; then
- cd "${S}/src" && ./autogen.sh || die 'failed to run autogen.sh'
+ pushd "${S}/src" || die
+ ./autogen.sh || die 'failed to run autogen.sh'
+ popd || die
fi
if [ -e "${S}/src/Makefile" ]; then
sed -i 's/ -s / /g' "${S}/src/Makefile" || die 'sed failed.'
@@ -56,6 +87,10 @@ octaveforge_src_prepare() {
eapply_user
}
+# @FUNCTION: octaveforge_src_install
+# @DESCRIPTION:
+# function to install the octave package
+# documentation to docsdir
octaveforge_src_install() {
emake DESTDIR="${D}" DISTPKG='Gentoo' install
if [ -d doc/ ]; then
@@ -63,12 +98,20 @@ octaveforge_src_install() {
fi
}
+# @FUNCTION: octaveforge_pkg_postinst
+# @DESCRIPTION:
+# function that will rebuild the octave package database
octaveforge_pkg_postinst() {
einfo "Registering ${CATEGORY}/${PF} on the Octave package database."
- [ -d "${OCT_PKGDIR}" ] || mkdir -p "${OCT_PKGDIR}" || die
+ if [ ! -d "${OCT_PKGDIR}" ] ; then
+ mkdir -p "${OCT_PKGDIR}" || die
+ fi
"${OCT_BIN}" -H -q --no-site-file --eval "pkg('rebuild');" &> /dev/null || die 'failed to register the package.'
}
+# @FUNCTION: octaveforge_pkg_prerm
+# @DESCRIPTION:
+# function that will run on_uninstall routines to prepare the package to remove
octaveforge_pkg_prerm() {
einfo 'Running on_uninstall routines to prepare the package to remove.'
local pkgdir=$(
@@ -89,8 +132,13 @@ octaveforge_pkg_prerm() {
fi
}
+# @FUNCTION: octaveforge_pkg_postrm
+# @DESCRIPTION:
+# function that will rebuild the octave package database
octaveforge_pkg_postrm() {
einfo 'Rebuilding the Octave package database.'
- [ -d "${OCT_PKGDIR}" ] || mkdir -p "${OCT_PKGDIR}" || die
+ if [ ! -d "${OCT_PKGDIR}" ] ; then
+ mkdir -p "${OCT_PKGDIR}" || die
+ fi
"${OCT_BIN}" -H --silent --eval 'pkg rebuild' &> /dev/null || die 'failed to rebuild the package database'
}
diff --git a/media-gfx/gephi-bin/Manifest b/media-gfx/gephi-bin/Manifest
index 76e18d1cfa..b09f60de1a 100644
--- a/media-gfx/gephi-bin/Manifest
+++ b/media-gfx/gephi-bin/Manifest
@@ -1 +1,2 @@
DIST gephi-0.9.2-linux.tar.gz 80846981 BLAKE2B fccf8bc9ce1e1d422582ba5ac223c0608ac130150cb76eb079409f2357a24d097487d5b05d63c34a607757c2fb11d822202618c331fe3148c20a545ad36504cf SHA512 ea90a2f7c8e4cb63364dd0245bde68527048e5d2a807422c4ab3bf7d05373af982c4cde50774131d0a810ef0c31a7cbfaef3f4b1c46e458c7696c856072d20cd
+DIST gephi-0.9.3-linux-x64.tar.gz 141499507 BLAKE2B eb7f31f9f33308678a7429bf1eddf7fd5a89d3a175ab84505d57e3de9f8c387eb951bcc435c3d0075248847f11b5ed99a7eb8110ebd875c4dbd2a164d41deb53 SHA512 4d88d2c1371f54f2bdefc1b9b7ee1e6d68ba29e8c447c55ba29fc75acdc1b69c21e1c236efe95605cc5ef4a4ca0237615cbcec0293fa73a91d7b3d7ecf3e67b1
diff --git a/media-gfx/gephi-bin/gephi-bin-0.9.3.ebuild b/media-gfx/gephi-bin/gephi-bin-0.9.3.ebuild
new file mode 100644
index 0000000000..f953a0958e
--- /dev/null
+++ b/media-gfx/gephi-bin/gephi-bin-0.9.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MYPN="${PN/-bin/}"
+MYP="${MYPN}-${PV}"
+
+DESCRIPTION="The Open Graph Viz Platform"
+HOMEPAGE="
+ https://gephi.org/
+ https://github.com/gephi/gephi
+"
+SRC_URI="https://github.com/gephi/gephi/releases/download/v${PV}/${MYP}-linux-x64.tar.gz"
+S="${WORKDIR}"
+
+LICENSE="CDDL GPL-3"
+SLOT="0"
+KEYWORDS="-* ~amd64"
+RDEPEND="virtual/jre:1.8"
+
+RESTRICT="strip"
+
+QA_PREBUILT="/opt/${MYPN}/platform/modules/lib/amd64/linux/libjnidispatch-nb.so"
+
+src_prepare() {
+ sed -e 's|jdkhome=.*|jdkhome=\$(java-config -O)|g' -i "${S}/${MYP}/etc/gephi.conf" || die
+
+ #remove windows things
+ rm -r "${S}/${MYP}"/bin/*.exe || die
+ rm -r "${S}/${MYP}"/platform/lib/*.exe || die
+ rm -r "${S}/${MYP}"/platform/lib/*.dll || die
+ rm -r "${S}/${MYP}/platform/modules/lib/x86" || die #windows only
+ rm -r "${S}/${MYP}"/platform/modules/lib/amd64/*.dll || die
+
+ rm -rf "${S}/${MYP}/platform/modules/lib/i386" || die
+ rm -rf "${S}/${MYP}/platform/modules/lib/aarch64" || die
+
+ # remove bundled jre
+ rm -rf "${S}/${MYP}/jre-x64" || die
+
+ eapply_user
+}
+
+src_install() {
+ insinto "/opt/${MYPN}"
+ doins -r "${MYP}"/*
+ keepdir "/opt/${MYPN}/etc"
+ fperms a+x "/opt/${MYPN}/bin/gephi"
+ fperms a+x "/opt/${MYPN}/platform/lib/nbexec"
+ dosym "../../opt/${MYPN}/bin/gephi" "${EPREFIX}/usr/bin/gephi"
+}
diff --git a/media-libs/imgui/Manifest b/media-libs/imgui/Manifest
index 9bbf158f09..582ac2320d 100644
--- a/media-libs/imgui/Manifest
+++ b/media-libs/imgui/Manifest
@@ -1,2 +1,3 @@
+DIST cimgui-1.87.tar.gz 385460 BLAKE2B 0916d53a00234343536ee412035a2c405b01e31a26c3d059cff4d446188ee8a1835a1233a68f671ccebb67be480801b85203a90b0e79fa729f7ac1efdc8bf4a2 SHA512 bf2ed9461e8c12514d29914e6da7f8fae7cd31fcc587c7d89122c950541aed3b4b908d8cd298b3975e9a955a47789335a88db7223ca558cbdf459693a0081bda
DIST imgui-1.83.tar.gz 1448389 BLAKE2B 648306bd69181ad8315f12fc5b2c319b23005d6b3fc790ad64caaf1f80304e81b33af5d6f435fa97151fcf1e77eb15455838a09570b7a9c7dd9c56a61510b5a1 SHA512 2150e7101f384b1c749b2e89876b2085a7ff43435f04e88602d0e5e00db7a41c1ace5176bdb0963326845d1c8303b5092a7ca1c9c8e70c522ba96f899ed5bb9c
DIST imgui-1.87.tar.gz 1460834 BLAKE2B f73b71400311e7c5f82248e242a932add5090670c78077ca2239f349730bab88a00bfe4deca4e854772ef7f6a2cff1fc0f38f7174a026995f93c9e7b55eb2a1d SHA512 3255b06698ab9c8951953e1e0b6d160d64adfa4c011b21a4288547292a7f8fff586875faf9dae0677818bde65bd7e98da92f16f6beb1e6a66aa835edf32e8ce2
diff --git a/media-libs/imgui/files/cimgui-1.87-fix-cmake.patch b/media-libs/imgui/files/cimgui-1.87-fix-cmake.patch
new file mode 100644
index 0000000000..b3bae1cfeb
--- /dev/null
+++ b/media-libs/imgui/files/cimgui-1.87-fix-cmake.patch
@@ -0,0 +1,69 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,21 +1,13 @@
+ cmake_minimum_required(VERSION 3.1)
+
+-project(cimgui)
++project(libcimgui)
+
+-if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui_tables.cpp)
+- set(TABLES_SOURCE "imgui/imgui_tables.cpp")
+-else()
+ set(TABLES_SOURCE "")
+-endif()
+
+
+ #general settings
+ file(GLOB IMGUI_SOURCES
+ cimgui.cpp
+- imgui/imgui.cpp
+- imgui/imgui_draw.cpp
+- imgui/imgui_demo.cpp
+- imgui/imgui_widgets.cpp
+ ${TABLES_SOURCE}
+ )
+
+@@ -24,34 +16,30 @@
+ set(IMGUI_LIBRARIES )
+
+ if(IMGUI_FREETYPE)
+- FIND_PACKAGE(freetype REQUIRED PATHS ${FREETYPE_PATH})
+- list(APPEND IMGUI_LIBRARIES freetype)
+- list(APPEND IMGUI_SOURCES imgui/misc/freetype/imgui_freetype.cpp)
++ list(APPEND IMGUI_LIBRARIES -lfreetype)
+ add_definitions("-DCIMGUI_FREETYPE=1")
+ endif(IMGUI_FREETYPE)
+
+ #add library and link
+ if (IMGUI_STATIC)
+- add_library(cimgui STATIC ${IMGUI_SOURCES})
++ add_library(libcimgui STATIC ${IMGUI_SOURCES})
+ else (IMGUI_STATIC)
+- add_library(cimgui SHARED ${IMGUI_SOURCES})
++ add_library(libcimgui SHARED ${IMGUI_SOURCES})
+ endif (IMGUI_STATIC)
+
+-target_compile_definitions(cimgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1)
+ if (WIN32)
+- target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t__declspec\(dllexport\))
++ target_compile_definitions(libcimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t__declspec\(dllexport\))
+ list(APPEND IMGUI_LIBRARIES imm32)
+ else (WIN32)
+- target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t)
++ target_compile_definitions(libcimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t)
+ endif (WIN32)
+
+-target_include_directories(cimgui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+-target_include_directories(cimgui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/imgui)
+-set_target_properties(cimgui PROPERTIES PREFIX "")
+-target_link_libraries(cimgui ${IMGUI_LIBRARIES})
++target_include_directories(libcimgui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/imgui)
++set_target_properties(libcimgui PROPERTIES PREFIX "")
++target_link_libraries(libcimgui PUBLIC -limgui)
+
+ #install
+-install(TARGETS cimgui
++install(TARGETS libcimgui
+ RUNTIME DESTINATION .
+ LIBRARY DESTINATION .
+ ARCHIVE DESTINATION .
diff --git a/media-libs/imgui/imgui-1.87-r1.ebuild b/media-libs/imgui/imgui-1.87-r2.ebuild
similarity index 64%
rename from media-libs/imgui/imgui-1.87-r1.ebuild
rename to media-libs/imgui/imgui-1.87-r2.ebuild
index 4339ad3865..f51097b79e 100644
--- a/media-libs/imgui/imgui-1.87-r1.ebuild
+++ b/media-libs/imgui/imgui-1.87-r2.ebuild
@@ -3,16 +3,25 @@
EAPI=8
-inherit flag-o-matic toolchain-funcs
+inherit cmake flag-o-matic toolchain-funcs
+
+CMAKE_IN_SOURCE_BUILD=1
DESCRIPTION="Bloat-free graphical user interface library for C++"
-HOMEPAGE="https://github.com/ocornut/imgui"
-SRC_URI="https://github.com/ocornut/imgui/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+HOMEPAGE="
+ https://github.com/ocornut/imgui
+ https://github.com/cimgui/cimgui
+"
+SRC_URI="
+ https://github.com/ocornut/imgui/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/cimgui/cimgui/archive/refs/tags/${PV}.tar.gz -> c${P}.tar.gz
+"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="allegro examples freetype glfw glut opengl sdl vulkan"
+IUSE="allegro bindings examples freetype glfw glut opengl sdl vulkan"
+S="${WORKDIR}/c${P}"
RDEPEND="
allegro? ( media-libs/allegro:5 )
@@ -27,12 +36,20 @@ DEPEND="
${RDEPEND}
vulkan? ( dev-util/vulkan-headers )
"
-BDEPEND="virtual/pkgconfig"
+BDEPEND="
+ bindings? ( dev-lang/luajit )
+ virtual/pkgconfig
+"
+PATCHES=( "${FILESDIR}/c${P}-fix-cmake.patch" )
REQUIRED_USE="
|| (
allegro
- || ( glfw glut sdl )
+ || (
+ glfw
+ glut
+ sdl
+ )
|| ( opengl vulkan )
)
examples? (
@@ -46,45 +63,75 @@ REQUIRED_USE="
"
src_prepare() {
+ pushd ../ || die
+ rm -rf "${S}/imgui" || die
+ mv "${P}" "${S}/imgui" || die
+ pushd "${S}/imgui" || die
+
+ # imgui
rm -r examples/libs || die
rm -r misc/*/*.ttf || die
rm -r misc/single_file || die
- default
+
+ # cimgui
+ if use bindings; then
+ pushd "${S}" || die
+ cmake_src_prepare
+ else
+ eapply_user
+ fi
}
src_configure() {
+ pushd imgui || die
+
+ # imgui
tc-export CXX
append-cppflags "-DIMGUI_USE_WCHAR32"
- append-cxxflags "-I${S} -I${S}/backends -I${S}/misc/freetype -fPIC -fpermissive"
+ COMMONFLAGS="-I${S}/imgui -I${S}/imgui/backends -I${S}/imgui/misc/freetype -fPIC -fpermissive"
local PKGCONF="$(tc-getPKG_CONFIG)" || die
use allegro && append-libs "-lallegro -lallegro_main -lallegro_primitives"
if use freetype; then
append-cppflags "-DIMGUI_ENABLE_FREETYPE -DIMGUI_ENABLE_STB_TRUETYPE"
- append-cxxflags "$(${PKGCONF} --cflags freetype2)" || die
+ COMMONFLAGS="${COMMONFLAGS} $(${PKGCONF} --cflags freetype2)" || die
append-libs "$(${PKGCONF} --libs freetype2)" || die
fi
if use glfw; then
append-libs "$(${PKGCONF} --libs glfw3)" || die
- append-cxxflags "$(${PKGCONF} --cflags glfw3)" || die
+ COMMONFLAGS="${COMMONFLAGS} $(${PKGCONF} --cflags glfw3)" || die
fi
if use glut; then
append-libs "$(${PKGCONF} --libs freeglut)" || die
- append-cxxflags "$(${PKGCONF} --cflags freeglut)" || die
+ COMMONFLAGS="${COMMONFLAGS} $(${PKGCONF} --cflags freeglut)" || die
fi
use opengl && append-libs "-lGL"
if use sdl; then
append-libs "-ldl $(sdl2-config --libs)" || die
- append-cxxflags "$(sdl2-config --cflags)" || die
+ COMMONFLAGS="${COMMONFLAGS} $(sdl2-config --cflags)" || die
fi
if use vulkan; then
append-libs "$(${PKGCONF} --libs vulkan)" || die
- append-cxxflags "$(${PKGCONF} --cflags vulkan)" || die
+ COMMONFLAGS="${COMMONFLAGS} $(${PKGCONF} --cflags vulkan)" || die
append-cppflags "-DImTextureID=ImU64" || die
fi
+ append-cxxflags "${COMMONFLAGS}"
+ popd || die
+
+ # cimgui
+ if use bindings; then
+ local mycmakeargs=(
+ -DIMGUI_FREETYPE=$(usex freetype)
+ -DIMGUI_STATIC=OFF
+ )
+ cmake_src_configure
+ fi
}
src_compile() {
+ pushd imgui || die
+
+ # imgui
set -x || die
local objects=()
@@ -137,14 +184,39 @@ src_compile() {
if use examples; then
mkdir ex || die
for f in allegro5 glfw_opengl{2,3} glfw_vulkan null sdl_opengl{2,3} sdl_{sdlrenderer,vulkan} glut_opengl2 ; do
- ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIE examples/example_${f}/main.cpp "-L${S}" -limgui ${LIBS} -o "${S}/ex/example_${f}" || die
+ ${CXX} ${CXXFLAGS} ${CPPFLAGS} ${LDFLAGS} -fPIE examples/example_${f}/main.cpp "-L${S}/imgui" -limgui ${LIBS} -o "${S}/imgui/ex/example_${f}" || die
done
fi
set +x || die
+ popd || die
+
+ # cimgui
+ if use bindings; then
+ pushd generator || die
+ local myargs=()
+ use allegro && myargs+=( allegro5 )
+ use glfw && myargs+=( glfw )
+ use glut && myargs+=( glut )
+ use opengl && myargs+=( opengl3 opengl2 )
+ use sdl && myargs+=( sdl sdlrenderer )
+ use vulkan && myargs+=( vulkan )
+ myargs+=( ${CFLAGS} ${COMMONFLAGS} ${CPPFLAGS} )
+
+ if use freetype ; then
+ luajit ./generator.lua gcc "internal freetype" ${myargs[@]} || die
+ else
+ luajit ./generator.lua gcc "internal" ${myargs[@]} || die
+ fi
+ popd || die
+ cmake_src_compile
+ fi
}
src_install() {
+ pushd imgui || die
+
+ # imgui
dolib.so libimgui.so
dodoc docs/*
insinto "/usr/include/imgui"
@@ -164,4 +236,14 @@ src_install() {
dodoc -r examples
docompress -x "/usr/share/doc/${PF}/examples"
fi
+
+ popd || die
+
+ # cimgui
+ if use bindings; then
+ dolib.so libcimgui.so
+ insinto "/usr/share/doc/${PF}/cimgui"
+ doins README.md TODO.txt
+ doheader cimgui.h
+ fi
}
diff --git a/media-libs/imgui/metadata.xml b/media-libs/imgui/metadata.xml
index 2a6d52b5da..766c22dfc3 100644
--- a/media-libs/imgui/metadata.xml
+++ b/media-libs/imgui/metadata.xml
@@ -9,9 +9,11 @@
https://github.com/ocornut/imgui/issues
ocornut/imgui
+ cimgui/cimgui