aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/stoken.rb
blob: ff6a25f5aa540145959d113178dfc0a5ce85afd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require "formula"

class Stoken < Formula
  homepage "http://stoken.sourceforge.net/"
  url "https://downloads.sourceforge.net/project/stoken/stoken-0.81.tar.gz"
  sha1 "db36aec5a8bd3f5f92deaebdea08cb639b78da73"

  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