diff options
| author | Alex Samorukov | 2014-08-07 21:45:21 +0200 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-09 08:49:26 +0000 |
| commit | 8c763b208c5cacc046af5237e77f53e08a8f17b8 (patch) | |
| tree | 046e6eba9390d92a3c4c765f21080f89abd25c38 | |
| parent | 3aeecefcaa5a64589c37fdb177a5fb2b2e64d0c1 (diff) | |
| download | homebrew-8c763b208c5cacc046af5237e77f53e08a8f17b8.tar.bz2 | |
stoken/stoken-gui (new formula)
Signed-off-by: Alex Samorukov <samm@os2.kiev.ua>
[cernekee: update formula to work with stoken v0.8]
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
| -rw-r--r-- | Library/Formula/stoken.rb | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Library/Formula/stoken.rb b/Library/Formula/stoken.rb new file mode 100644 index 000000000..6ea28114c --- /dev/null +++ b/Library/Formula/stoken.rb @@ -0,0 +1,32 @@ +require "formula" + +class Stoken < Formula + homepage "http://stoken.sourceforge.net/" + url "https://downloads.sourceforge.net/project/stoken/stoken-0.81.tar.gz" + sha1 "db36aec5a8bd3f5f92deaebdea08cb639b78da73" + + 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 |
