aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorshreddd2013-08-20 14:57:26 -0700
committerAdam Vandenberg2013-09-19 22:34:44 -0700
commitb30687d0a89ab5a68313741eaf6067c061fb703a (patch)
tree573d381e26adecb56b3a95ce502e05533059c741 /Library
parent4ee7933c2dfe90d37450f23a32cc4a9b0554568c (diff)
downloadhomebrew-b30687d0a89ab5a68313741eaf6067c061fb703a.tar.bz2
uberftp 2.7
Closes #22037. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/uberftp.rb30
1 files changed, 30 insertions, 0 deletions
diff --git a/Library/Formula/uberftp.rb b/Library/Formula/uberftp.rb
new file mode 100644
index 000000000..12a09b161
--- /dev/null
+++ b/Library/Formula/uberftp.rb
@@ -0,0 +1,30 @@
+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
+ globus = Formula.factory('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