homebrew-core/Formula/uberftp.rb

31 lines
763 B
Ruby
Raw Normal View History

require 'formula'
class Uberftp < Formula
homepage 'http://dims.ncsa.illinois.edu/set/uberftp/'
url 'https://github.com/JasonAlt/UberFTP/archive/Version_2_7.tar.gz'
sha1 'f185e2ed567eca3484ca230e44a6ffdb4ec69792'
depends_on 'globus-toolkit'
def install
# get the flavor
2014-02-26 05:40:10 +00:00
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
system "./configure", "--prefix=#{prefix}",
"--with-globus-flavor=#{flavor}",
"--with-globus=#{globus}"
system "make"
system "make install"
end
test do
system "#{bin}/uberftp", "-v"
end
end