homebrew-core/Formula/eigen.rb
Yan Zhou 37449e535a eigen: Update to 3.1.2
Closes Homebrew/homebrew#15948.

Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
2012-11-11 08:53:56 -08:00

23 lines
571 B
Ruby

require 'formula'
class Eigen < Formula
homepage 'http://eigen.tuxfamily.org/'
url 'http://bitbucket.org/eigen/eigen/get/3.1.2.tar.bz2'
sha1 'b788877a4d4b1685ee2a5d738a65b04b6a21ff3d'
depends_on 'cmake' => :build
option :universal
def install
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'
args << "-Dpkg_config_libdir=#{lib}" << '..'
system 'cmake', *args
system 'make install'
end
end
end