# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="4" CABAL_FEATURES="bin" inherit git haskell-cabal DESCRIPTION="A minimalistic text-based status bar" HOMEPAGE="http://code.haskell.org/~arossato/xmobar" SRC_URI="" EGIT_REPO_URI="git://github.com/jaor/xmobar" LICENSE="BSD" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="xft unicode mail mpd wifi" DEPEND="dev-haskell/mtl dev-haskell/parsec dev-haskell/stm dev-haskell/time dev-haskell/x11 mail? ( dev-haskell/hinotify ) mpd? ( dev-haskell/libmpd media-sound/mpd ) unicode? ( dev-haskell/utf8-string ) wifi? ( net-wireless/wireless-tools ) xft? ( dev-haskell/utf8-string dev-haskell/x11-xft )" RDEPEND="${RDEPEND} dev-haskell/cabal dev-lang/ghc" src_configure() { cabal_src_configure \ $(cabal_flag mail with_inotify) \ $(cabal_flag mpd with_mpd) \ $(cabal_flag unicode with_utf8) \ $(cabal_flag wifi with_iwlib) \ $(cabal_flag xft with_xft) } src_install() { cabal_src_install dodoc samples/xmobar.config README }