dev-haskell/sha: amd64, x86 stable, bug #559988
authorSergei Trofimovich <slyfox@gentoo.org>
Sat, 19 Sep 2015 13:56:38 +0000 (14:56 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Sat, 19 Sep 2015 15:52:40 +0000 (16:52 +0100)
Package-Manager: portage-2.2.20

dev-haskell/sha/sha-1.6.4.2.ebuild

index c1c37c05ab7ff478421726b66180058681d74d84..e796c590c23c05efcf69960796cdc3526a9ddc6c 100644 (file)
@@ -19,9 +19,11 @@ SRC_URI="mirror://hackage/packages/archive/${MY_PN}/${PV}/${MY_P}.tar.gz"
 
 LICENSE="BSD"
 SLOT="0/${PV}"
-KEYWORDS="~amd64 ~x86 ~amd64-linux"
+KEYWORDS="amd64 x86 ~amd64-linux"
 IUSE="exe"
 
+RESTRICT=test # fails to build on ghc-7.6, https://ghc.haskell.org/trac/ghc/ticket/8657
+
 RDEPEND=">=dev-haskell/binary-0.7:=[profile?] <dev-haskell/binary-10000:=[profile?]
        >=dev-lang/ghc-7.4.1:=
 "
@@ -34,6 +36,11 @@ DEPEND="${RDEPEND}
 
 S="${WORKDIR}/${MY_P}"
 
+src_prepare() {
+       cabal_chdeps \
+               ' -O2' ' '
+}
+
 src_configure() {
        haskell-cabal_src_configure \
                --flag=decoderinterface \