diff options
Diffstat (limited to 'dev-haskell/cabal/cabal-3.2.1.0-r2.ebuild')
-rw-r--r-- | dev-haskell/cabal/cabal-3.2.1.0-r2.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-haskell/cabal/cabal-3.2.1.0-r2.ebuild b/dev-haskell/cabal/cabal-3.2.1.0-r2.ebuild new file mode 100644 index 000000000000..f7ec4a9eae1f --- /dev/null +++ b/dev-haskell/cabal/cabal-3.2.1.0-r2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# ebuild generated by hackport 0.8.0.0.9999 +#hackport: flags: -parsec-struct-diff + +CABAL_HACKAGE_REVISION=1 +CABAL_PN="Cabal" + +# Drop test-suite due to "circular" dependencies with quickcheck +CABAL_FEATURES="lib profile haddock hoogle hscolour" # test-suite +CABAL_FEATURES+=" nocabaldep" # in case installed Cabal is broken +inherit haskell-cabal + +DESCRIPTION="A framework for packaging Haskell software" +HOMEPAGE="https://www.haskell.org/cabal/" + +LICENSE="BSD" +SLOT="0/${PV}" +# Keep in sync with relevant ghc versions (CABAL_CORE_LIB_GHC_PV) +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" # ~ppc ~ppc64 ~ppc-macos ~x86-macos ~x86-solaris + +RESTRICT=test # circular deps: cabal -> quickcheck -> cabal + +RDEPEND=" + >=dev-lang/ghc-8.4.3:= +" +DEPEND="${RDEPEND} +" +# test? ( +# >=dev-haskell/base-compat-0.11.0 <dev-haskell/base-compat-0.12 +# >=dev-haskell/base-orphans-0.6 <dev-haskell/base-orphans-0.9 +# >=dev-haskell/diff-0.4 <dev-haskell/diff-0.5 +# >=dev-haskell/integer-logarithms-1.0.2 <dev-haskell/integer-logarithms-1.1 +# >=dev-haskell/optparse-applicative-0.13.2.0 <dev-haskell/optparse-applicative-0.16 +# >=dev-haskell/quickcheck-2.14 <dev-haskell/quickcheck-2.15 +# >=dev-haskell/stm-2.4.5.0 <dev-haskell/stm-2.6 +# dev-haskell/tagged +# >=dev-haskell/tar-0.5.0.3 <dev-haskell/tar-0.6 +# >=dev-haskell/tasty-1.2.3 <dev-haskell/tasty-1.4 +# >=dev-haskell/tasty-golden-2.3.1.1 <dev-haskell/tasty-golden-2.4 +# dev-haskell/tasty-hunit +# dev-haskell/tasty-quickcheck +# dev-haskell/temporary +# >=dev-haskell/tree-diff-0.1 <dev-haskell/tree-diff-0.2 +# ) + +src_prepare() { + haskell-cabal_src_prepare + + # Cabal bootstraps with 'ghc --make' without package cleanup in environment. + # That causes module collisions at build: + # - pulseaudio: Distribution/Utils/Structured.hs:98:1: error: Ambiguous module name ‘Data.Time’: it was found in multiple packages: pulseaudio-0.0.2.1 time-1.9.3 + # - kinds: Distribution/Utils/Structured.hs:106:1: error: Ambiguous module name ‘Data.Kind’: it was found in multiple packages: base-4.14.1.0 kinds-0.0.1.5 + HCFLAGS="${HCFLAGS} -ignore-package=pulseaudio" + HCFLAGS="${HCFLAGS} -ignore-package=kinds" +} + +src_configure() { + haskell-cabal_src_configure \ + --flag=-parsec-struct-diff +} + +CABAL_CORE_LIB_GHC_PV="8.10.6 8.10.7" |