2009-06-05 20:54:42 +04:00
|
|
|
name: hledger
|
2010-04-10 04:51:06 +04:00
|
|
|
version: 0.9
|
2009-06-05 20:54:42 +04:00
|
|
|
category: Finance
|
|
|
|
synopsis: A command-line (or curses or web-based) double-entry accounting tool.
|
|
|
|
description:
|
|
|
|
hledger reads a plain text ledger file or timelog
|
|
|
|
describing your transactions and displays precise
|
|
|
|
balance and register reports via command-line, curses
|
|
|
|
or web interface. It is a remix, in haskell, of John
|
|
|
|
Wiegley's excellent c++ ledger. hledger aims to be a
|
|
|
|
practical, accessible tool for end users and a useful
|
|
|
|
library for finance-minded haskell programmers.
|
2009-04-02 05:29:27 +04:00
|
|
|
|
2009-06-05 20:54:42 +04:00
|
|
|
license: GPL
|
|
|
|
license-file: LICENSE
|
|
|
|
author: Simon Michael <simon@joyful.com>
|
|
|
|
maintainer: Simon Michael <simon@joyful.com>
|
|
|
|
homepage: http://hledger.org
|
|
|
|
bug-reports: http://code.google.com/p/hledger/issues
|
|
|
|
stability: experimental
|
2010-03-22 04:44:59 +03:00
|
|
|
tested-with: GHC==6.10
|
2009-06-05 20:54:42 +04:00
|
|
|
cabal-version: >= 1.2
|
2009-07-31 21:03:35 +04:00
|
|
|
build-type: Custom
|
2009-12-19 01:33:02 +03:00
|
|
|
data-dir: data
|
|
|
|
data-files:
|
|
|
|
web/style.css
|
2009-06-05 20:54:42 +04:00
|
|
|
extra-tmp-files:
|
|
|
|
extra-source-files:
|
|
|
|
README
|
|
|
|
sample.ledger
|
|
|
|
sample.timelog
|
|
|
|
|
|
|
|
flag vty
|
2009-04-03 08:17:48 +04:00
|
|
|
description: enable the curses ui
|
2009-05-24 04:41:17 +04:00
|
|
|
default: False
|
2009-04-02 05:29:27 +04:00
|
|
|
|
2009-11-28 18:37:56 +03:00
|
|
|
flag web
|
2010-02-16 06:39:19 +03:00
|
|
|
description: enable the web ui (using simpleserver)
|
|
|
|
default: False
|
|
|
|
|
|
|
|
flag webhappstack
|
|
|
|
description: enable the web ui (using happstack)
|
2009-01-20 07:04:40 +03:00
|
|
|
default: False
|
2008-10-01 11:56:21 +04:00
|
|
|
|
2009-09-27 02:53:54 +04:00
|
|
|
flag chart
|
|
|
|
description: enable the pie chart generation
|
|
|
|
default: False
|
|
|
|
|
2010-03-22 04:44:59 +03:00
|
|
|
-- minimal library so cabal list and ghc-pkg list will show this package
|
2009-06-05 20:54:42 +04:00
|
|
|
library
|
|
|
|
exposed-modules:
|
2010-03-22 04:44:59 +03:00
|
|
|
Version
|
|
|
|
-- Build-Depends:
|
|
|
|
-- base >= 3 && < 5
|
|
|
|
-- ,containers
|
|
|
|
-- ,directory
|
|
|
|
-- ,filepath
|
|
|
|
-- ,old-time
|
|
|
|
-- ,parsec
|
|
|
|
-- ,time
|
|
|
|
-- ,utf8-string >= 0.3
|
|
|
|
-- ,HUnit
|
2009-02-13 23:30:03 +03:00
|
|
|
|
2009-06-05 20:54:42 +04:00
|
|
|
executable hledger
|
|
|
|
main-is: hledger.hs
|
|
|
|
other-modules:
|
2010-03-22 04:44:59 +03:00
|
|
|
HledgerMain
|
|
|
|
Options
|
|
|
|
Paths_hledger
|
|
|
|
Tests
|
|
|
|
Utils
|
|
|
|
Version
|
2009-06-02 22:29:01 +04:00
|
|
|
Commands.Add
|
|
|
|
Commands.All
|
|
|
|
Commands.Balance
|
|
|
|
Commands.Convert
|
|
|
|
Commands.Histogram
|
|
|
|
Commands.Print
|
|
|
|
Commands.Register
|
|
|
|
Commands.Stats
|
2009-06-05 20:54:42 +04:00
|
|
|
build-depends:
|
2010-03-22 04:44:59 +03:00
|
|
|
hledger-lib == 0.9
|
|
|
|
,HUnit
|
|
|
|
,base >= 3 && < 5
|
2009-06-03 22:48:21 +04:00
|
|
|
,containers
|
|
|
|
,csv
|
|
|
|
,directory
|
|
|
|
,filepath
|
|
|
|
,mtl
|
2010-03-09 04:51:21 +03:00
|
|
|
,old-locale
|
2009-08-12 13:21:46 +04:00
|
|
|
,old-time
|
2009-06-03 22:48:21 +04:00
|
|
|
,parsec
|
|
|
|
,process
|
|
|
|
,regexpr >= 0.5.1
|
2010-03-22 04:44:59 +03:00
|
|
|
,safe >= 0.2
|
2009-06-03 22:48:21 +04:00
|
|
|
,testpack
|
|
|
|
,time
|
2010-02-04 00:13:00 +03:00
|
|
|
,utf8-string >= 0.3
|
2009-04-02 05:29:27 +04:00
|
|
|
|
2009-06-03 22:48:21 +04:00
|
|
|
-- should set patchlevel here as in Makefile
|
|
|
|
cpp-options: -DPATCHLEVEL=0
|
2009-04-02 05:29:27 +04:00
|
|
|
|
2009-01-20 06:48:05 +03:00
|
|
|
if flag(vty)
|
2009-04-03 08:17:48 +04:00
|
|
|
cpp-options: -DVTY
|
2009-06-05 20:54:42 +04:00
|
|
|
other-modules:Commands.UI
|
|
|
|
build-depends:
|
2010-02-04 00:13:00 +03:00
|
|
|
vty >= 4.0.0.1
|
2009-04-02 05:29:27 +04:00
|
|
|
|
2009-11-28 18:37:56 +03:00
|
|
|
if flag(web)
|
|
|
|
cpp-options: -DWEB
|
2009-06-05 20:54:42 +04:00
|
|
|
other-modules:Commands.Web
|
2010-02-16 06:39:19 +03:00
|
|
|
build-depends:
|
|
|
|
hsp
|
|
|
|
,hsx
|
|
|
|
,xhtml >= 3000.2
|
|
|
|
,loli
|
|
|
|
,io-storage
|
|
|
|
,hack-contrib
|
|
|
|
,hack
|
|
|
|
,hack-handler-simpleserver
|
|
|
|
,HTTP >= 4000.0
|
|
|
|
,applicative-extras
|
|
|
|
|
|
|
|
if flag(webhappstack)
|
|
|
|
cpp-options: -DWEBHAPPSTACK
|
|
|
|
other-modules:Commands.Web
|
2009-06-05 20:54:42 +04:00
|
|
|
build-depends:
|
2009-08-12 13:38:48 +04:00
|
|
|
hsp
|
|
|
|
,hsx
|
2010-02-04 00:13:00 +03:00
|
|
|
,xhtml >= 3000.2
|
2009-08-12 13:38:48 +04:00
|
|
|
,loli
|
|
|
|
,io-storage
|
|
|
|
,hack-contrib
|
|
|
|
,hack
|
|
|
|
,hack-handler-happstack
|
2010-02-04 00:13:00 +03:00
|
|
|
,happstack >= 0.3
|
|
|
|
,happstack-data >= 0.3
|
|
|
|
,happstack-server >= 0.3
|
|
|
|
,happstack-state >= 0.3
|
|
|
|
,HTTP >= 4000.0
|
2009-08-12 13:38:48 +04:00
|
|
|
,applicative-extras
|
|
|
|
|
2009-09-27 02:53:54 +04:00
|
|
|
if flag(chart)
|
|
|
|
cpp-options: -DCHART
|
|
|
|
other-modules:Commands.Chart
|
|
|
|
build-depends:
|
2010-02-04 21:28:44 +03:00
|
|
|
Chart >= 0.11
|
2009-09-27 02:53:54 +04:00
|
|
|
,colour
|
2009-06-05 20:54:42 +04:00
|
|
|
|
2009-06-14 01:24:14 +04:00
|
|
|
-- source-repository head
|
|
|
|
-- type: darcs
|
|
|
|
-- location: http://joyful.com/repos/hledger
|
|
|
|
-- disabled for now due to:
|
|
|
|
-- The 'source-repository' section is new in Cabal-1.6. Unfortunately it messes
|
|
|
|
-- up the parser in earlier Cabal versions so you need to specify 'cabal-version:
|
|
|
|
-- >= 1.6'.
|
2009-06-05 20:54:42 +04:00
|
|
|
|
|
|
|
-- cf http://www.haskell.org/cabal/release/cabal-latest/doc/users-guide/authors.html
|
2009-11-25 14:33:58 +03:00
|
|
|
|
2009-11-28 17:49:56 +03:00
|
|
|
-- Additional dependencies:
|
2009-11-25 14:33:58 +03:00
|
|
|
-- required for make test: test-framework, test-framework-hunit
|
2009-11-28 17:49:56 +03:00
|
|
|
-- required for make bench: tabular-0.1
|