aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorVlad Shablinsky2015-03-18 16:03:42 +0300
committerMike McQuaid2015-03-19 12:45:16 +0000
commit1f8014dda1276541289fd8e8fec6045a6d355141 (patch)
tree66b2bc3aee648b588d4f579393ea65e91090a2e1 /Library
parentc720f0db98a970a19cfe45a8f94b61fb5d3ca47b (diff)
downloadhomebrew-1f8014dda1276541289fd8e8fec6045a6d355141.tar.bz2
apg: sha256, test do, remove require
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/apg.rb16
1 files changed, 9 insertions, 7 deletions
diff --git a/Library/Formula/apg.rb b/Library/Formula/apg.rb
index ce27aa6ce..be9b31321 100644
--- a/Library/Formula/apg.rb
+++ b/Library/Formula/apg.rb
@@ -1,9 +1,7 @@
-require 'formula'
-
class Apg < Formula
- homepage 'http://www.adel.nursat.kz/apg/'
- url 'http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz'
- sha1 '7bdbc931ef8477717186dc3ab3a2d3c25012b4ca'
+ homepage "http://www.adel.nursat.kz/apg/"
+ url "http://www.adel.nursat.kz/apg/download/apg-2.2.3.tar.gz"
+ sha256 "69c9facde63958ad0a7630055f34d753901733d55ee759d08845a4eda2ba7dba"
def install
system "make", "standalone",
@@ -11,7 +9,11 @@ class Apg < Formula
"FLAGS=#{ENV.cflags}",
"LIBS=", "LIBM="
- bin.install 'apg', 'apgbfm'
- man1.install 'doc/man/apg.1', 'doc/man/apgbfm.1'
+ 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