26 lines
875 B
Ruby
26 lines
875 B
Ruby
class Apg < Formula
|
|
homepage "http://www.adel.nursat.kz/apg/"
|
|
url "http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz"
|
|
sha256 "69c9facde63958ad0a7630055f34d753901733d55ee759d08845a4eda2ba7dba"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "834bb84d2209ae2ff3b663567ef2142d7ed513826b648e7c7246a4e8cf243f33" => :yosemite
|
|
sha256 "3005aebd42cef1af15dad861bea49202928f9d2bd672a2ebfae0afffc8ddf291" => :mavericks
|
|
sha256 "bbe17982d5a6d9d91519b8d0e9d134c25f2098bb3225627a3806df09c00761f2" => :mountain_lion
|
|
end
|
|
|
|
def install
|
|
system "make", "standalone",
|
|
"CC=#{ENV.cc}",
|
|
"FLAGS=#{ENV.cflags}",
|
|
"LIBS=", "LIBM="
|
|
|
|
bin.install "apg", "apgbfm"
|
|
man1.install "doc/man/apg.1", "doc/man/apgbfm.1"
|
|
end
|
|
|
|
test do
|
|
system bin/"apg", "-a", "1", "-M", "n", "-n", "3", "-m", "8", "-E", "23456789"
|
|
end
|
|
end
|