From 685ea6801e2bf73ee789b349616b502193d70ee7 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Sun, 11 Nov 2007 10:59:56 +0100 Subject: cabal: updated cabal file to work with 1.2 and both ghc-6.6 and 6.8 darcs-hash:20071111095956-d6583-1d429c518d84a3bef01a9fb6b52cef36932e41ba.gz --- xmobar.cabal | 21 ++++++++++++++------- 1 file 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 -- cgit v1.2.3