2012-04-25 18:52:16 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Xrootd < Formula
|
|
|
|
homepage 'http://xrootd.slac.stanford.edu/index.html'
|
2013-08-17 23:51:03 +00:00
|
|
|
url 'http://xrootd.slac.stanford.edu/download/v3.3.3/xrootd-3.3.3.tar.gz'
|
|
|
|
sha1 '087905489dda62536755a765b9296f0c7f37c149'
|
2012-04-25 18:52:16 +00:00
|
|
|
|
|
|
|
depends_on 'cmake' => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
mkdir "build" do
|
2012-05-22 21:37:04 +00:00
|
|
|
system "cmake", "..", *std_cmake_args
|
2012-04-25 18:52:16 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
2013-08-18 18:42:58 +00:00
|
|
|
share.install prefix/"man" # Put man pages in correct place
|
2012-04-25 18:52:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def test
|
|
|
|
system "#{bin}/xrootd"
|
|
|
|
end
|
|
|
|
end
|