aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorHong Xu2014-12-11 13:11:11 -0800
committerJack Nagel2014-12-12 01:00:00 -0500
commit16a6946cd67d6146a06e5f849afc3ba769acf04d (patch)
tree8aba27a19857baf3d86ec118159f616bde94af43 /Library
parentc3f4c72fa2c3ab70c942b0990b00ebd702c57a66 (diff)
downloadhomebrew-16a6946cd67d6146a06e5f849afc3ba769acf04d.tar.bz2
editorconfig: add universal binary option
Closes #34902. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/editorconfig.rb4
1 files changed, 4 insertions, 0 deletions
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