2011-09-29 03:11:06 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Clhep < Formula
|
|
|
|
homepage 'http://proj-clhep.web.cern.ch/proj-clhep/'
|
2012-03-20 04:07:02 +00:00
|
|
|
url 'http://proj-clhep.web.cern.ch/proj-clhep/DISTRIBUTION/tarFiles/clhep-2.1.2.2.tgz'
|
|
|
|
sha1 '374340e316c192c211db36c4cd3f29407cc75318'
|
2011-09-29 03:11:06 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
mkdir 'clhep-build' do
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", "../CLHEP",
|
|
|
|
"-DCMAKE_PREFIX_PATH=#{prefix}",
|
|
|
|
*std_cmake_args
|
2011-09-29 03:11:06 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|