# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=4 CABAL_FEATURES="lib profile haddock hscolour" inherit haskell-cabal darcs DESCRIPTION="Third party extensions for xmonad" HOMEPAGE="http://xmonad.org/" EDARCS_REPOSITORY="http://code.haskell.org/XMonadContrib" SRC_URI="!vanilla? ( http://dump.bitcheese.net/files/ilumysu/impure-decorations.diff )" LICENSE="BSD" SLOT="0" KEYWORDS="" IUSE="xft vanilla" RDEPEND=">=dev-lang/ghc-6.6.1 dev-haskell/mtl >=dev-haskell/x11-1.6 dev-haskell/utf8-string xft? ( >=dev-haskell/x11-xft-0.2 ) ~x11-wm/xmonad-${PV}" DEPEND="${RDEPEND} >=dev-haskell/cabal-1.2.1" src_prepare() { use vanilla || epatch "$DISTDIR/impure-decorations.diff" } src_compile() { CABAL_CONFIGURE_FLAGS="--flags=-testing" if use xft; then CABAL_CONFIGURE_FLAGS="${CABAL_CONFIGURE_FLAGS} --flags=use_xft" else CABAL_CONFIGURE_FLAGS="${CABAL_CONFIGURE_FLAGS} --flags=-use_xft" fi cabal_src_compile }