dns-client-10.2.5nest
download
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DUNE_PKG_NAME="dns-client dns-client-lwt dns-client-miou-unix dns-client-mirage"
inherit dune
MY_PN="ocaml-dns"
DESCRIPTION="OCaml implementation of the DNS protocol"
HOMEPAGE="https://github.com/mirage/ocaml-dns"
SRC_URI="https://github.com/mirage/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${MY_PN}-${PV}"
LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"
RDEPEND="dev-ml/ca-certs:0=[ocamlopt?]
dev-ml/ca-certs-nss:0=[ocamlopt?]
dev-ml/dns:0=[ocamlopt?]
dev-ml/domain-name:0=[ocamlopt?]
dev-ml/fmt:0=[ocamlopt?]
dev-ml/happy-eyeballs:0=[ocamlopt?]
dev-ml/ipaddr:0=[ocamlopt?]
dev-ml/lwt:0=[ocamlopt?]
dev-ml/miou:0=[ocamlopt?]
dev-ml/mirage-crypto:0=[ocamlopt?]
dev-ml/mirage-mtime:0=[ocamlopt?]
dev-ml/mirage-ptime:0=[ocamlopt?]
dev-ml/mirage-sleep:0=[ocamlopt?]
dev-ml/mtime:0=
dev-ml/randomconv:0=[ocamlopt?]
dev-ml/tcpip:0=[ocamlopt?]
dev-ml/tls:0=[ocamlopt?]
dev-ml/x509:0=[ocamlopt?]"
BDEPEND="test? ( dev-ml/alcotest )"
src_compile() {
dune-compile ${DUNE_PKG_NAME}
}
src_test() {
dune-test ${DUNE_PKG_NAME}
}