# Copyright 1999-2025 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_HACKAGE_REVISION=1 CABAL_FEATURES="lib profile haddock hoogle hscolour test-suite" inherit haskell-cabal DESCRIPTION="Extend Cabal build-depends from the command line" HOMEPAGE="https://hackage.haskell.org/package/cabal-add" LICENSE="BSD" SLOT="0/${PV}" KEYWORDS="~amd64" #USE="cabal-syntax" forced as mandatory for ghc >= 9.4 RESTRICT=test #Unit tests pass, but not those from Main.hs CABAL_TEST_REQUIRED_BINS=( cabal-add ) RDEPEND=">=dev-haskell/cabal-3.8:=[profile?] =dev-haskell/cabal-install-parsers-0.4.1:=[profile?] =dev-haskell/cabal-syntax-3.8:=[profile?] =dev-haskell/optparse-applicative-0.16:=[profile?] =dev-lang/ghc-9.0.2:= " DEPEND="${RDEPEND} >=dev-haskell/cabal-3.4.1.0 test? ( >=dev-haskell/diff-0.4 dev-haskell/string-qq dev-haskell/tasty dev-haskell/temporary ) " src_configure() { haskell-cabal_src_configure \ --flag=cabal-syntax }