# 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="GHC plugin for checked numeric literals" HOMEPAGE="https://github.com/clash-lang/checked-literals" LICENSE="BSD-2" SLOT="0/${PV}" KEYWORDS="~amd64" PATCHES=( "${FILESDIR}"/${P}-doctest.patch ) RDEPEND=">=dev-haskell/ghc-typelits-extra-0.5:=[profile?] =dev-haskell/ghc-typelits-knownnat-0.8:=[profile?] =dev-haskell/ghc-typelits-natnormalise-0.9:=[profile?] =dev-haskell/syb-0.7:=[profile?] =dev-lang/ghc-9.6:=[profile?] =dev-lang/ghc-9.6.2:= " DEPEND="${RDEPEND} >=dev-haskell/cabal-3.10.1.0 test? ( >=dev-haskell/string-interpolate-0.3.4.0 >=dev-haskell/tasty-0.10 >=dev-haskell/tasty-hunit-0.9 dev-haskell/temporary dev-haskell/cabal-doctest ) " src_configure() { use test && export GHC_BOOTSTRAP_PACKAGES+=( cabal-doctest ) haskell-cabal_src_configure }