-
Notifications
You must be signed in to change notification settings - Fork 1
/
gfal2.rb
31 lines (27 loc) · 877 Bytes
/
gfal2.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class Gfal2 < Formula
desc "Grid file access library 2"
homepage "http://dmc.web.cern.ch/"
url "https://gitlab.cern.ch/dmc/gfal2.git",
:tag => "v2.16.3"
version "2.16.3"
depends_on "boost"
depends_on "cmake" => :build
depends_on "cern-fts/dmc/davix" => :build
depends_on "json-c"
depends_on "glib"
depends_on "globus-toolkit"
depends_on "libssh2"
depends_on "pkg-config" => :build
depends_on "srm-ifce"
depends_on "xrootd"
def install
ENV.libcxx
globus = Formula["globus-toolkit"].opt_prefix
xrootd = Formula["xrootd"].opt_prefix
system "cmake", "-DGLOBUS_PREFIX=#{globus}", "-DXROOTD_LOCATION=#{xrootd}", "-DSKIP_TESTS=ON", "-DPLUGIN_RFIO=OFF", "-DPLUGIN_LFC=OFF", "-DPLUGIN_DCAP=OFF", "-DPLUGIN_HTTP=ON", ".", *std_cmake_args
system "make", "install"
end
test do
system "#{bin}/gfal2_version"
end
end