aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clib.rb
blob: 97509e9db3a7b76081b0259d5c7c07eaab9b1c5d (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
29
require "formula"

class Clib < Formula
  homepage "https://github.com/clibs/clib"
  url "https://github.com/clibs/clib/archive/1.0.0.tar.gz"
  sha1 "d840b4259190e1b3ce6cc0970f3e9f659226b9d3"

  def patches
    # Fix exit codes.
    "https://github.com/clibs/clib/commit/000a5a.patch"
  end

  bottle do
    cellar :any
    revision 1
    sha1 "530dbba3d513eaa7284a7599a9e5c9b5661e49b8" => :mavericks
    sha1 "3a5752cfabec9ba1be40264e921156be5a8322e3" => :mountain_lion
    sha1 "257551cef879d27bade529a36ae035fe19775f38" => :lion
  end

  def install
    ENV["PREFIX"] = prefix
    system "make", "install"
  end

  test do
    system "#{bin}/clib", "install", "stephenmathieson/rot13.c"
  end
end