homebrew-core/Formula/remind.rb
Alexis Hildebrandt 2484fbc651 Update Formula: remind to 03.01.10
Work around download restriction on Mac OS X

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

Fixes Homebrew/homebrew#3039
2010-11-02 20:58:14 -07:00

23 lines
744 B
Ruby

require 'formula'
class Remind <Formula
url 'http://www.roaringpenguin.com/files/download/remind-03.01.10.tar.gz'
homepage 'http://www.roaringpenguin.com/products/remind'
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}")
def install
# Remove unnecessary sleeps when running on Apple
inreplace "configure", "sleep 1", "true"
inreplace "src/init.c" do |s|
s.gsub! "sleep(5);", ""
s.gsub! /rkrphgvba\(.\);/, ""
end
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make install"
end
end