2010-03-18 15:43:45 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Eigen < Formula
|
2011-12-21 02:33:33 +00:00
|
|
|
url 'http://bitbucket.org/eigen/eigen/get/3.0.4.tar.bz2'
|
2010-03-18 15:43:45 +00:00
|
|
|
homepage 'http://eigen.tuxfamily.org/'
|
2011-12-21 02:33:33 +00:00
|
|
|
md5 'c4a403660311ad8d62a28c118883310f'
|
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
|
|
|
|
|
|
|
def install
|
2012-02-01 17:00:03 +00:00
|
|
|
ENV.fortran
|
2012-02-01 16:58:08 +00:00
|
|
|
|
2011-04-04 21:22:56 +00:00
|
|
|
mkdir 'eigen-build'
|
|
|
|
Dir.chdir 'eigen-build' do
|
2011-10-29 04:35:45 +00:00
|
|
|
system "cmake .. #{std_cmake_parameters} -DCMAKE_BUILD_TYPE=Release -Dpkg_config_libdir=#{lib}"
|
2011-04-04 21:22:56 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2010-03-18 15:43:45 +00:00
|
|
|
end
|
|
|
|
end
|