require "formula" # Documentation: https://github.com/Homebrew/homebrew/wiki/Formula-Cookbook # /usr/local/Library/Contributions/example-formula.rb # PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! class Libodb < Formula homepage "http://www.codesynthesis.com/products/odb/" url "http://www.codesynthesis.com/download/odb/2.4/libodb-2.4.0.tar.gz" sha1 "10ecc193b883e198e4b4c678f1561f280784d629" # depends_on "gcc" => :build depends_on "odb" => :optional option "with-odb", "Install the ODB compiler" def install system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}", "CC=clang", "CXX=clang++ -stdlib=libstdc++", "LDFLAGS=-L/usr/lib", "LIBS=-lstdc++" system "make", "install" # if this fails, try separate make/make install steps end # fails_with :clang do # cause <<-EOS.undent # Oh! It seems that you only have clang available, or GCC wasn't found! # Make sure you GCC is installed and recognized by homebrew. # EOS # end test do system "false" end end