23 lines
586 B
Ruby
23 lines
586 B
Ruby
require "formula"
|
|
|
|
class Clib < Formula
|
|
homepage "https://github.com/clibs/clib"
|
|
url "https://github.com/clibs/clib/archive/1.1.4.tar.gz"
|
|
sha1 "b096b9a3dba3583519756b01c02b705468beb8ff"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 "a6697350e19e0ce6102381d4d8a18868655ce19d" => :mavericks
|
|
sha1 "42627582b910bdf6348beffbbbf02cf1856ea7aa" => :mountain_lion
|
|
sha1 "3e1a8fc43c719a55e3ad0a9e9bab1740aefe3fd6" => :lion
|
|
end
|
|
|
|
def install
|
|
ENV["PREFIX"] = prefix
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/clib", "install", "stephenmathieson/rot13.c"
|
|
end
|
|
end
|