2010-09-10 02:54:34 +04:00
|
|
|
name: hledger-web
|
set version with CPP instead of cabal-file-th; make building more robust
hledger and hledger-web were reading their version number (and program
name) from their cabal files at compile time using cabal-file-th,
which allowed the version number be maintained in one place (per
package).
This meant you had to be in same directory as the cabal file when
building, which made life more complicated, eg emacs compilation mode
could not jump to errors. Also, it slowed down building slightly, and
is a factor in hledger Debian packages being unavailable on a number
of platforms (we also use TH for report templates).
Now, the build version is set with a CPP VERSION flag, which seems
simpler overall. For cabal builds, this needs to be configured
manually in a few more places in each cabal file. For makefile builds,
it is set it to the name of the most recent darcs tag (which should be
more useful than the old behaviour). If not set, it defaults to the
blank string, useful eg for haddock. And, all makefile builds now run
from the top directory.
2012-10-13 23:21:17 +04:00
|
|
|
-- also in cpp-options below
|
2012-11-24 20:01:19 +04:00
|
|
|
version: 0.19.3
|
2010-09-10 02:54:34 +04:00
|
|
|
category: Finance
|
2011-04-19 04:50:47 +04:00
|
|
|
synopsis: A web interface for the hledger accounting tool.
|
2010-09-10 02:54:34 +04:00
|
|
|
description:
|
2011-09-02 04:28:27 +04:00
|
|
|
hledger is a library and set of user tools for working
|
|
|
|
with financial data (or anything that can be tracked in a
|
|
|
|
double-entry accounting ledger.) It is a haskell port and
|
|
|
|
friendly fork of John Wiegley's Ledger. hledger provides
|
|
|
|
command-line, curses and web interfaces, and aims to be a
|
|
|
|
reliable, practical tool for daily use.
|
2011-04-19 04:50:47 +04:00
|
|
|
|
2010-09-10 02:54:34 +04:00
|
|
|
license: GPL
|
|
|
|
license-file: LICENSE
|
|
|
|
author: Simon Michael <simon@joyful.com>
|
2010-09-11 05:47:46 +04:00
|
|
|
maintainer: Simon Michael <simon@joyful.com>
|
2010-09-10 02:54:34 +04:00
|
|
|
homepage: http://hledger.org
|
|
|
|
bug-reports: http://code.google.com/p/hledger/issues
|
2010-11-26 22:59:23 +03:00
|
|
|
stability: beta
|
2012-11-27 09:31:31 +04:00
|
|
|
tested-with: GHC==7.4.2, GHC==7.6.1
|
2012-11-15 21:48:48 +04:00
|
|
|
cabal-version: >= 1.8
|
2010-09-10 02:54:34 +04:00
|
|
|
build-type: Simple
|
|
|
|
extra-tmp-files:
|
|
|
|
extra-source-files:
|
2012-11-16 21:08:54 +04:00
|
|
|
messages/en.msg
|
|
|
|
config/routes
|
2011-10-05 02:45:45 +04:00
|
|
|
static/style.css
|
|
|
|
static/hledger.js
|
|
|
|
static/jquery.js
|
|
|
|
static/jquery.url.js
|
|
|
|
static/jquery.flot.js
|
|
|
|
static/dhtmlxcommon.js
|
|
|
|
static/dhtmlxcombo.js
|
|
|
|
static/excanvas.min.js
|
|
|
|
static/combo_select.gif
|
|
|
|
static/favicon.ico
|
2010-09-10 02:54:34 +04:00
|
|
|
|
|
|
|
source-repository head
|
|
|
|
type: darcs
|
2012-11-17 08:31:21 +04:00
|
|
|
location: http://hub.darcs.net/simon/hledger
|
2010-09-10 02:54:34 +04:00
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
-- Flag production
|
|
|
|
-- Description: Build fully optimised and with web files embedded (not loaded from ./static/)
|
|
|
|
-- Default: True
|
2011-10-05 03:02:57 +04:00
|
|
|
|
|
|
|
flag threaded
|
2012-03-05 11:52:36 +04:00
|
|
|
Description: Build with support for multithreaded execution.
|
2011-09-14 06:51:31 +04:00
|
|
|
Default: True
|
2010-09-11 05:47:46 +04:00
|
|
|
|
2012-06-30 03:07:19 +04:00
|
|
|
flag blaze_html_0_5
|
|
|
|
description: Use the newer 0.5 version of blaze-html and blaze-markup.
|
2012-11-15 21:48:48 +04:00
|
|
|
default: True
|
|
|
|
|
2012-06-30 03:07:19 +04:00
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
flag dev
|
|
|
|
Description: Turn on development settings, like auto-reload templates.
|
|
|
|
Default: False
|
|
|
|
|
|
|
|
flag library-only
|
|
|
|
Description: Build for use with "yesod devel"
|
2011-05-24 08:27:37 +04:00
|
|
|
Default: False
|
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
library
|
2012-11-15 21:48:48 +04:00
|
|
|
hs-source-dirs: . app
|
2012-03-05 11:52:36 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
exposed-modules: Application
|
|
|
|
Foundation
|
|
|
|
Import
|
|
|
|
Settings
|
|
|
|
Settings.StaticFiles
|
|
|
|
Settings.Development
|
2012-11-20 06:23:23 +04:00
|
|
|
Handler.Common
|
|
|
|
Handler.JournalEditR
|
|
|
|
Handler.JournalEntriesR
|
|
|
|
Handler.JournalR
|
|
|
|
Handler.Post
|
|
|
|
Handler.RegisterR
|
|
|
|
Handler.RootR
|
|
|
|
Handler.Utils
|
2012-03-05 11:52:36 +04:00
|
|
|
other-modules:
|
2012-11-15 21:48:48 +04:00
|
|
|
Hledger.Web
|
|
|
|
Hledger.Web.Main
|
|
|
|
Hledger.Web.Options
|
2011-05-24 08:27:37 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
-- if flag(library-only)
|
|
|
|
-- Buildable: True
|
|
|
|
-- else
|
|
|
|
-- Buildable: False
|
|
|
|
|
2012-11-16 21:08:27 +04:00
|
|
|
ghc-options: -Wall -fno-warn-unused-do-bind
|
2012-11-24 20:01:19 +04:00
|
|
|
cpp-options: -DVERSION="0.19.3"
|
2012-11-15 21:48:48 +04:00
|
|
|
if flag(dev) || flag(library-only)
|
|
|
|
cpp-options: -DDEVELOPMENT
|
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
extensions: TemplateHaskell
|
|
|
|
QuasiQuotes
|
|
|
|
OverloadedStrings
|
|
|
|
NoImplicitPrelude
|
|
|
|
CPP
|
|
|
|
MultiParamTypeClasses
|
|
|
|
TypeFamilies
|
2012-11-15 21:48:48 +04:00
|
|
|
GADTs
|
|
|
|
GeneralizedNewtypeDeriving
|
|
|
|
FlexibleContexts
|
|
|
|
EmptyDataDecls
|
|
|
|
NoMonomorphismRestriction
|
2012-11-20 06:23:23 +04:00
|
|
|
RecordWildCards
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2012-11-24 19:35:09 +04:00
|
|
|
build-depends: base >= 4 && < 5
|
|
|
|
-- , yesod-platform >= 1.1 && < 1.2
|
|
|
|
, yesod >= 1.1.3 && < 1.2
|
|
|
|
, yesod-core >= 1.1.2 && < 1.2
|
|
|
|
, yesod-static >= 1.1 && < 1.2
|
|
|
|
, yesod-default >= 1.1 && < 1.2
|
2012-11-27 09:31:12 +04:00
|
|
|
, yesod-form >= 1.1 && < 1.3
|
2012-11-24 19:35:09 +04:00
|
|
|
, clientsession >= 0.8 && < 0.9
|
|
|
|
, bytestring >= 0.9 && < 0.11
|
|
|
|
, text >= 0.11 && < 0.12
|
|
|
|
, template-haskell
|
|
|
|
, hamlet >= 1.1 && < 1.2
|
|
|
|
, shakespeare-css >= 1.0 && < 1.1
|
2012-11-27 09:31:12 +04:00
|
|
|
, shakespeare-js >= 1.0 && < 1.2
|
2012-11-24 19:35:09 +04:00
|
|
|
, shakespeare-text >= 1.0 && < 1.1
|
|
|
|
, hjsmin >= 0.1 && < 0.2
|
|
|
|
, monad-control >= 0.3 && < 0.4
|
|
|
|
, wai-extra >= 1.3 && < 1.4
|
|
|
|
, yaml >= 0.8 && < 0.9
|
|
|
|
, http-conduit >= 1.8 && < 1.9
|
|
|
|
, directory >= 1.1 && < 1.3
|
|
|
|
, warp >= 1.3 && < 1.4
|
|
|
|
, data-default
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2012-11-24 20:01:19 +04:00
|
|
|
, hledger == 0.19.3
|
|
|
|
, hledger-lib == 0.19.3
|
2012-11-15 21:48:48 +04:00
|
|
|
, cmdargs >= 0.10 && < 0.11
|
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, HUnit
|
|
|
|
, io-storage >= 0.3 && < 0.4
|
|
|
|
, network-conduit
|
|
|
|
, old-locale
|
|
|
|
, parsec
|
|
|
|
, regexpr >= 0.5.1
|
|
|
|
, safe >= 0.2
|
|
|
|
, time
|
|
|
|
, transformers
|
|
|
|
, wai
|
|
|
|
, wai-extra
|
|
|
|
, warp
|
|
|
|
, yaml
|
|
|
|
|
|
|
|
if flag(blaze_html_0_5)
|
|
|
|
cpp-options: -DBLAZE_HTML_0_5
|
|
|
|
build-depends:
|
|
|
|
blaze-html >= 0.5 && < 0.6
|
|
|
|
, blaze-markup >= 0.5.1 && < 0.6
|
|
|
|
else
|
|
|
|
build-depends:
|
|
|
|
blaze-html >= 0.4 && < 0.5
|
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
|
|
|
|
executable hledger-web
|
2012-11-24 20:01:19 +04:00
|
|
|
cpp-options: -DVERSION="0.19.3"
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2012-03-05 11:52:36 +04:00
|
|
|
if flag(library-only)
|
2011-05-24 08:27:37 +04:00
|
|
|
Buildable: False
|
2012-03-05 11:52:36 +04:00
|
|
|
|
|
|
|
if flag(dev)
|
2012-11-15 21:48:48 +04:00
|
|
|
cpp-options: -DDEVELOPMENT
|
|
|
|
ghc-options: -O0 -Wall -fno-warn-unused-do-bind
|
2012-03-05 11:52:36 +04:00
|
|
|
else
|
2012-11-15 21:48:48 +04:00
|
|
|
ghc-options: -O2 -Wall -fno-warn-unused-do-bind
|
2012-03-05 11:52:36 +04:00
|
|
|
|
|
|
|
if flag(threaded)
|
|
|
|
ghc-options: -threaded
|
|
|
|
|
|
|
|
extensions: TemplateHaskell
|
|
|
|
QuasiQuotes
|
|
|
|
OverloadedStrings
|
|
|
|
NoImplicitPrelude
|
|
|
|
CPP
|
|
|
|
OverloadedStrings
|
|
|
|
MultiParamTypeClasses
|
|
|
|
TypeFamilies
|
2012-11-20 06:23:23 +04:00
|
|
|
RecordWildCards
|
2012-03-05 11:52:36 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
hs-source-dirs: . app
|
2012-03-05 11:52:36 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
main-is: main.hs
|
2011-05-24 08:27:37 +04:00
|
|
|
other-modules:
|
2012-11-15 21:48:48 +04:00
|
|
|
Application
|
|
|
|
Foundation
|
|
|
|
Import
|
|
|
|
Settings
|
|
|
|
Settings.StaticFiles
|
|
|
|
Settings.Development
|
2012-11-20 06:23:23 +04:00
|
|
|
Handler.Common
|
|
|
|
Handler.JournalEditR
|
|
|
|
Handler.JournalEntriesR
|
|
|
|
Handler.JournalR
|
|
|
|
Handler.Post
|
|
|
|
Handler.RegisterR
|
|
|
|
Handler.RootR
|
|
|
|
Handler.Utils
|
2011-08-06 03:55:57 +04:00
|
|
|
Hledger.Web
|
2012-11-15 21:48:48 +04:00
|
|
|
Hledger.Web.Main
|
2011-09-02 21:13:47 +04:00
|
|
|
Hledger.Web.Options
|
2012-03-05 11:52:36 +04:00
|
|
|
|
|
|
|
build-depends:
|
2012-11-15 21:48:48 +04:00
|
|
|
hledger-web
|
2012-11-24 20:01:19 +04:00
|
|
|
, hledger == 0.19.3
|
|
|
|
, hledger-lib == 0.19.3
|
2012-07-08 04:22:20 +04:00
|
|
|
, base >= 4.3 && < 5
|
2012-10-08 20:50:35 +04:00
|
|
|
, cmdargs >= 0.10 && < 0.11
|
2012-05-29 06:53:33 +04:00
|
|
|
, directory
|
|
|
|
, filepath
|
|
|
|
, HUnit
|
|
|
|
, io-storage >= 0.3 && < 0.4
|
|
|
|
, old-locale
|
|
|
|
, parsec
|
|
|
|
, regexpr >= 0.5.1
|
|
|
|
, safe >= 0.2
|
|
|
|
, time
|
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
-- , yesod-platform == 1.1.*
|
|
|
|
, yesod >= 1.1.3 && < 1.2
|
2012-05-29 06:53:33 +04:00
|
|
|
, yesod-core
|
|
|
|
, yesod-default
|
|
|
|
, yesod-static
|
|
|
|
, clientsession
|
|
|
|
, hamlet
|
|
|
|
, network-conduit
|
|
|
|
, shakespeare-text
|
|
|
|
, template-haskell
|
2012-11-15 21:48:48 +04:00
|
|
|
, text
|
|
|
|
, transformers
|
2012-05-29 06:53:33 +04:00
|
|
|
, wai
|
|
|
|
, wai-extra
|
|
|
|
, warp
|
|
|
|
, yaml
|
2012-11-15 21:48:48 +04:00
|
|
|
, hjsmin >= 0.1 && < 0.2
|
|
|
|
, http-conduit >= 1.8 && < 1.9
|
2012-11-24 19:35:09 +04:00
|
|
|
, data-default
|
2012-11-15 21:48:48 +04:00
|
|
|
|
2012-06-30 03:07:19 +04:00
|
|
|
if flag(blaze_html_0_5)
|
2012-07-08 04:18:39 +04:00
|
|
|
cpp-options: -DBLAZE_HTML_0_5
|
2012-06-30 03:07:19 +04:00
|
|
|
build-depends:
|
|
|
|
blaze-html >= 0.5 && < 0.6
|
|
|
|
, blaze-markup >= 0.5.1 && < 0.6
|
|
|
|
else
|
|
|
|
build-depends:
|
|
|
|
blaze-html >= 0.4 && < 0.5
|
2012-03-05 11:52:36 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
|
|
|
|
test-suite test
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
main-is: main.hs
|
|
|
|
hs-source-dirs: tests
|
|
|
|
ghc-options: -Wall
|
2012-03-05 11:52:36 +04:00
|
|
|
|
2012-11-15 21:48:48 +04:00
|
|
|
build-depends:
|
|
|
|
base
|
|
|
|
, hledger-web
|
|
|
|
, yesod-test >= 0.3 && < 0.4
|
|
|
|
, yesod-default
|
|
|
|
, yesod-core
|