cabal file cleanups, fix happstack build
This commit is contained in:
parent
36c76cf7f1
commit
eed76e3722
112
hledger.cabal
112
hledger.cabal
@ -18,63 +18,23 @@ License-File: LICENSE
|
|||||||
Extra-Source-Files: README sample.ledger
|
Extra-Source-Files: README sample.ledger
|
||||||
Extra-Tmp-Files:
|
Extra-Tmp-Files:
|
||||||
Cabal-Version: >= 1.2
|
Cabal-Version: >= 1.2
|
||||||
Flag vty
|
|
||||||
description: Build vty-based text ui (requires vty, not available on windows)
|
|
||||||
default: False
|
|
||||||
Flag ansi
|
|
||||||
description: Build ansi-based text ui (requires ansi-terminal)
|
|
||||||
default: False
|
|
||||||
Flag happs
|
Flag happs
|
||||||
description: Build happs-based web ui (requires HApps-Server)
|
description: Build web-based ui (requires happstack)
|
||||||
default: False
|
default: False
|
||||||
|
|
||||||
Executable hledger
|
Flag vty
|
||||||
Main-Is: hledger.hs
|
description: Build vty-based text ui (requires vty)
|
||||||
|
default: False
|
||||||
|
|
||||||
Build-Depends: base, containers, haskell98, directory, parsec,
|
Flag ansi
|
||||||
regex-compat, regexpr>=0.5.1, old-locale, time,
|
description: Build ansi-based text ui (requires ansi-terminal, use instead of vty on windows)
|
||||||
HUnit, mtl, bytestring, filepath, process, testpack
|
default: False
|
||||||
|
|
||||||
Other-Modules: BalanceCommand
|
|
||||||
Options
|
|
||||||
PrintCommand
|
|
||||||
RegisterCommand
|
|
||||||
Setup
|
|
||||||
Tests
|
|
||||||
Utils
|
|
||||||
Ledger
|
|
||||||
Ledger.Account
|
|
||||||
Ledger.AccountName
|
|
||||||
Ledger.Amount
|
|
||||||
Ledger.Commodity
|
|
||||||
Ledger.Dates
|
|
||||||
Ledger.Entry
|
|
||||||
Ledger.RawLedger
|
|
||||||
Ledger.Ledger
|
|
||||||
Ledger.RawTransaction
|
|
||||||
Ledger.Parse
|
|
||||||
Ledger.TimeLog
|
|
||||||
Ledger.Transaction
|
|
||||||
Ledger.Types
|
|
||||||
Ledger.Utils
|
|
||||||
-- the cabal build does not yet report patches since last release
|
|
||||||
cpp-options: -DPATCHES=0
|
|
||||||
if flag(vty)
|
|
||||||
Build-Depends:vty>=3.1.8.2
|
|
||||||
Other-Modules:UICommand
|
|
||||||
cpp-options: -DVTY
|
|
||||||
if flag(ansi)
|
|
||||||
Build-Depends:ansi-terminal
|
|
||||||
Other-Modules:ANSICommand
|
|
||||||
cpp-options: -DANSI
|
|
||||||
if flag(happs)
|
|
||||||
Build-Depends:happstack-server>=0.2, happstack-state>=0.2
|
|
||||||
Other-Modules:HappsCommand
|
|
||||||
cpp-options: -DHAPPS
|
|
||||||
|
|
||||||
Library
|
Library
|
||||||
Build-Depends: base, containers, haskell98, directory, parsec, regex-compat,
|
Build-Depends: base, containers, haskell98, directory, parsec, regex-compat,
|
||||||
old-locale, time, HUnit, filepath
|
old-locale, time, HUnit, filepath
|
||||||
|
|
||||||
Exposed-modules:Ledger
|
Exposed-modules:Ledger
|
||||||
Ledger.Account
|
Ledger.Account
|
||||||
Ledger.AccountName
|
Ledger.AccountName
|
||||||
@ -90,3 +50,57 @@ Library
|
|||||||
Ledger.Transaction
|
Ledger.Transaction
|
||||||
Ledger.Types
|
Ledger.Types
|
||||||
Ledger.Utils
|
Ledger.Utils
|
||||||
|
|
||||||
|
Executable hledger
|
||||||
|
Main-Is: hledger.hs
|
||||||
|
|
||||||
|
Build-Depends: base, containers, haskell98, directory, parsec,
|
||||||
|
regex-compat, regexpr>=0.5.1, old-locale, time,
|
||||||
|
HUnit, mtl, bytestring, filepath, process, testpack
|
||||||
|
|
||||||
|
Other-Modules:
|
||||||
|
BalanceCommand
|
||||||
|
Options
|
||||||
|
PrintCommand
|
||||||
|
RegisterCommand
|
||||||
|
Setup
|
||||||
|
Tests
|
||||||
|
Utils
|
||||||
|
Ledger
|
||||||
|
Ledger.Account
|
||||||
|
Ledger.AccountName
|
||||||
|
Ledger.Amount
|
||||||
|
Ledger.Commodity
|
||||||
|
Ledger.Dates
|
||||||
|
Ledger.Entry
|
||||||
|
Ledger.Ledger
|
||||||
|
Ledger.Parse
|
||||||
|
Ledger.RawLedger
|
||||||
|
Ledger.RawTransaction
|
||||||
|
Ledger.TimeLog
|
||||||
|
Ledger.Transaction
|
||||||
|
Ledger.Types
|
||||||
|
Ledger.Utils
|
||||||
|
|
||||||
|
-- how to set patchlevel in cabal builds ?
|
||||||
|
cpp-options: -DPATCHES=0
|
||||||
|
|
||||||
|
if flag(vty)
|
||||||
|
Build-Depends:vty >= 3.1.8.2 && < 3.2
|
||||||
|
Other-Modules:UICommand
|
||||||
|
cpp-options: -DVTY
|
||||||
|
|
||||||
|
if flag(ansi)
|
||||||
|
Build-Depends:ansi-terminal >= 0.5 && < 0.6
|
||||||
|
Other-Modules:ANSICommand
|
||||||
|
cpp-options: -DANSI
|
||||||
|
|
||||||
|
if flag(happs)
|
||||||
|
Build-Depends:happstack >= 0.2 && < 0.3
|
||||||
|
,happstack-data >= 0.2 && < 0.3
|
||||||
|
,happstack-server >= 0.2 && < 0.3
|
||||||
|
,happstack-state >= 0.2 && < 0.3
|
||||||
|
,utf8-string >= 0.3 && < 0.4
|
||||||
|
Other-Modules:HappsCommand
|
||||||
|
cpp-options: -DHAPPS
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user