homebrew-core/Formula/eigen.rb

25 lines
629 B
Ruby
Raw Normal View History

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/'
url 'http://bitbucket.org/eigen/eigen/get/3.2.0.tar.bz2'
sha1 '97de9df52c035dd260ccee6cf6ab09bb559fa441'
head 'https://bitbucket.org/eigen/eigen', :using => :hg
2010-03-18 15:43:45 +00:00
depends_on 'cmake' => :build
2010-03-18 15:43:45 +00:00
option :universal
2010-03-18 15:43:45 +00:00
def install
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'
args << "-Dpkg_config_libdir=#{lib}" << '..'
system 'cmake', *args
system 'make install'
end
2010-03-18 15:43:45 +00:00
end
end