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
|
2016-02-23 17:43:12 +00:00
|
|
|
cellar :any_skip_relocation
|
|
|
|
sha256 "86cbc00f11a5818f48ee67bdc0fa5f2692cc7f37ae6c2c5eb237338c7dc6919b" => :el_capitan
|
2015-07-07 05:55:57 +00:00
|
|
|
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
|