2010-03-18 15:43:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Eigen < Formula
|
2010-03-18 15:43:45 +00:00
|
|
|
homepage 'http://eigen.tuxfamily.org/'
|
2014-03-09 10:52:07 +00:00
|
|
|
url 'http://bitbucket.org/eigen/eigen/get/3.2.1.tar.bz2'
|
|
|
|
sha1 '17aca570d647b25cb3d9dac54b480cfecf402ed9'
|
2014-03-09 10:57:03 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "b9fd5b10af6391e035b2e2953389db24a45fb041" => :mavericks
|
|
|
|
sha1 "0cc89de9fb2fd1bac03f68375cff7fe453400eac" => :mountain_lion
|
|
|
|
sha1 "d0ac8605688ed41f0ae3f7ed9be68000dd222b37" => :lion
|
|
|
|
end
|
|
|
|
|
2014-02-10 22:01:58 +00:00
|
|
|
head 'https://bitbucket.org/eigen/eigen', :using => :hg
|
2010-03-18 15:43:45 +00:00
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'cmake' => :build
|
2010-03-18 15:43:45 +00:00
|
|
|
|
2012-08-20 05:01:22 +00:00
|
|
|
option :universal
|
|
|
|
|
2010-03-18 15:43:45 +00:00
|
|
|
def install
|
2012-08-20 05:01:22 +00:00
|
|
|
ENV.universal_binary if build.universal?
|
2012-02-22 04:48:36 +00:00
|
|
|
mkdir 'eigen-build' do
|
2012-05-26 16:46:23 +00:00
|
|
|
args = std_cmake_args
|
|
|
|
args.delete '-DCMAKE_BUILD_TYPE=None'
|
|
|
|
args << '-DCMAKE_BUILD_TYPE=Release'
|
2012-08-20 05:01:22 +00:00
|
|
|
args << "-Dpkg_config_libdir=#{lib}" << '..'
|
|
|
|
system 'cmake', *args
|
|
|
|
system 'make install'
|
2011-04-04 21:22:56 +00:00
|
|
|
end
|
2010-03-18 15:43:45 +00:00
|
|
|
end
|
|
|
|
end
|