aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/remind.rb
blob: 6a3645efebdfee4250c36e94e1f02a631bcc7f1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require 'formula'

class Remind <Formula
  url 'http://www.roaringpenguin.com/files/download/remind-03.01.09.tar.gz'
  homepage 'http://www.roaringpenguin.com/products/remind'
  md5 '261a5fb774a1d671cc71e36fd0ea02b3'

  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