aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clib.rb
blob: f283343776e82286da09f15fd4560d4d563d945e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
require "formula"

class Clib < Formula
  homepage "https://github.com/clibs/clib"
  url "https://github.com/clibs/clib/archive/1.2.3.tar.gz"
  sha1 "15f75a9eee1adee29c091b68c1dcb2e05361b665"

  bottle do
    cellar :any
    sha1 "32b3695b5757396d7f32ec5ab88da32aa21d9169" => :yosemite
    sha1 "e59ef5a602376d6c4d9c47dd4d1b11e956d53a2b" => :mavericks
    sha1 "1a883182f9f9dad2cad59985193fceb714f03fae" => :mountain_lion
  end

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

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