aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/lftp.rb
diff options
context:
space:
mode:
authorDavid Reynolds2009-09-11 20:13:01 +0100
committerMax Howell2009-09-16 14:49:07 +0100
commitc66cd5247737f89adc48d1b162552a3eb3517a80 (patch)
treed890792343bfaec293f5f7b0c806179ada7564a8 /Library/Formula/lftp.rb
parent6aede5fa97b7b6a395c9ee17d5584ceabd94876f (diff)
downloadhomebrew-c66cd5247737f89adc48d1b162552a3eb3517a80.tar.bz2
LFTP formula
LFTP is sophisticated ftp/http client, file transfer program supporting a number of network protocols. Like BASH, it has job control and uses readline library for input. It has bookmarks, built-in mirror, can transfer several files in parallel. It was designed with reliability in mind. Signed-off-by: Max Howell <max@methylblue.com> Added MD5 and modified tweaks to the ENV slightly.
Diffstat (limited to 'Library/Formula/lftp.rb')
-rw-r--r--Library/Formula/lftp.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/lftp.rb b/Library/Formula/lftp.rb
new file mode 100644
index 000000000..780db5ce8
--- /dev/null
+++ b/Library/Formula/lftp.rb
@@ -0,0 +1,18 @@
+require 'brewkit'
+
+class Lftp <Formula
+ @url='http://ftp.yars.free.net/pub/source/lftp/lftp-3.7.15.tar.gz'
+ @homepage='http://lftp.yar.ru/'
+ @md5='6c43ffdb59234ff0533cfdda0c3c305c'
+
+ def deps
+ LibraryDep.new 'readline'
+ end
+
+ def install
+ ENV['CXXFLAGS'] += " -fno-exceptions -fno-rtti -fno-implement-inlines"
+ ENV['LDFLAGS'] += " -Xlinker -search_paths_first -L/usr/local/lib"
+ system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", "--with-openssl", "--disable-shared", "--disable-nls"
+ system "make install"
+ end
+end