cli: cabal updates, try to depend on self, don't use deprecated test api
This commit is contained in:
parent
ac5059ea53
commit
997ab43c35
@ -1,12 +0,0 @@
|
|||||||
#!/usr/bin/env runhaskell
|
|
||||||
import Distribution.Simple
|
|
||||||
import Distribution.Simple.LocalBuildInfo
|
|
||||||
import Distribution.PackageDescription
|
|
||||||
import System.FilePath
|
|
||||||
import System.Process
|
|
||||||
|
|
||||||
main = defaultMainWithHooks $ simpleUserHooks{runTests=runTests'}
|
|
||||||
|
|
||||||
runTests' :: Args -> Bool -> PackageDescription -> LocalBuildInfo -> IO ()
|
|
||||||
runTests' _ _ _ lbi = system testprog >> return ()
|
|
||||||
where testprog = buildDir lbi </> "hledger" </> "hledger test"
|
|
||||||
@ -16,30 +16,35 @@ maintainer: Simon Michael <simon@joyful.com>
|
|||||||
homepage: http://hledger.org
|
homepage: http://hledger.org
|
||||||
bug-reports: http://code.google.com/p/hledger/issues
|
bug-reports: http://code.google.com/p/hledger/issues
|
||||||
stability: beta
|
stability: beta
|
||||||
tested-with: GHC==6.10, GHC==6.12
|
tested-with: GHC==6.12, GHC==7.0
|
||||||
cabal-version: >= 1.6
|
cabal-version: >= 1.8
|
||||||
build-type: Custom
|
build-type: Simple
|
||||||
-- data-dir: data
|
-- data-dir: data
|
||||||
-- data-files:
|
-- data-files:
|
||||||
extra-tmp-files:
|
extra-tmp-files:
|
||||||
extra-source-files:
|
extra-source-files:
|
||||||
|
|
||||||
|
-- Cabal-Version: >= 1.9.2
|
||||||
|
-- Test-Suite test-hledger
|
||||||
|
-- type: exitcode-stdio-1.0
|
||||||
|
-- main-is: test-hledger.hs
|
||||||
|
-- build-depends: base
|
||||||
|
|
||||||
source-repository head
|
source-repository head
|
||||||
type: darcs
|
type: darcs
|
||||||
location: http://joyful.com/repos/hledger
|
location: http://joyful.com/repos/hledger
|
||||||
|
|
||||||
executable hledger
|
library
|
||||||
main-is: hledger.hs
|
-- should set patchlevel here as in Makefile
|
||||||
-- XXX set patchlevel here as in Makefile
|
|
||||||
cpp-options: -DPATCHLEVEL=0
|
cpp-options: -DPATCHLEVEL=0
|
||||||
ghc-options: -threaded -W
|
ghc-options: -W
|
||||||
other-modules:
|
exposed-modules:
|
||||||
|
Hledger.Cli
|
||||||
Hledger.Cli.Main
|
Hledger.Cli.Main
|
||||||
Hledger.Cli.Options
|
Hledger.Cli.Options
|
||||||
Hledger.Cli.Tests
|
Hledger.Cli.Tests
|
||||||
Hledger.Cli.Utils
|
Hledger.Cli.Utils
|
||||||
Hledger.Cli.Version
|
Hledger.Cli.Version
|
||||||
Hledger.Cli
|
|
||||||
Hledger.Cli.Add
|
Hledger.Cli.Add
|
||||||
Hledger.Cli.Balance
|
Hledger.Cli.Balance
|
||||||
Hledger.Cli.Convert
|
Hledger.Cli.Convert
|
||||||
@ -67,27 +72,16 @@ executable hledger
|
|||||||
,utf8-string >= 0.3.5 && < 0.4
|
,utf8-string >= 0.3.5 && < 0.4
|
||||||
,haskeline == 0.6.*
|
,haskeline == 0.6.*
|
||||||
|
|
||||||
-- modules and dependencies below should be as above
|
executable hledger
|
||||||
library
|
main-is: hledger.hs
|
||||||
-- should set patchlevel here as in Makefile
|
-- XXX set patchlevel here as in Makefile
|
||||||
cpp-options: -DPATCHLEVEL=0
|
cpp-options: -DPATCHLEVEL=0
|
||||||
ghc-options: -W
|
ghc-options: -threaded -W
|
||||||
exposed-modules:
|
-- must be the same as above, for some reason
|
||||||
Hledger.Cli.Main
|
|
||||||
Hledger.Cli.Options
|
|
||||||
Hledger.Cli.Tests
|
|
||||||
Hledger.Cli.Utils
|
|
||||||
Hledger.Cli.Version
|
|
||||||
Hledger.Cli
|
|
||||||
Hledger.Cli.Add
|
|
||||||
Hledger.Cli.Balance
|
|
||||||
Hledger.Cli.Convert
|
|
||||||
Hledger.Cli.Histogram
|
|
||||||
Hledger.Cli.Print
|
|
||||||
Hledger.Cli.Register
|
|
||||||
Hledger.Cli.Stats
|
|
||||||
build-depends:
|
build-depends:
|
||||||
hledger-lib == 0.14.98
|
base >= 3 && < 5
|
||||||
|
,hledger == 0.14.98
|
||||||
|
,hledger-lib == 0.14.98
|
||||||
,HUnit
|
,HUnit
|
||||||
,base >= 3 && < 5
|
,base >= 3 && < 5
|
||||||
,containers
|
,containers
|
||||||
@ -104,3 +98,5 @@ library
|
|||||||
,split == 0.1.*
|
,split == 0.1.*
|
||||||
,time
|
,time
|
||||||
,utf8-string >= 0.3.5 && < 0.4
|
,utf8-string >= 0.3.5 && < 0.4
|
||||||
|
,haskeline == 0.6.*
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user