/[gentoo-x86]/dev-haskell/hslogger/hslogger-1.0.2.ebuild
Gentoo

Contents of /dev-haskell/hslogger/hslogger-1.0.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Tue Aug 2 17:51:04 2011 UTC (7 years, 1 month ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Removed old.

(Portage version: 2.1.10.7/cvs/Linux x86_64)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-haskell/hslogger/hslogger-1.0.2.ebuild,v 1.3 2010/07/24 19:02:14 slyfox Exp $
4
5 CABAL_FEATURES="profile haddock lib"
6 inherit haskell-cabal versionator
7
8 DESCRIPTION="Versatile logging framework"
9 HOMEPAGE="http://software.complete.org/hslogger"
10 SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
11
12 LICENSE="LGPL-2.1"
13 SLOT="0"
14 KEYWORDS="~amd64 ~sparc ~x86"
15 IUSE=""
16
17 DEPEND=">=dev-lang/ghc-6.4.2
18 dev-haskell/network
19 dev-haskell/mtl"
20
21 src_unpack() {
22 unpack ${A}
23 cabal-mksetup
24 sed -i -e "s/mtl/mtl, unix/" \
25 "${S}/hslogger.cabal"
26
27 if version_is_at_least "6.8" "$(ghc-version)"; then
28 sed -i -e '/Build-Depends:/a \
29 , containers' \
30 "${S}/hslogger.cabal"
31 sed -i -e '1i{-# LANGUAGE PatternSignatures #-}' \
32 "${S}/src/System/Log/Logger.hs"
33 fi
34 }

  ViewVC Help
Powered by ViewVC 1.1.20