# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # ebuild generated by hackport 0.8.4.0 #hackport: flags: -doctests CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" inherit haskell-cabal DESCRIPTION="A collection of IP cores for Clash" HOMEPAGE="https://github.com/clash-lang/clash-compiler" SRC_URI="https://github.com/clash-lang/clash-compiler/archive/refs/tags/v${PV}.tar.gz" S="${WORKDIR}/clash-compiler-${PV}/${PN}" CABAL_FILE="${S}/${CABAL_PN}.cabal" LICENSE="BSD-2" SLOT="0/${PV}" KEYWORDS="~amd64" IUSE="haddock nix +unittests" RDEPEND="dev-haskell/clash-lib:=[profile?] dev-haskell/clash-prelude:=[profile?] dev-haskell/constraints:=[profile?] >=dev-haskell/ghc-typelits-extra-0.3.2:=[profile?] >=dev-haskell/ghc-typelits-knownnat-0.6:=[profile?] >=dev-haskell/ghc-typelits-natnormalise-0.6:=[profile?] >=dev-haskell/infinite-list-0.1:=[profile?] =dev-haskell/prettyprinter-1.2.0.1:=[profile?] =dev-haskell/prettyprinter-interp-0.2:=[profile?] =dev-haskell/reducers-3.12.2:=[profile?] =dev-haskell/string-interpolate-0.3:=[profile?] =dev-haskell/text-1.2.2:=[profile?] =dev-lang/ghc-8.8.1:= " DEPEND="${RDEPEND} >=dev-haskell/cabal-3.0.0.0 test? ( unittests? ( dev-haskell/clash-prelude-hedgehog dev-haskell/hedgehog >=dev-haskell/tasty-1.2 =dev-haskell/tasty-hedgehog-1.2.0 dev-haskell/tasty-hunit dev-haskell/tasty-quickcheck dev-haskell/tasty-th ) ) " src_configure() { haskell-cabal_src_configure \ --flag=-doctests \ $(cabal_flag haddock haddock) \ $(cabal_flag nix nix) \ $(cabal_flag unittests unittests) }