View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
# ebuild generated by hackport 0.9.1.0.9999
#hackport: flags: -testing,with_brightness:brightness,with_hint:eval,with_mpd:mpd,-with_hlist,-with_template_haskell,with_parsec:volume,with_split:volume,+with_regex_posix,with_sound:alsa
CABAL_FEATURES="lib profile haddock hoogle hscolour"
inherit haskell-cabal
DESCRIPTION="Third party extensions for xmonad with wacky dependencies"
HOMEPAGE="https://github.com/xmonad/xmonad-extras"
LICENSE="BSD"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="+alsa +brightness +dbus +eval +mpd"
RDEPEND="dev-haskell/regex-posix:=[profile?]
>=dev-haskell/x11-1.4.3:=[profile?]
>=dev-lang/ghc-9.0.2:=
>=x11-wm/xmonad-0.10:=[profile?]
>=x11-wm/xmonad-contrib-0.10:=[profile?]
alsa? ( >=dev-haskell/alsa-mixer-0.3:=[profile?] )
dbus? ( >=dev-haskell/dbus-1.2:=[profile?] <dev-haskell/dbus-1.5:=[profile?] )
eval? ( >=dev-haskell/hint-0.3.3.3:=[profile?] <dev-haskell/hint-0.10:=[profile?]
dev-haskell/network:=[profile?] )
mpd? ( >=dev-haskell/libmpd-0.9:=[profile?] )
"
DEPEND="${RDEPEND}
>=dev-haskell/cabal-3.4.1.0
"
src_configure() {
haskell-cabal_src_configure \
--flag=-testing \
$(cabal_flag brightness with_brightness) \
$(cabal_flag dbus with_dbus) \
$(cabal_flag eval with_hint) \
--flag=-with_hlist \
$(cabal_flag mpd with_mpd) \
--flag=with_regex_posix \
$(cabal_flag alsa with_sound) \
--flag=-with_template_haskell
}