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

class Clib < Formula
  homepage "https://github.com/clibs/clib"
  url "https://github.com/clibs/clib/archive/1.4.0.tar.gz"
  sha1 "75b8b04047150d9bdd492f2f1ffe50954555ba48"

  head "https://github.com/clibs/clib.git"

  bottle do
    cellar :any
    sha1 "f0819f6b6d7f177efe2b90811c6571b39a1ca8c0" => :yosemite
    sha1 "fd21c95f1441ace6e2706b891239581461143988" => :mavericks
    sha1 "256faa89ce64bdd17b3f19726dd0d0ca85dbcad6" => :mountain_lion
  end

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

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