summaryrefslogtreecommitdiffhomepage
path: root/xmobar.cabal
blob: 8f0d0e2b736e0d5e9ea81039d2e44216fd1879be (plain)
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
name:               xmobar
version:            0.8
homepage:           http://code.haskell.org/~arossato/xmobar
synopsis:           A Minimalistic Text Based Status Bar
description: 	    Xmobar is a minimalistic text based status bar.
		    .
                    Inspired by the Ion3 status bar, it supports similar features, 
		    like dynamic color management, output templates, and extensibility 
                    through plugins.
category:           System
license:            BSD3
license-file:       LICENSE
author:             Andrea Rossato
maintainer:         andrea.rossato@unibz.it
cabal-version:      >= 1.2
build-type:         Simple

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

flag with_xft
  description: Use Xft to render text. UTF-8 support included.

flag with_utf8
  description: With UTF-8 support.

executable xmobar
    main-is:            Main.hs
    other-Modules:      Xmobar, Config, Parsers, Commands, XUtil, Runnable, Plugins
    ghc-options:        -funbox-strict-fields -Wall -optl-Wl,-s -threaded
    ghc-prof-options:   -prof -auto-all
    if flag(small_base)
       build-depends:   base >= 3, containers, process, old-time, old-locale, bytestring, directory

    else
       build-depends:   base < 3

    if flag(with_xft)
        build-depends: utf8-string, X11-xft >= 0.2
        cpp-options: -DXFT

    if flag(with_utf8)
        build-depends: utf8-string
        cpp-options: -DUTF8

    build-depends:      X11>=1.3.0, mtl, unix, parsec, filepath, stm