aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xrootd.rb20
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/xrootd.rb b/Library/Formula/xrootd.rb
new file mode 100644
index 000000000..434a745a6
--- /dev/null
+++ b/Library/Formula/xrootd.rb
@@ -0,0 +1,20 @@
+require 'formula'
+
+class Xrootd < Formula
+ homepage 'http://xrootd.slac.stanford.edu/index.html'
+ url 'http://xrootd.slac.stanford.edu/download/v3.1.1/xrootd-3.1.1.tar.gz'
+ md5 '6466b12a99aed3f8ea0b56b5b3ace093'
+
+ depends_on 'cmake' => :build
+
+ def install
+ mkdir "build" do
+ system "cmake", "..", *std_cmake_parameters
+ system "make install"
+ end
+ end
+
+ def test
+ system "#{bin}/xrootd"
+ end
+end