From b01f683caf6c2ac998afbf6d9d42649a3df2f97d Mon Sep 17 00:00:00 2001 From: nibbles 2bits Date: Sun, 19 Aug 2012 22:01:22 -0700 Subject: eigen: add :universal option Add the `option :universal` to eigen. Tested with clang and llvm from XCode-4.4.1. Closes #14304. Signed-off-by: Adam Vandenberg --- Library/Formula/eigen.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Formula/eigen.rb b/Library/Formula/eigen.rb index 46fb9b720..9bea74fc3 100644 --- a/Library/Formula/eigen.rb +++ b/Library/Formula/eigen.rb @@ -7,15 +7,18 @@ class Eigen < Formula depends_on 'cmake' => :build + option :universal + def install ENV.fortran + ENV.universal_binary if build.universal? mkdir 'eigen-build' do args = std_cmake_args args.delete '-DCMAKE_BUILD_TYPE=None' args << '-DCMAKE_BUILD_TYPE=Release' - - system "cmake", "..", "-Dpkg_config_libdir=#{lib}", *args - system "make install" + args << "-Dpkg_config_libdir=#{lib}" << '..' + system 'cmake', *args + system 'make install' end end end -- cgit v1.2.3