2009-12-27 11:29:02 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2010-11-02 16:00:19 +00:00
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Remind < Formula
|
2010-11-02 16:00:19 +00:00
|
|
|
url 'http://www.roaringpenguin.com/files/download/remind-03.01.10.tar.gz'
|
2009-12-27 11:29:02 +00:00
|
|
|
homepage 'http://www.roaringpenguin.com/products/remind'
|
2010-11-02 16:00:19 +00:00
|
|
|
md5 'f6f7829d3ac92e0d6d463c59b5e6ce3f'
|
|
|
|
|
|
|
|
# roaringpenguin.com returns a 403 when the user agent contains Mac OS X :(
|
|
|
|
HOMEBREW_USER_AGENT.delete!("; Mac OS X #{MACOS_FULL_VERSION}")
|
2009-12-27 11:29:02 +00:00
|
|
|
|
|
|
|
def install
|
2010-07-27 22:08:16 +00:00
|
|
|
# Remove unnecessary sleeps when running on Apple
|
|
|
|
inreplace "configure", "sleep 1", "true"
|
2010-09-13 22:41:08 +00:00
|
|
|
inreplace "src/init.c" do |s|
|
|
|
|
s.gsub! "sleep(5);", ""
|
|
|
|
s.gsub! /rkrphgvba\(.\);/, ""
|
|
|
|
end
|
2010-07-14 09:37:56 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
2009-12-27 11:29:02 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|