blob: 45314002aa296126f306924957db24b13f2e90d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/blaze-html/blaze-html-0.5.0.0.ebuild,v 1.2 2012/09/12 15:44:14 qnikst Exp $
EAPI=4
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="A blazingly fast HTML combinator library for Haskell"
HOMEPAGE="http://jaspervdj.be/blaze"
SRC_URI="mirror://hackage/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RDEPEND=">=dev-haskell/blaze-builder-0.2[profile?]
<dev-haskell/blaze-builder-0.4[profile?]
>=dev-haskell/blaze-markup-0.5.1[profile?]
<dev-haskell/blaze-markup-0.6[profile?]
>=dev-haskell/text-0.10[profile?]
<dev-haskell/text-0.12[profile?]
>=dev-lang/ghc-6.10.1"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.8
test? (
=dev-haskell/hunit-1.2*
=dev-haskell/quickcheck-2.4*
>=dev-haskell/test-framework-0.4 <dev-haskell/test-framework-0.7
=dev-haskell/test-framework-hunit-0.2*
=dev-haskell/test-framework-quickcheck2-0.2*
)"
src_prepare() {
sed -e 's@bytestring >= 0.9 && < 0.10@bytestring >= 0.9 \&\& < 0.11@g' \
-e 's@containers >= 0.3 && < 0.5@containers >= 0.3 \&\& < 0.6@' \
-i "${S}/${PN}.cabal" || die "Could not loosen dependencies"
}
src_configure() {
cabal_src_configure $(use test && use_enable test tests) #395351
}
|