homebrew-core/Formula/apg.rb

27 lines
875 B
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class Apg < Formula
2015-03-18 13:03:42 +00:00
homepage "http://www.adel.nursat.kz/apg/"
url "http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz"
sha256 "69c9facde63958ad0a7630055f34d753901733d55ee759d08845a4eda2ba7dba"
2015-03-19 12:23:34 +00:00
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="
2015-03-18 13:03:42 +00:00
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