homebrew-core/Formula/stoken.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

38 lines
1 KiB
Ruby

class Stoken < Formula
desc "Tokencode generator compatible with RSA SecurID 128-bit (AES)"
homepage "http://stoken.sourceforge.net/"
url "https://downloads.sourceforge.net/project/stoken/stoken-0.81.tar.gz"
sha256 "786d15973f15097ba76d3231bfb7da649ffbab08a0bde55089a3d8e476cf69f7"
bottle do
cellar :any
sha1 "d2fc515e490de6bc426eaf2107904e2f367ee628" => :yosemite
sha1 "c77630e2aff83fb1b80b720fc301a0e50a7a2d4a" => :mavericks
sha1 "31ce6acf84301626c0763fd3815ccd1c83ae4d36" => :mountain_lion
end
depends_on "gtk+3" => :optional
if build.with? "gtk+3"
depends_on "gnome-icon-theme"
depends_on "hicolor-icon-theme"
end
depends_on "pkg-config" => :build
depends_on "nettle"
def install
args = %W[
--disable-dependency-tracking
--disable-debug
--disable-silent-rules
--prefix=#{prefix}
]
system "./configure", *args
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/stoken", "show", "--random"
end
end