YAML quoting
[darcs-mirror-arbtt.git] / arbtt.cabal
index 852fb4a..74f4281 100644 (file)
@@ -1,5 +1,5 @@
 name:               arbtt
-version:            0.9.0.3
+version:            0.9.0.9
 license:            GPL
 license-file:       LICENSE
 category:           Desktop
@@ -40,11 +40,11 @@ executable arbtt-capture
     main-is:            capture-main.hs
     hs-source-dirs:     src
     build-depends:
-        base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
-        filepath, directory, transformers, utf8-string,
-        aeson == 0.6.* || == 0.7.* || == 0.8.* || == 0.9.*,
-        binary >= 0.5,
-        bytestring, deepseq
+                base >= 4.7 && < 4.10,
+                filepath, directory, transformers, utf8-string,
+                aeson >= 0.6  && < 0.12,
+                binary >= 0.5,
+                bytestring, deepseq
 
     if flag(old-locale)
         build-depends: time == 1.4.*, old-locale
@@ -63,6 +63,9 @@ executable arbtt-capture
 
     ghc-options: -rtsopts
 
+    if !os(windows)
+        build-depends: unix
+
     if os(windows)
         extra-libraries: psapi
         cpp-options:    -DWIN32
@@ -74,31 +77,42 @@ executable arbtt-capture
         build-depends:
              Win32
     else
-        extra-libraries: Xss
-        other-modules:
-            Capture.X11
-            Graphics.X11.XScreenSaver
-            System.Locale.SetLocale
-        build-depends:
-            X11 > 1.4.4, unix
+        if os(darwin)
+            cpp-options:    -DDARWIN
+            frameworks: Foundation Carbon IOKit
+            other-modules:
+                Capture.OSX
+                Graphics.OSX.Window
+                System.Locale.SetLocale
+        else
+            extra-libraries: Xss
+            other-modules:
+                Capture.X11
+                Graphics.X11.XScreenSaver
+                System.Locale.SetLocale
+            build-depends:
+                X11 > 1.4.4
     default-language: Haskell98
 
 executable arbtt-stats
     main-is:            stats-main.hs
     hs-source-dirs:     src
     build-depends:
-        base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
+        base >= 4.7 && < 4.10,
         parsec == 3.*,
         containers == 0.5.*,
         pcre-light,
         binary >= 0.5,
         deepseq, bytestring, utf8-string, strict,
-        transformers, unix, directory, filepath,
-        aeson == 0.6.* || == 0.7.* || == 0.8.*,
+        transformers, directory, filepath,
+        aeson >= 0.6  && < 0.12,
         array == 0.4.* || == 0.5.*,
         terminal-progress-bar,
         bytestring-progress
 
+    if !os(windows)
+        build-depends: unix
+
     if flag(old-locale)
         build-depends: time == 1.4.*, old-locale
     else
@@ -128,14 +142,17 @@ executable arbtt-dump
     main-is:            dump-main.hs
     hs-source-dirs:     src
     build-depends:
-        base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
+        base >= 4.7 && < 4.10,
         parsec == 3.*,
         containers == 0.5.*,
-        aeson == 0.6.* || == 0.7.* || == 0.8.*,
+        aeson >= 0.6  && < 0.12,
         array == 0.4.* || == 0.5.*,
         binary >= 0.5,
         deepseq, bytestring, utf8-string, strict,
-        transformers, unix, directory, filepath
+        transformers, directory, filepath
+
+    if !os(windows)
+        build-depends: unix
 
     if flag(old-locale)
         build-depends: time == 1.4.*, old-locale
@@ -162,12 +179,15 @@ executable arbtt-import
     main-is:            import-main.hs
     hs-source-dirs:     src
     build-depends:
-        base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
+        base >= 4.7 && < 4.10,
         parsec == 3.*,
         containers == 0.5.*,
         binary >= 0.5,
         deepseq, bytestring, utf8-string, strict,
-        transformers, unix, directory, filepath
+        transformers, directory, filepath
+
+    if !os(windows)
+        build-depends: unix
 
     if flag(old-locale)
         build-depends: time == 1.4.*, old-locale
@@ -192,11 +212,14 @@ executable arbtt-recover
     main-is:            recover-main.hs
     hs-source-dirs:     src
     build-depends:
-        base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*,
+        base >= 4.7 && < 4.10,
         containers == 0.5.*,
         binary >= 0.5,
         deepseq, bytestring, utf8-string,
-        unix, directory, filepath
+        directory, filepath
+
+    if !os(windows)
+        build-depends: unix
 
     if flag(old-locale)
         build-depends: time == 1.4.*, old-locale
@@ -226,22 +249,24 @@ test-suite test
   Main-is:
     test.hs
   Build-depends:
-      base == 4.5.* || == 4.6.* || == 4.7.* || == 4.8.*
-      , tasty >= 0.7 && < 0.11
+      base >= 4.7 && < 4.10
+      , tasty >= 0.7 && < 0.12
       , tasty-golden >= 2.2.0.2  && <= 2.4
       , tasty-hunit >= 0.2  && < 0.11
-      , process-extras == 0.2.* || == 0.3.*
+      , process-extras == 0.2.* || == 0.3.* || == 0.4.*
       , deepseq
       , binary >= 0.5
       , bytestring
       , utf8-string
-      , unix
       , directory
       , parsec == 3.*
       , containers == 0.5.*
       , pcre-light
       , transformers
 
+  if !os(windows)
+    build-depends: unix
+
   if flag(old-locale)
         build-depends: time == 1.4.*, old-locale
   else