2010-05-21 01:30:58 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Cppdom < Formula
|
2011-10-04 20:55:58 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/xml-cppdom/CppDOM/1.2.0/cppdom-1.2.0.tar.bz2'
|
2010-05-21 01:30:58 +00:00
|
|
|
homepage 'http://sourceforge.net/projects/xml-cppdom/'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'cf3a20689e82b8907825ac9d0602f469f879d934'
|
2010-05-21 01:30:58 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'scons' => :build
|
2010-05-21 01:30:58 +00:00
|
|
|
depends_on 'boost'
|
|
|
|
|
2010-10-21 14:54:17 +00:00
|
|
|
# Don't install to prefix/lib64
|
|
|
|
def patches; DATA; end
|
|
|
|
|
2010-05-21 01:30:58 +00:00
|
|
|
def install
|
|
|
|
args = ["prefix=#{prefix}", "build_test=no", "var_type=optimized",
|
2010-08-30 15:48:07 +00:00
|
|
|
"BoostBaseDir=#{HOMEBREW_PREFIX}/"]
|
2010-05-21 01:30:58 +00:00
|
|
|
|
2011-03-18 17:30:47 +00:00
|
|
|
if MacOS.prefer_64_bit?
|
2010-05-21 01:30:58 +00:00
|
|
|
args << 'var_arch=x64'
|
|
|
|
else
|
|
|
|
args << 'var_arch=ia32'
|
|
|
|
end
|
|
|
|
|
2010-08-30 15:48:07 +00:00
|
|
|
system "#{HOMEBREW_PREFIX}/bin/scons", "install", *args
|
|
|
|
end
|
2010-05-21 01:30:58 +00:00
|
|
|
end
|
2010-08-30 15:48:07 +00:00
|
|
|
|
|
|
|
__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')
|
|
|
|
|