7c648d9732
When interpolating in strings passed to Formula#system, it should be done in such a way that if any interpolated variables contain spaces, they are either (a) passed as part of a list or (b) protected by quotes if they are part of a long string (which is subject to shell expansion). Otherwise, they will be split on the space when expanded by the shell and passed as multiple arguments to whatever process is being executed. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
17 lines
422 B
Ruby
17 lines
422 B
Ruby
require 'formula'
|
|
|
|
class Eigen < Formula
|
|
homepage 'http://eigen.tuxfamily.org/'
|
|
url 'http://bitbucket.org/eigen/eigen/get/3.0.5.tar.bz2'
|
|
md5 '43070952464a5bf21694e082e7fb8fce'
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
def install
|
|
ENV.fortran
|
|
mkdir 'eigen-build' do
|
|
system "cmake #{std_cmake_parameters} -DCMAKE_BUILD_TYPE=Release -Dpkg_config_libdir='#{lib}' .."
|
|
system "make install"
|
|
end
|
|
end
|
|
end
|