homebrew-core/Formula/hledger.rb
2017-03-31 23:49:36 -07:00

28 lines
826 B
Ruby

require "language/haskell"
class Hledger < Formula
include Language::Haskell::Cabal
desc "Command-line accounting tool"
homepage "http://hledger.org"
url "https://hackage.haskell.org/package/hledger-1.2/hledger-1.2.tar.gz"
sha256 "06f4bae5a49916e0291b1b6d6c2017794c98f14bb22ffa20c49e9650278247a2"
bottle do
cellar :any_skip_relocation
sha256 "a610bd5c0f4dbc1f98d83888b944212d0d5608caae8cf658c6004126c6a9fb8a" => :sierra
sha256 "2a53f7ca6d0f99fe6c439497fb1e0f2ca84028683c9cb40e0f344b1fc7c115f1" => :el_capitan
sha256 "b2347dcf7e7abb6877c1fd5e95c3fedef2ffe044726b7a29e7cc609cb656c70e" => :yosemite
end
depends_on "ghc" => :build
depends_on "cabal-install" => :build
def install
install_cabal_package :using => ["happy"]
end
test do
system "#{bin}/hledger", "test"
end
end