aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xrootd.rb
blob: b624d44b99ec1c96fcd14cc5bfddbb6dacd7ff11 (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.org'
  url 'http://xrootd.org/download/v3.3.5/xrootd-3.3.5.tar.gz'
  sha1 '103be7641ef0e7a3a4f6686641a8dc207eb4cf7f'

  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", "-H"
  end
end