aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/xrootd.rb
blob: 1ab05e6281bf6ff9a7b5efc28912aa070ea156f6 (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/v4.0.3/xrootd-4.0.3.tar.gz"
  sha1 "e03d7dde9b7510c518b03b01b018ca4f1fba867f"

  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