aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/gwenhywfar.rb
blob: 625a5c3027181a0c12dd7fba3a265e210c882e4c (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
class Gwenhywfar < Formula
  homepage "http://www.aqbanking.de/"
  url "http://www2.aquamaniac.de/sites/download/download.php?package=01&release=77&file=01&dummy=gwenhywfar-4.13.0.tar.gz"
  sha1 "c4f37eb7fed069f3478e06a9311193a98cc9ddbf"
  head "http://devel.aqbanking.de/svn/gwenhywfar/trunk"

  bottle do
    sha1 "3855ce27d2b51561e7d5fbb720bb13363051d742" => :yosemite
    sha1 "567cf27a34cb43468ade7422aeec1e410ff819a8" => :mavericks
    sha1 "746a3db32ec9f3f033752fc594761b596fec7f2d" => :mountain_lion
  end

  depends_on "pkg-config" => :build
  depends_on "gettext"
  depends_on "gnutls"
  depends_on "openssl"
  depends_on "libgcrypt"
  depends_on "gtk+" => :optional
  depends_on "qt" => :optional

  option "without-cocoa", "Build without cocoa support"
  option "with-check", "Run build-time check"

  def install
    guis = []
    guis << "gtk2" if build.with? "gtk+"
    guis << "qt4" if build.with? "qt"
    guis << "cocoa" if build.with? "cocoa"

    system "./configure", "--disable-debug",
                          "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--with-guis=#{guis.join(" ")}"
    system "make", "check" if build.with? "check"
    system "make", "install"
  end
end