aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMatthew Lewinski2012-02-03 21:12:25 -0600
committerAdam Vandenberg2012-02-26 15:55:13 -0800
commitdff26c1369330c7aff8eb6b2a56196f6b01d0f16 (patch)
tree332f29500287c8d07a1672500cc0049153610bd2 /Library
parentdefde1fef32e188c1a41bd38656e125574148198 (diff)
downloadhomebrew-dff26c1369330c7aff8eb6b2a56196f6b01d0f16.tar.bz2
imap-uw 2007f
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/imap-uw.rb37
1 files changed, 37 insertions, 0 deletions
diff --git a/Library/Formula/imap-uw.rb b/Library/Formula/imap-uw.rb
new file mode 100644
index 000000000..d718b980e
--- /dev/null
+++ b/Library/Formula/imap-uw.rb
@@ -0,0 +1,37 @@
+require 'formula'
+
+class ImapUw < Formula
+ homepage 'http://www.washington.edu/imap/'
+ url 'ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz'
+ version '2007f'
+ sha1 '7a82ebd5aae57a5dede96ac4923b63f850ff4fa7'
+
+ def patches
+ if MacOS.snow_leopard?
+ { :p0 =>
+ 'https://trac.macports.org/export/63088/trunk/dports/mail/imap-uw/files/patch-snowleopard.diff'
+ }
+ end
+ end
+
+ def install
+ ENV.j1
+
+ system 'make oxp'
+
+ # email servers:
+ sbin.install 'imapd/imapd', 'ipopd/ipop2d', 'ipopd/ipop3d'
+
+ # mail utilities:
+ bin.install 'dmail/dmail', 'mailutil/mailutil', 'tmail/tmail'
+
+ # c-client library:
+ # Note: Installing the headers from the root c-client directory is not
+ # possible because they are symlinks and homebrew dutifully copies them
+ # as such. Pulling from within the src dir achieves the desired result.
+ doc.install Dir['docs/*']
+ lib.install 'c-client/c-client.a' => 'libc-client.a'
+ (include + 'imap').install 'c-client/osdep.h', 'c-client/linkage.h'
+ (include + 'imap').install Dir['src/c-client/*.h', 'src/osdep/unix/*.h']
+ end
+end