aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/qca.rb
blob: d02e55a615cf324bab66d683b415f06c66da12d8 (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
require "formula"

class Qca < Formula
  homepage "http://delta.affinix.com/qca/"
  url "http://delta.affinix.com/download/qca/2.0/qca-2.1.0.tar.gz"
  sha1 "2b582b3ccc7e6098cd14d6f52a829ae1539e9cc8"

  bottle do
    sha1 "3ff5e09bb690122d807b48470cf1bbafcca89b41" => :yosemite
    sha1 "f01d8cbd41c97068185af2f4c6efdec8ff0c6ce7" => :mavericks
    sha1 "4638b43c0ce83a2cccc64d678c7eefffd1844ba3" => :mountain_lion
  end

  depends_on "cmake" => :build
  depends_on "pkg-config" => :build
  depends_on "qt"
  depends_on "openssl"

  def install
    mkdir "build" do
      system "cmake", "..", *std_cmake_args
      system "make", "install"
    end
  end

  test do
    system "#{bin}/qcatool", "--noprompt", "--newpass=",
                             "key", "make", "rsa", "2048", "test.key"
  end
end