homebrew-core/Formula/stoken.rb
2015-08-10 19:53:49 -07:00

38 lines
1.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.90.tar.gz"
sha256 "b83d7b95e4ad9b107ab8a5b6c26da0f233001fdfda78d8be76562437d3bd4f7d"
bottle do
cellar :any
sha256 "197c4218ff7932159d24057d02ef89ec12404221c3564f0b51b17aacc1227116" => :yosemite
sha256 "9be0556c8d11e136c17199057fb101040dd75da21f26f997c1fabefe1f99bfcb" => :mavericks
sha256 "5aa3a27ef13dfe8f3f48e055d8c88dbdb6d45f9f6fd1bdf55ce01d1320c69a91" => :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