dev-ml/qcheck - 0.27 (gentoo)

Search

Package Information

Description:
QuickCheck inspired property-based testing for OCaml
Homepage:
https://github.com/c-cube/qcheck
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
0.27 8 ~amd64 ~arm64 ~x86 0/0.27
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit dune

DESCRIPTION="QuickCheck inspired property-based testing for OCaml"
HOMEPAGE="https://github.com/c-cube/qcheck"
SRC_URI="https://github.com/c-cube/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0/${PV}"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="+ocamlopt"
RESTRICT="test"  # tests fail

RDEPEND="
	dev-ml/alcotest:=[ocamlopt?]
	dev-ml/ounit2:=[ocamlopt?]
	dev-ml/ppxlib:=[ocamlopt?]
"
DEPEND="${RDEPEND}"

src_install() {
	# "ppx_deriving_qcheck" does not install but only "ppx_pbt" depends on it
	local i
	for i in qcheck qcheck-alcotest qcheck-core qcheck-ounit ; do
		dune_src_install ${i}
	done

	einstalldocs
}

src_test() {
	emake test
}

USE Flags

ocamlopt
Default: Enabled (+)

Dependencies

DEPEND

	dev-ml/alcotest:=[ocamlopt?]
	dev-ml/ounit2:=[ocamlopt?]
	dev-ml/ppxlib:=[ocamlopt?]

RDEPEND

	dev-ml/alcotest:=[ocamlopt?]
	dev-ml/ounit2:=[ocamlopt?]
	dev-ml/ppxlib:=[ocamlopt?]

Manifest for 0.27

Type File Size Source URLs
DIST qcheck-0.27.tar.gz 264834 bytes https://github.com/c-cube/qcheck/archive/v0.27.tar.gz