packages feed

timeplot 0.3.5 → 0.3.6

raw patch · 2 files changed

+4/−19 lines, 2 files

Files

Tools/TimePlot.hs view
@@ -29,9 +29,7 @@ import Data.Accessor  import Graphics.Rendering.Chart-#if HAVE_GTK import Graphics.Rendering.Chart.Gtk-#endif import Graphics.Rendering.Chart.Grid import Graphics.Rendering.Chart.Plot import Graphics.Rendering.Chart.Event@@ -65,9 +63,7 @@              deriving (Show)  data OutFormat = PNG | PDF | PS | SVG-#if HAVE_GTK                | Window-#endif  class HasDelta t where   type Delta t :: *@@ -177,12 +173,10 @@                       transformLabel=transformLabel, zoomMode=zoomMode}       where         inFile      = single "input file"  "-if" (error "No input file (-if) specified")-        outFile     = single "output file" "-o"  (error "No output file (-o) specified (or have you specified '-of x' and built without --flags=gtk ?)")+        outFile     = single "output file" "-o"  (error "No output file (-o) specified")         outFormat   = maybe PNG id $ lookup (single "output format" "-of" (name2format outFile)) $             [("png",PNG), ("pdf",PDF), ("ps",PS), ("svg",SVG)-#if HAVE_GTK             , ("x",Window)-#endif             ]           where             name2format = reverse . takeWhile (/='.') . reverse@@ -690,8 +684,7 @@   "             [-fromTime TIME] [-toTime TIME] [-baseTime TIME]",   "  -o  OFILE  - output file (required if -of is not x)",   "  -of        - output format (x means draw result in a window, default:",-  "               extension of -o); x is only available if you installed",-  "               timeplot with --flags=gtk",+  "               extension of -o)",   "  -or        - output resolution (default 640x480)",   "  -if IFILE  - input file; '-' means 'read from stdin'",   "  -tf TF     - time format: 'num' means that times are floating-point",@@ -813,9 +806,7 @@           PDF    -> renderableToPDFFile ;           PS     -> renderableToPSFile  ;           SVG    -> renderableToSVGFile ;-#if HAVE_GTK           Window -> \c w h f -> renderableToWindow c w h-#endif         }       case conf of         ConcreteConf {
timeplot.cabal view
@@ -1,5 +1,5 @@ name: timeplot-version: 0.3.5+version: 0.3.6 cabal-version: >=1.6 build-type: Simple license: BSD3@@ -21,16 +21,10 @@     type: git     location: git://github.com/jkff/timeplot.git -flag gtk-    description: enable output to a gtk window (-of x)-    default: False- executable tplot     main-is: Tools/TimePlot.hs     buildable: True-    if flag(gtk)-      cpp-options: -DHAVE_GTK-    ghc-options: -O2+    ghc-options: -O2 -rtsopts     other-modules: Graphics.Rendering.Chart.Event     build-depends: Chart >=0.14, base >=3 && <5, bytestring -any,                    bytestring-lexing -any, cairo -any, colour -any, containers -any,