homebrew-core/Formula/eigen.rb
Jack Morrison 6576ac981f eigen: add --HEAD.
Closes Homebrew/homebrew#26588.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-10 22:07:08 +00:00

24 lines
629 B
Ruby

require 'formula'
class Eigen < Formula
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
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