blob: f20428a9e61d4883bc29c82b6e5258ea46e52a35 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
require 'formula'
class YamlCpp < Formula
homepage 'http://code.google.com/p/yaml-cpp/'
url 'https://yaml-cpp.googlecode.com/files/yaml-cpp-0.5.1.tar.gz'
sha1 '9c5414b4090491e96d1b808fe8628b31e625fdaa'
option :cxx11
depends_on 'cmake' => :build
if build.cxx11?
depends_on 'boost' => 'c++11'
else
depends_on 'boost'
end
def install
ENV.cxx11 if build.cxx11?
system "cmake", ".", *std_cmake_args
system "make install"
end
end
|