From 16a6946cd67d6146a06e5f849afc3ba769acf04d Mon Sep 17 00:00:00 2001 From: Hong Xu Date: Thu, 11 Dec 2014 13:11:11 -0800 Subject: editorconfig: add universal binary option Closes #34902. Signed-off-by: Jack Nagel --- Library/Formula/editorconfig.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') diff --git a/Library/Formula/editorconfig.rb b/Library/Formula/editorconfig.rb index f6c979b0f..b50be4f5a 100644 --- a/Library/Formula/editorconfig.rb +++ b/Library/Formula/editorconfig.rb @@ -12,12 +12,16 @@ class Editorconfig < Formula sha1 "84b22980c00b6c779f6308561b06058f5e3d5b11" => :lion end + option :universal + head 'https://github.com/editorconfig/editorconfig-core-c.git' depends_on 'cmake' => :build depends_on 'pcre' def install + ENV.universal_binary if build.universal? + system "cmake", ".", "-DCMAKE_INSTALL_PREFIX:PATH=#{prefix}" system "make install" end -- cgit v1.2.3