aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xrootd.rb
blob: d14655dc3a2c5f69bd756761a896704dcd0e5b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
require 'formula'

class Xrootd < Formula
  homepage 'http://xrootd.slac.stanford.edu/index.html'
  url 'http://xrootd.slac.stanford.edu/download/v3.3.4/xrootd-3.3.4.tar.gz'
  sha1 '9992c80b77cababf6fe1ee8535c930d082f501b4'

  depends_on 'cmake' => :build

  def install
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make install"
    end
    share.install prefix/'man'
  end

  def test
    system "#{bin}/xrootd"
  end
end