# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-misc/xmobar/xmobar-0.11.1.ebuild,v 1.1 2010/10/04 21:09:26 kolmodin Exp $ EAPI="2" CABAL_FEATURES="bin" inherit 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 ~x86" IUSE="xft unicode mail" # wifi USE flag disabled due to compilation error with current stable wireless-tools. DEPEND=">=dev-lang/ghc-6.8.1 >=dev-haskell/cabal-1.6 dev-haskell/mtl dev-haskell/parsec dev-haskell/stm dev-haskell/time >=dev-haskell/x11-1.3.0 unicode? ( dev-haskell/utf8-string ) xft? ( dev-haskell/utf8-string dev-haskell/x11-xft ) mail? ( dev-haskell/hinotify )" # mpd? ( >dev-haskell/libmpd-0.4 ) # wifi? ( net-wireless/wireless-tools ) #RDEPEND="mpd? ( media-sound/mpd )" RDEPEND="" src_configure() { cabal_src_configure \ $(cabal_flag xft with_xft) \ $(cabal_flag unicode with_utf8) \ $(cabal_flag mail with_inotify) # $(cabal_flag mpd with_mpd) # $(cabal_flag wifi with_iwlib) \ } src_install() { cabal_src_install dodoc xmobar.config-sample README }