blob: a070e38de25318c19386f20f0ba2d3970aa0cf6f (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/hslogger/hslogger-1.0.2.ebuild,v 1.2 2007/12/15 16:33:12 dcoutts Exp $
CABAL_FEATURES="profile haddock lib"
inherit haskell-cabal versionator
DESCRIPTION="Versatile logging framework"
HOMEPAGE="http://software.complete.org/hslogger"
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~sparc ~x86"
IUSE=""
DEPEND=">=dev-lang/ghc-6.4.2
dev-haskell/network
dev-haskell/mtl"
src_unpack() {
unpack "${A}"
cabal-mksetup
sed -i -e "s/mtl/mtl, unix/" \
"${S}/hslogger.cabal"
if version_is_at_least "6.8" "$(ghc-version)"; then
sed -i -e '/Build-Depends:/a \
, containers' \
"${S}/hslogger.cabal"
sed -i -e '1i{-# LANGUAGE PatternSignatures #-}' \
"${S}/src/System/Log/Logger.hs"
fi
}
|