aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xrootd.rb
blob: 06a67e30a88a9fa6c76174eb53b277d54c5bba34 (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.6/xrootd-3.3.6.tar.gz'
  sha1 'be1fca000a517933c73c68e40cee6203fd2b6ad6'

  depends_on 'cmake' => :build

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

  test do
    system "#{bin}/xrootd", "-H"
  end
end