2014-05-27 16:14:39 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Davix < Formula
|
|
|
|
homepage "http://dmc.web.cern.ch/projects/davix/home"
|
|
|
|
head "https://git.cern.ch/pub/davix.git"
|
|
|
|
|
2014-06-04 17:50:17 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "7fd2d4e6dd0d2572c9bf00df6e63e0f23349684e" => :mavericks
|
|
|
|
sha1 "873460802e57043ba558741a0e04cb6b1ef61ec7" => :mountain_lion
|
|
|
|
sha1 "b17e9338f9f545dcb2a6c336fd03cdf9bf6cbdcb" => :lion
|
|
|
|
end
|
|
|
|
|
2014-05-27 16:14:39 +00:00
|
|
|
stable do
|
2014-06-04 10:00:41 +00:00
|
|
|
url "https://git.cern.ch/pub/davix.git", :tag => "R_0_3_1"
|
|
|
|
version "0.3.1"
|
2014-05-27 16:14:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
depends_on "cmake" => :build
|
|
|
|
depends_on "doxygen" => :build
|
|
|
|
|
|
|
|
def install
|
|
|
|
ENV.libcxx
|
|
|
|
|
|
|
|
system "cmake", ".", *std_cmake_args
|
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/davix-get", "http://www.google.com"
|
|
|
|
end
|
|
|
|
end
|