diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-03-15 21:09:51 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-03-15 22:32:58 +0000 |
commit | 270d5721400d5226738ebc04d07842e02f27fa32 (patch) | |
tree | 3b2da346623ea8b67c22ca956b1473644b032114 /dev-haskell | |
parent | dev-haskell/hackage-security: bump up to 0.6.0.1 (diff) | |
download | gentoo-270d5721400d5226738ebc04d07842e02f27fa32.tar.gz gentoo-270d5721400d5226738ebc04d07842e02f27fa32.tar.bz2 gentoo-270d5721400d5226738ebc04d07842e02f27fa32.zip |
dev-haskell/cabal-install: bump up to 3.2.0.0
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell')
-rw-r--r-- | dev-haskell/cabal-install/Manifest | 1 | ||||
-rw-r--r-- | dev-haskell/cabal-install/cabal-install-3.2.0.0.ebuild | 74 | ||||
-rw-r--r-- | dev-haskell/cabal-install/files/cabal-install-3.2.0.0-rankntypes.patch | 11 |
3 files changed, 86 insertions, 0 deletions
diff --git a/dev-haskell/cabal-install/Manifest b/dev-haskell/cabal-install/Manifest index b2cccfa8c911..7a714dca594a 100644 --- a/dev-haskell/cabal-install/Manifest +++ b/dev-haskell/cabal-install/Manifest @@ -1 +1,2 @@ DIST cabal-install-3.0.0.0.tar.gz 654045 BLAKE2B 5036948651098b83f073b5ce29e2aaa31e4382f07e8b1e79d206889bd9c74fb88789f4b1cbb3bddc6d03375a6e3a3e164d6bda4ea19e3f944904ab11d7693fce SHA512 0b15313fc11bc6b6018e01b6a3a65242306977c16ce9333ea1191c1ce0020b180451235a7a65b47bc01791e05d1b246bf9d573fc7e981a46fcfc7da0fed04cca +DIST cabal-install-3.2.0.0.tar.gz 632084 BLAKE2B 55cdbddebed17489f1c031bd867de7868878aa289193b826dd8274860e4f08d48f71cad33af1b62da16f71629ae4ff5745c3ceeada1680dbcc222793eba49a06 SHA512 ad937b2df42b688e4608aa2b91a25daf1042e5573626202e5182cbfeca9acc5933194853405a6396c60d0d28d6d0d5c5276fd85cb6acf4be2c8cd12afe747062 diff --git a/dev-haskell/cabal-install/cabal-install-3.2.0.0.ebuild b/dev-haskell/cabal-install/cabal-install-3.2.0.0.ebuild new file mode 100644 index 000000000000..085a26c438fa --- /dev/null +++ b/dev-haskell/cabal-install/cabal-install-3.2.0.0.ebuild @@ -0,0 +1,74 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# ebuild generated by hackport 0.6.5.9999 +# hackport: flags: -debug-conflict-sets,-debug-expensive-assertions,-debug-tracetree +CABAL_FEATURES="" +inherit haskell-cabal + +DESCRIPTION="The command-line interface for Cabal and Hackage" +HOMEPAGE="https://www.haskell.org/cabal/" +SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +# keep in sync with ghc-8.10 +KEYWORDS="~amd64 ~x86" +IUSE="+native-dns" + +RDEPEND=">=dev-haskell/async-2.0:= <dev-haskell/async-2.3:= + >=dev-haskell/base16-bytestring-0.1.1:= <dev-haskell/base16-bytestring-0.2:= + >=dev-haskell/cabal-3.2:= <dev-haskell/cabal-3.3:= + >=dev-haskell/cryptohash-sha256-0.11:= <dev-haskell/cryptohash-sha256-0.12:= + >=dev-haskell/echo-0.1.3:= <dev-haskell/echo-0.2:= + >=dev-haskell/edit-distance-0.2.2:= <dev-haskell/edit-distance-0.3:= + >=dev-haskell/fail-4.9:= <dev-haskell/fail-4.10:= + >=dev-haskell/hackage-security-0.6.0.0:= <dev-haskell/hackage-security-0.7:= + >=dev-haskell/hashable-1.0:= <dev-haskell/hashable-1.4:= + >=dev-haskell/http-4000.1.5:= <dev-haskell/http-4000.4:= + >=dev-haskell/lukko-0.1:= <dev-haskell/lukko-0.2:= + >=dev-haskell/mtl-2.0:= <dev-haskell/mtl-2.3:= + >=dev-haskell/network-2.6:= <dev-haskell/network-3.2:= + >=dev-haskell/network-uri-2.6.0.2:= <dev-haskell/network-uri-2.7:= + >=dev-haskell/parsec-3.1.13.0:= <dev-haskell/parsec-3.2:= + >=dev-haskell/random-1:= <dev-haskell/random-1.2:= + >=dev-haskell/semigroups-0.18.3:= <dev-haskell/semigroups-0.20:= + >=dev-haskell/stm-2.0:= <dev-haskell/stm-2.6:= + >=dev-haskell/tar-0.5.0.3:= <dev-haskell/tar-0.6:= + >=dev-haskell/text-1.2.3:= <dev-haskell/text-1.3:= + >=dev-haskell/zlib-0.5.3:= <dev-haskell/zlib-0.7:= + >=dev-lang/ghc-7.10.1:= + native-dns? ( >=dev-haskell/resolv-0.1.1:= <dev-haskell/resolv-0.2:= ) +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.22.2.0 +" + +PATCHES=( "${FILESDIR}"/${P}-rankntypes.patch ) + +src_prepare() { + default + + cabal_chdeps \ + 'base >= 4.8 && < 4.14' 'base >= 4.8' + #if use noprefs; then + # epatch "${FILESDIR}/${PN}"-0.13.3-nopref.patch + #fi + + # no chance to link to -threaded on ppc64, alpha and others + # who use UNREG, not only ARM + if ! ghc-supports-threaded-runtime; then + cabal_chdeps '-threaded' ' ' + fi + eapply_user +} + +src_configure() { + haskell-cabal_src_configure \ + --flags=-debug-conflict-sets \ + --flags=-debug-expensive-assertions \ + --flags=-debug-tracetree \ + $(cabal_flag native-dns native-dns) +} diff --git a/dev-haskell/cabal-install/files/cabal-install-3.2.0.0-rankntypes.patch b/dev-haskell/cabal-install/files/cabal-install-3.2.0.0-rankntypes.patch new file mode 100644 index 000000000000..fa98278a277d --- /dev/null +++ b/dev-haskell/cabal-install/files/cabal-install-3.2.0.0-rankntypes.patch @@ -0,0 +1,11 @@ +diff --git a/Distribution/Client/Sandbox.hs b/Distribution/Client/Sandbox.hs +index 66b415d..6aa71bb 100644 +--- a/Distribution/Client/Sandbox.hs ++++ b/Distribution/Client/Sandbox.hs +@@ -1,5 +1,6 @@ + {-# LANGUAGE CPP #-} + {-# LANGUAGE FlexibleContexts #-} ++{-# LANGUAGE RankNTypes #-} + ----------------------------------------------------------------------------- + -- | + -- Module : Distribution.Client.Sandbox |