2014-08-07 19:45:21 +00:00
|
|
|
require "formula"
|
|
|
|
|
|
|
|
class Stoken < Formula
|
|
|
|
homepage "http://stoken.sourceforge.net/"
|
|
|
|
url "https://downloads.sourceforge.net/project/stoken/stoken-0.81.tar.gz"
|
|
|
|
sha1 "db36aec5a8bd3f5f92deaebdea08cb639b78da73"
|
|
|
|
|
2014-12-08 23:55:17 +00:00
|
|
|
bottle do
|
|
|
|
cellar :any
|
|
|
|
sha1 "d2fc515e490de6bc426eaf2107904e2f367ee628" => :yosemite
|
|
|
|
sha1 "c77630e2aff83fb1b80b720fc301a0e50a7a2d4a" => :mavericks
|
|
|
|
sha1 "31ce6acf84301626c0763fd3815ccd1c83ae4d36" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2014-08-07 19:45:21 +00:00
|
|
|
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
|