2010-04-24 17:46:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class IcalBuddy < Formula
|
2010-04-24 17:46:56 +00:00
|
|
|
homepage 'http://hasseg.org/icalBuddy/'
|
|
|
|
head "http://hasseg.org/git-public/icalBuddy.git", :using => :git
|
|
|
|
|
|
|
|
def install
|
2011-03-18 17:30:47 +00:00
|
|
|
arch = MacOS.prefer_64_bit? ? "x86_64" : "i386"
|
2010-04-24 17:46:56 +00:00
|
|
|
|
|
|
|
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
|