homebrew-core/Formula/ical-buddy.rb
Adam Vandenberg 576185d345 Define "snow_leopard_64?"
snow_leopard_64? (defined in Hardware) is a short-cut for:
  MACOS_VERSION >= 10.6 and Hardware.is_64_bit?

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2010-08-22 20:11:03 -07:00

16 lines
446 B
Ruby

require 'formula'
class IcalBuddy <Formula
homepage 'http://hasseg.org/icalBuddy/'
head "http://hasseg.org/git-public/icalBuddy.git", :using => :git
def install
arch = snow_leopard_64? ? "x86_64" : "i386"
inreplace "Makefile", "-arch i386 -arch x86_64 -arch ppc", "-arch #{arch}"
system "make icalBuddy icalBuddy.1 icalBuddyLocalization.1 icalBuddyConfig.1"
bin.install "icalBuddy"
man1.install Dir["*.1"]
end
end