homebrew-core/Formula/ledger.rb
Adam Gibbins fda41fd788 ledger: Update to 2.6.3
Also update new homepage.

Closes Homebrew/homebrew#7575.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2011-09-12 10:33:15 -07:00

28 lines
805 B
Ruby

require 'formula'
class Ledger < Formula
url 'ftp://ftp.newartisans.com/pub/ledger/ledger-2.6.3.tar.gz'
md5 '6d5d8396b1cdde5f605854c7d21d1460'
homepage 'http://ledger-cli.org'
head 'https://github.com/jwiegley/ledger.git', :branch => 'next'
depends_on 'gettext'
depends_on 'boost'
depends_on 'mpfr'
depends_on 'gmp'
depends_on 'pcre'
depends_on 'expat'
def install
unless 'HEAD' == @version
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
else
# gmp installs x86_64 only
inreplace 'acprep', "'-arch', 'i386', ", "" if Hardware.is_64_bit?
system "./acprep -j#{Hardware.processor_count} opt make -- --prefix=#{prefix}"
end
system 'make'
ENV.deparallelize
system 'make install'
end
end