aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authornibbles 2bits2012-08-19 22:01:22 -0700
committerAdam Vandenberg2012-08-21 07:05:08 -0700
commitb01f683caf6c2ac998afbf6d9d42649a3df2f97d (patch)
tree9b2dca01ea16e397b6cca3ba571cbe9c9427e0e8 /Library
parent44197a12f9895e64ded4ded3efb652154a9ac134 (diff)
downloadhomebrew-b01f683caf6c2ac998afbf6d9d42649a3df2f97d.tar.bz2
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 <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/eigen.rb9
1 files changed, 6 insertions, 3 deletions
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