2012-02-19 18:37:16 +00:00
|
|
|
class Cifer < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Work on automating classical cipher cracking in C"
|
2015-07-07 05:44:30 +00:00
|
|
|
homepage "https://code.google.com/p/cifer/"
|
|
|
|
url "https://cifer.googlecode.com/files/cifer-1.2.0.tar.gz"
|
|
|
|
sha256 "436816c1f9112b8b80cf974596095648d60ffd47eca8eb91fdeb19d3538ea793"
|
2012-02-19 18:37:16 +00:00
|
|
|
|
2015-07-07 05:55:57 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha256 "bde7d97d9ef2a07c481ff8c5ec717fb2ec455fdef864db2a1a7b3056aa1934d2" => :yosemite
|
|
|
|
sha256 "f4e2f4024a8daf1e2a1fc071113947561c803503fa242b7df7970e8979cf10be" => :mavericks
|
|
|
|
sha256 "8e7b415f5012c001c47484a29e55c608b51e82f5fc5be41787b061765e405d64" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2012-02-19 18:37:16 +00:00
|
|
|
def install
|
2015-07-07 05:44:30 +00:00
|
|
|
system "make", "prefix=#{prefix}",
|
|
|
|
"CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"LDFLAGS=#{ENV.ldflags}",
|
|
|
|
"install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
assert_match /#{version}/, pipe_output("#{bin}/cifer")
|
2012-02-19 18:37:16 +00:00
|
|
|
end
|
|
|
|
end
|