Skip to content
This repository has been archived by the owner on Jan 16, 2025. It is now read-only.

Uberftp 2.8 #48447

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions Library/Formula/uberftp.rb
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@
class Uberftp < Formula
desc "Interactive GridFTP client"
homepage "http://dims.ncsa.illinois.edu/set/uberftp/"
url "https://github.com/JasonAlt/UberFTP/archive/Version_2_7.tar.gz"
sha256 "29a111a86fa70dbbc529a5d3e5a6befc1681e64e32dc019a1a6a98cd43ffb204"
url "https://github.com/JasonAlt/UberFTP/archive/Version_2_8.tar.gz"
sha256 "8a397d6ef02bb714bb0cbdb259819fc2311f5d36231783cd520d606c97759c2a"

depends_on "globus-toolkit"

def install
# get the flavor
globus = Formula["globus-toolkit"].opt_prefix

core = `"#{globus}/sbin/gpt-query" globus_core`
flavor = case core
when /gcc64dbg/ then "gcc64dbg"
when /gcc32dbg/ then "gcc32dbg"
end
# patch needed since location changed with globus-toolkit versions>=6.0,
# patch to upstream is not yet merged
# (located at https://github.com/JasonAlt/UberFTP/pull/8)
# but solves not whole problem (needs aditional patch)
inreplace "configure", "globus_location/include/globus/gcc64dbg", "globus_location/libexec/include"
inreplace "configure", "globus_location/lib64", "globus_location/libexec/lib"

system "./configure", "--prefix=#{prefix}",
"--with-globus-flavor=#{flavor}",
"--with-globus=#{globus}"
system "make"
system "make", "install"
Expand Down