Created
February 17, 2010 11:07
-
-
Save afh/306514 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'formula' | |
class Utf8cpp <Formula | |
url 'http://sourceforge.net/projects/utfcpp/files/utf8cpp_2x/Release%202.2.4/utf8_v2_2_4.zip/download' | |
homepage 'http://utfcpp.sourceforge.net/' | |
md5 'b30e1f7087aeca5ad38f7966aaf5f739' | |
version '2.2.4' | |
#head 'http://github.com/jwiegley/utfcpp/' | |
end | |
class Ledger <Formula | |
url 'http://cloud.github.com/downloads/jwiegley/ledger/ledger-2.6.2.tar.gz' | |
md5 'b2e6fa98e7339d1e130b1ea9af211c0f' | |
homepage 'http://www.newartisans.com/software/ledger.html' | |
head 'git://github.com/jwiegley/ledger.git', :branch => 'master' | |
depends_on 'boost' | |
depends_on 'gmp' | |
depends_on 'mpfr' | |
def install | |
unless 'HEAD' == @version | |
system "./configure", "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking" | |
else | |
tmp = Pathname.new(Dir.pwd) | |
utfcpp = (tmp + 'lib/utfcpp') | |
Utf8cpp.new.brew { utfcpp.install Dir['*'] } | |
# gmp installs x86_64 only | |
inreplace 'acprep', "'-arch', 'i386', ", "" if Hardware.is_64_bit? | |
system "./acprep -j2 opt make -- --prefix=#{prefix}" | |
end | |
system "make install" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment