xmonad-extras.cabal

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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name:               xmonad-extras
version:            0.10.1.2
homepage:           http://projects.haskell.org/xmonad-extras
synopsis:           Third party extensions for xmonad with wacky dependencies
description:        Various modules for xmonad that cannot be added to xmonad-contrib
                    because of additional dependencies.
category:           System
license:            BSD3
license-file:       LICENSE
author:             The Daniels Schoepe and Wagner
maintainer:         daniel@wagner-home.com, daniel.schoepe@googlemail.com
cabal-version:      >= 1.2.1
build-type:         Simple

flag small_base
  description: Choose the new smaller, split-up base package.

flag with_parsec
  description: Build modules depending on the parsec package

flag with_split
  description: Build modules depending on Data.Split

flag with_hint
  description: Build modules depending on hint(for evaluating Haskell expressions at runtime).
  default: True

flag with_mpd
  description: Build modules depending on libmpd.

flag with_hlist
  description: Build modules depending on HList.
  default: False

flag with_regex_posix
  description: Build modules depending on posix-regex.

flag with_template_haskell
  description: Build modules depending on template haskell.

flag testing
  description: Testing mode
  default: False

library
    if flag(small_base)
        build-depends: base >= 3 && < 5, containers, directory, process, random, old-time, old-locale
    else
        build-depends: base < 3

    build-depends:      mtl, unix, X11>=1.4.3, xmonad>=0.10 && <0.11, xmonad-contrib>=0.10 && <0.11

    if true
        ghc-options:        -fwarn-tabs -Wall

    if flag(testing)
        ghc-options:    -Werror

    if impl (ghc == 6.10.1) && arch (x86_64)
        ghc-options:    --disable-optimizations

    if flag(with_parsec) && flag(with_split)
        build-depends: parsec >= 2 && < 4, split >= 0.1 && < 0.3
        exposed-modules: XMonad.Actions.Volume

    if flag(with_hint)
        if impl(ghc < 7.2)
                build-depends: hint >= 0.3 && < 0.4, network
        else
                build-depends: hint >= 0.3.3.3 && < 0.4, network
        exposed-modules: XMonad.Actions.Eval XMonad.Prompt.Eval
--                         XMonad.Hooks.EvalServer

    if flag(with_mpd)
        build-depends: libmpd >= 0.8 && < 0.9, bytestring >= 0.9 && < 0.11
        exposed-modules: XMonad.Prompt.MPD

    if flag(with_regex_posix)
        build-depends: regex-posix
        exposed-modules: XMonad.Util.WindowPropertiesRE

    if impl(ghc >= 6.12.1) && flag(with_template_haskell) && flag(with_hlist)
        build-depends: template-haskell, HList >= 0.2.3 && < 0.3
        exposed-modules: XMonad.Config.Alt
                         XMonad.Config.Alt.Desktop
                         XMonad.Config.Alt.Sample
                         XMonad.Config.Alt.Internal
                         XMonad.Config.Alt.QQ

        other-modules:   XMonad.Config.Alt.Types

        exposed-modules: XMonad.Hooks.PerWindowKbdLayout

    if impl(ghc >= 6.12.1)
        ghc-options:    -fno-warn-unused-do-bind

-- executable xmonadcmd
--     main-is: XMonadCmd.hs
--     build-depends:      mtl, unix, X11>=1.4.3, xmonad>=0.9 && <1.0, xmonad-contrib>=0.9 && <1.0
--     ghc-options:        -Wall
--     if !flag(with_hint)
--         Buildable: False
-- 
--     if flag(with_hint)
--         build-depends: network
-- 
--     if flag(testing)
--         ghc-options:  -Werror