aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/clib.rb
blob: 852aa7a24d086486ec2f323686d11a12b49748f7 (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.1.1.tar.gz"
  sha1 "0b4c59f7f281e8c43d212e789b7b7c81002301e3"

  bottle do
    cellar :any
    sha1 "10a397578f2b73b308a5d0303e58a293537f985e" => :mavericks
    sha1 "b685a52f56d730a8e9bc3ed17b3e1af623b7ca1b" => :mountain_lion
    sha1 "6797bfb01ff5d24f774e77ebd0d99bd3ec7fb610" => :lion
  end

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

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