New formula cppdom
Signed-off-by: David Höppner <0xffea@gmail.com> * remove require hardware * use snow_leopard_64
This commit is contained in:
parent
baf9b2fff0
commit
71f7ac0b82
1 changed files with 23 additions and 0 deletions
23
Formula/cppdom.rb
Normal file
23
Formula/cppdom.rb
Normal file
|
@ -0,0 +1,23 @@
|
|||
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
|
Loading…
Reference in a new issue