aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/yaml-cpp.rb
diff options
context:
space:
mode:
authorBryan Ross2011-01-02 02:55:56 -0700
committerMike McQuaid2011-01-02 20:41:09 +0000
commit71d2d2d4188f8404605cb0110dbdcfa882bf8965 (patch)
tree4f06c78350fecf095c1a8401f01b9230bfe88082 /Library/Formula/yaml-cpp.rb
parentf6d8d309361d60eec865cfe0f671d94c74691874 (diff)
downloadhomebrew-71d2d2d4188f8404605cb0110dbdcfa882bf8965.tar.bz2
Added formula for yaml-cpp
Closes #3795. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/yaml-cpp.rb')
-rw-r--r--Library/Formula/yaml-cpp.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/yaml-cpp.rb b/Library/Formula/yaml-cpp.rb
new file mode 100644
index 000000000..76d06993e
--- /dev/null
+++ b/Library/Formula/yaml-cpp.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class YamlCpp <Formula
+ url 'http://yaml-cpp.googlecode.com/files/yaml-cpp-0.2.5.tar.gz'
+ homepage 'http://code.google.com/p/yaml-cpp/'
+ md5 'b17dc36055cd2259c88b2602601415d9'
+
+ depends_on 'cmake'
+ depends_on 'libyaml'
+
+ def install
+
+ # Fix for building on 10.6
+ # See: http://code.google.com/p/yaml-cpp/issues/detail?id=68 (Fixed in revision r363)
+ inreplace 'src/token.h', '<ios>', '<iostream>'
+
+ system "cmake . #{std_cmake_parameters}"
+ system "make install"
+ end
+end