blob: 974089152605f9414ff01cd08a05f151092233aa (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xmobar/xmobar-0.9.2-r1.ebuild,v 1.2 2009/12/15 21:41:37 kolmodin Exp $
CABAL_FEATURES="bin"
inherit base haskell-cabal
DESCRIPTION="A Minimalistic Text Based Status Bar"
HOMEPAGE="http://code.haskell.org/~arossato/xmobar"
SRC_URI="http://hackage.haskell.org/packages/archive/${PN}/${PV}/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 -sparc ~x86"
IUSE="xft unicode mail"
RDEPEND=">=dev-lang/ghc-6.6.1
dev-haskell/filepath
dev-haskell/mtl
dev-haskell/parsec
dev-haskell/stm
unicode? ( dev-haskell/utf8-string )
xft? ( dev-haskell/utf8-string
dev-haskell/x11-xft )
mail? ( dev-haskell/hinotify )"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-1.2"
PATCHES=("${FILESDIR}/${P}-*")
src_compile() {
CABAL_CONFIGURE_FLAGS="--constraint=base<4"
if use xft; then
CABAL_CONFIGURE_FLAGS="$CABAL_CONFIGURE_FLAGS --flags=with_xft"
else
CABAL_CONFIGURE_FLAGS="$CABAL_CONFIGURE_FLAGS --flags=-with_xft"
fi
if use unicode; then
CABAL_CONFIGURE_FLAGS="$CABAL_CONFIGURE_FLAGS --flags=with_utf8"
else
CABAL_CONFIGURE_FLAGS="$CABAL_CONFIGURE_FLAGS --flags=-with_utf8"
fi
if use mail; then
CABAL_CONFIGURE_FLAGS="$CABAL_CONFIGURE_FLAGS --flags=with_inotify"
else
CABAL_CONFIGURE_FLAGS="$CABAL_CONFIGURE_FLAGS --flags=-with_inotify"
fi
cabal_src_compile
}
src_install() {
cabal_src_install
dodoc xmobar.config-sample README
}
|