# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # ebuild generated by hackport 0.9.1.0.9999 CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" inherit haskell-cabal DESCRIPTION="A library of statistical types, data, and functions" HOMEPAGE="https://github.com/haskell/statistics" LICENSE="BSD-2" SLOT="0/${PV}" KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" IUSE="benchpapi" PATCHES=( "${FILESDIR}/${PN}-0.16.5.0-cabal-doctest.patch" ) RDEPEND=">=dev-haskell/aeson-0.6.0.0:=[profile?] >=dev-haskell/async-2.2.2:=[profile?] =dev-haskell/data-default-class-0.1.2:=[profile?] >=dev-haskell/dense-linear-algebra-0.1:=[profile?] =dev-haskell/math-functions-0.3.4.1:=[profile?] >=dev-haskell/mwc-random-0.15.3.0:=[profile?] >=dev-haskell/parallel-3.2.2.0:=[profile?] =dev-haskell/primitive-0.3:=[profile?] >=dev-haskell/random-1.2:=[profile?] >=dev-haskell/vector-0.10:=[profile?] >=dev-haskell/vector-algorithms-0.4:=[profile?] >=dev-haskell/vector-binary-instances-0.2.1:=[profile?] dev-haskell/vector-th-unbox:=[profile?] >=dev-lang/ghc-9.0.2:= " DEPEND="${RDEPEND} >=dev-haskell/cabal-3.4.1.0 test? ( >=dev-haskell/doctest-0.15 =dev-haskell/cabal-doctest-1.0.9 =dev-haskell/ieee754-0.7.3 >=dev-haskell/quickcheck-2.7.5 dev-haskell/tasty dev-haskell/tasty-expected-failure dev-haskell/tasty-hunit dev-haskell/tasty-quickcheck ) " src_configure() { use test && export GHC_BOOTSTRAP_PACKAGES+=( cabal-doctest ) haskell-cabal_src_configure \ $(cabal_flag benchpapi benchpapi) }