homebrew-core/Formula/cppdom.rb
2010-08-30 18:22:57 +02:00

45 lines
1.2 KiB
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=#{HOMEBREW_PREFIX}/"]
if snow_leopard_64?
args << 'var_arch=x64'
else
args << 'var_arch=ia32'
end
system "#{HOMEBREW_PREFIX}/bin/scons", "install", *args
end
def patches
# Don't install to prefix/lib64
DATA
end
end
__END__
diff --git a/SConstruct b/SConstruct
index ef38778..97a9ea3 100644
--- a/SConstruct
+++ b/SConstruct
@@ -170,9 +170,6 @@ if not SConsAddons.Util.hasHelpFlag():
inst_paths = copy.copy(base_inst_paths)
inst_paths['libPrefix'] = pj(inst_paths['flagpollPrefix'], 'lib')
- if "x64" == combo["arch"]:
- inst_paths['lib'] = inst_paths['lib'] + '64'
- inst_paths['libPrefix'] = inst_paths['libPrefix'] + '64'
if "debug" == combo["type"]:
inst_paths["lib"] = pj(inst_paths["lib"],"debug")
inst_paths['libPrefix'] = pj(inst_paths['libPrefix'],'debug')