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

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

  bottle do
    cellar :any
    revision 1
    sha1 "34cd018a5a3b85899d246574eb653246a929c848" => :yosemite
    sha1 "15a82cf9553ac9c8eff6a6cc309661b55327c710" => :mavericks
    sha1 "c6d984954c4faee1cfa9daba196e77830fdcfd46" => :mountain_lion
  end

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

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