homebrew-core/Formula/iodine.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

16 lines
446 B
Ruby

require 'formula'
class Iodine < Formula
url 'http://code.kryo.se/iodine/iodine-0.6.0-rc1.tar.gz'
homepage 'http://code.kryo.se/iodine/'
sha1 '4fa9a248b8a84df8a727a5d749e669e58136edca'
def install
unless MacOS.version == :leopard
inreplace ["src/common.c", "src/dns.c", "src/iodine.c", "src/iodined.c"],
"arpa/nameser8_compat", "arpa/nameser_compat"
end
system "make", "install", "prefix=#{prefix}"
end
end