homebrew-core/Formula/cppdom.rb
Ryan Pavlik 71f7ac0b82 New formula cppdom
Signed-off-by: David Höppner <0xffea@gmail.com>

* remove require hardware
* use snow_leopard_64
2010-08-27 19:50:06 +02:00

23 lines
574 B
Ruby

require 'formula'
class Cppdom <Formula
url 'http://downloads.sourceforge.net/project/xml-cppdom/CppDOM/1.0.1/cppdom-1.0.1.tar.gz'
homepage 'http://sourceforge.net/projects/xml-cppdom/'
md5 'ab30e45eb8129e14040020edc5b0b130'
depends_on 'scons'
depends_on 'boost'
def install
args = ["prefix=#{prefix}", "build_test=no", "var_type=optimized",
"BoostBaseDir=#{Formula.factory('boost').prefix}/"]
if snow_leopard_64?
args << 'var_arch=x64'
else
args << 'var_arch=ia32'
end
system "scons", "install", *args
end
end