2010-04-24 17:46:56 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-08-24 12:22:58 +00:00
|
|
|
# NOTE: Using git-repo instead of zip package as the latter does not
|
|
|
|
# include source files.
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class IcalBuddy < Formula
|
2011-08-24 12:22:58 +00:00
|
|
|
url 'http://hasseg.org/git-public/icalBuddy.git', :tag => 'v1.7.19',
|
2011-06-09 04:43:52 +00:00
|
|
|
:using => :git
|
2010-04-24 17:46:56 +00:00
|
|
|
homepage 'http://hasseg.org/icalBuddy/'
|
2011-08-24 12:22:58 +00:00
|
|
|
version '1.7.19'
|
|
|
|
md5 '719089991317e01479d666b003b925fc'
|
2011-06-09 04:43:52 +00:00
|
|
|
|
2011-08-24 12:22:58 +00:00
|
|
|
head 'http://hasseg.org/git-public/icalBuddy.git', :using => :git
|
2010-04-24 17:46:56 +00:00
|
|
|
|
|
|
|
def install
|
2011-03-18 17:30:47 +00:00
|
|
|
arch = MacOS.prefer_64_bit? ? "x86_64" : "i386"
|
2011-08-24 12:22:58 +00:00
|
|
|
sdk = MACOS_VERSION
|
2011-06-09 04:43:52 +00:00
|
|
|
|
|
|
|
inreplace "Makefile" do |s|
|
|
|
|
s.gsub! "-arch i386 -arch ppc $(ARCH_64BIT)", "-arch #{arch}"
|
|
|
|
s.gsub! "-mmacosx-version-min=10.5", "-mmacosx-version-min=#{sdk}"
|
|
|
|
end
|
2010-04-24 17:46:56 +00:00
|
|
|
|
|
|
|
system "make icalBuddy icalBuddy.1 icalBuddyLocalization.1 icalBuddyConfig.1"
|
|
|
|
|
|
|
|
bin.install "icalBuddy"
|
|
|
|
man1.install Dir["*.1"]
|
|
|
|
end
|
|
|
|
end
|