aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/wyrd.rb
blob: 4cf5d40f5cf23426466ccca7c8e09374dd2a3d14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
class Wyrd < Formula
  homepage "http://pessimization.com/software/wyrd/"
  url "http://pessimization.com/software/wyrd/wyrd-1.4.6.tar.gz"
  sha1 "aaeca29b844825f45aadcf5207f4d1c875e4dc82"

  bottle do
    sha1 "dde6d73145bc484a9f0f62c909c20b26f5029e8d" => :yosemite
    sha1 "92ee61c12e83ece68b9a28d8eb3cb9b95f201dca" => :mavericks
    sha1 "dc2c60f856f3a7b7751a169c4c1ad2e860612af7" => :mountain_lion
  end

  depends_on "remind"
  depends_on "objective-caml" => :build
  depends_on "camlp4" => :build

  def install
    ENV.deparallelize
    system "./configure", "--disable-debug", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--enable-utf8"
    system "make"
    system "make", "install"
  end

  test do
    assert_equal "REM Jan 1 2015 AT 00:01 MSG Happy New Year!\n", shell_output("#{bin}/wyrd --add 'Happy New Year! on 2015-01-1 at 00:01' /dev/stdout")
  end
end