summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrea Rossato <andrea.rossato@ing.unitn.it>2007-11-11 10:59:56 +0100
committerAndrea Rossato <andrea.rossato@ing.unitn.it>2007-11-11 10:59:56 +0100
commit685ea6801e2bf73ee789b349616b502193d70ee7 (patch)
tree79f1d89884092de40d1aa086cc6436a5f483d397
parentb162acc9e377f7775a369dc950e57ca0c9f5257e (diff)
downloadxmobar-685ea6801e2bf73ee789b349616b502193d70ee7.tar.gz
xmobar-685ea6801e2bf73ee789b349616b502193d70ee7.tar.bz2
cabal: updated cabal file to work with 1.2 and both ghc-6.6 and 6.80_8_release
darcs-hash:20071111095956-d6583-1d429c518d84a3bef01a9fb6b52cef36932e41ba.gz
-rw-r--r--xmobar.cabal21
1 files changed, 14 insertions, 7 deletions
diff --git a/xmobar.cabal b/xmobar.cabal
index 8b24b73..4840df9 100644
--- a/xmobar.cabal
+++ b/xmobar.cabal
@@ -12,11 +12,18 @@ license: BSD3
license-file: LICENSE
author: Andrea Rossato
maintainer: andrea.rossato@unibz.it
-build-depends: base>=2.0, X11>=1.3.0, mtl>=1.0, unix>=1.0, parsec>=2.0, filepath>=1.0, stm>=2.0
+cabal-version: >= 1.2
+flag small_base
+ description: Choose the new smaller, split-up base package.
+
+executable xmobar
+ main-is: Main.hs
+ other-Modules: Xmobar, Config, Parsers, Commands, Runnable, Plugins
+ ghc-options: -funbox-strict-fields -O2 -fasm -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
+ else
+ build-depends: base < 3
+ build-depends: X11>=1.3.0, mtl, unix, parsec, filepath, stm
-executable: xmobar
-main-is: Main.hs
-Hs-Source-Dirs: ./
-Other-Modules: Xmobar, Config, Parsers, Commands, Runnable, Plugins
-ghc-options: -funbox-strict-fields -O2 -fasm -Wall -optl-Wl,-s -threaded
-ghc-prof-options: -prof -auto-all