homebrew-core/Formula/alpine.rb
Jack Nagel 53473b6bf5 Clean up MacOS version method usage
The MacOS.version? family of methods (other than "leopard?") are poorly
defined and lead to confusing code. Replace them in formulae with more
explicit comparisons.

"MacOS.version" is a special version object that can be compared to
numerics, symbols, and strings using the standard Ruby comparison
methods.

The old methods were moved to compat when the version comparison code
was merged, and they must remain there "forever", but they should not be
used in new code.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-09-10 16:16:54 -05:00

22 lines
729 B
Ruby

require 'formula'
class Alpine < Formula
homepage 'http://www.washington.edu/alpine/'
url 'ftp://ftp.cac.washington.edu/alpine/alpine-2.00.tar.gz'
sha1 '363b3aa5d3eb1319e168639fbbc42b033b16f15b'
# Upstream builds are broken on Snow Leopard due to a hack put in
# for prior versions of OS X. See:
# http://trac.macports.org/ticket/20971
def patches
"https://trac.macports.org/export/89747/trunk/dports/mail/alpine/files/alpine-osx-10.6.patch"
end if MacOS.version >= :snow_leopard
def install
ENV.j1
system "./configure", "--disable-debug",
"--prefix=#{prefix}",
"--with-ssl-include-dir=/usr/include/openssl"
system "make install"
end
end