diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2021-07-27 11:01:37 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2021-07-27 11:01:53 +0100 |
commit | 6463561c4ad46c1eeb2280f055caa326bfd13767 (patch) | |
tree | 37a3628cb12134f2b16f731bf93a5208a1856e95 /dev-haskell/blaze-textual | |
parent | app-admin/prelude-manager: IUSE="tcpwrapper" → "tcpd" (diff) | |
download | gentoo-6463561c4ad46c1eeb2280f055caa326bfd13767.tar.gz gentoo-6463561c4ad46c1eeb2280f055caa326bfd13767.tar.bz2 gentoo-6463561c4ad46c1eeb2280f055caa326bfd13767.zip |
dev-haskell/blaze-textual: allow ghc[-gmp]
Reported-by: Toralf Förster
Closes: https://bugs.gentoo.org/790467
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'dev-haskell/blaze-textual')
3 files changed, 40 insertions, 5 deletions
diff --git a/dev-haskell/blaze-textual/blaze-textual-0.2.1.0.ebuild b/dev-haskell/blaze-textual/blaze-textual-0.2.1.0.ebuild index d4950a1b2dc7..909db630574a 100644 --- a/dev-haskell/blaze-textual/blaze-textual-0.2.1.0.ebuild +++ b/dev-haskell/blaze-textual/blaze-textual-0.2.1.0.ebuild @@ -1,7 +1,7 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 # ebuild generated by hackport 0.6.6.9999 #hackport: flags: -developer,-native @@ -16,9 +16,6 @@ SRC_URI="https://hackage.haskell.org/package/${P}/${P}.tar.gz" LICENSE="BSD" SLOT="0/${PV}" KEYWORDS="~amd64 ~x86" -IUSE="" - -RESTRICT=test # fails tests RDEPEND=">=dev-haskell/blaze-builder-0.2.1.4:=[profile?] >=dev-haskell/double-conversion-0.2.0.1:=[profile?] @@ -34,6 +31,11 @@ DEPEND="${RDEPEND} >=dev-haskell/test-framework-quickcheck2-0.2.9 ) " +PATCHES=( + "${FILESDIR}"/${PN}-0.2.1.0-ghc-9.0.patch + "${FILESDIR}"/${PN}-0.2.1.0-integer-simple-fallback.patch +) + src_configure() { haskell-cabal_src_configure \ --flag=-developer \ diff --git a/dev-haskell/blaze-textual/files/blaze-textual-0.2.1.0-ghc-9.0.patch b/dev-haskell/blaze-textual/files/blaze-textual-0.2.1.0-ghc-9.0.patch new file mode 100644 index 000000000000..86dfdb602fcb --- /dev/null +++ b/dev-haskell/blaze-textual/files/blaze-textual-0.2.1.0-ghc-9.0.patch @@ -0,0 +1,22 @@ +commit c93b53a4aaad5a6ee2ddf90010957981d75d3579 (HEAD -> master, origin/master, origin/HEAD) +Author: Andrey Prokopenko <persiantiger@yandex.ru> +Date: Sun Apr 18 01:21:37 2021 +0300 + + Hide `quoteRemInteger` import for base-4.15.0.0 + +diff --git a/Blaze/Text/Int.hs b/Blaze/Text/Int.hs +index 58cdbf4..bf395a3 100644 +--- a/Blaze/Text/Int.hs ++++ b/Blaze/Text/Int.hs +@@ -23,7 +23,10 @@ import Data.Int (Int8, Int16, Int32, Int64) + import Data.Monoid (mappend, mempty) + import Data.Word (Word, Word8, Word16, Word32, Word64) + import GHC.Base (quotInt, remInt) ++#if MIN_VERSION_base(4,15,0) ++#else + import GHC.Num (quotRemInteger) ++#endif + import GHC.Types (Int(..)) + + #if defined(INTEGER_GMP) + diff --git a/dev-haskell/blaze-textual/files/blaze-textual-0.2.1.0-integer-simple-fallback.patch b/dev-haskell/blaze-textual/files/blaze-textual-0.2.1.0-integer-simple-fallback.patch new file mode 100644 index 000000000000..44ff8fdc6ff6 --- /dev/null +++ b/dev-haskell/blaze-textual/files/blaze-textual-0.2.1.0-integer-simple-fallback.patch @@ -0,0 +1,11 @@ +Allow ghc[-gmp] to discover integer-simple: https://bugs.gentoo.org/790467 +--- a/blaze-textual.cabal ++++ b/blaze-textual.cabal +@@ -39,7 +39,6 @@ flag native + flag integer-simple + description: use integer-simple instead of integer-gmp + default: False +- manual: True + + library + exposed-modules: |