aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/libqxt.rb
blob: f644936c692d69fb08eff4d8f9b482ce4488217b (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
require 'formula'

class Libqxt < Formula
  homepage 'http://libqxt.org/'
  url 'http://dev.libqxt.org/libqxt/get/v0.6.2.tar.gz'
  sha1 'e72a115895d6469972d3f1464bebeab72c497244'

  depends_on 'qt'
  depends_on 'berkeley-db' => :optional

  def patches
    # Patch src/gui/qxtglobalshortcut_mac.cpp to fix a bug caused by obsolete
    # constants in Mac OS X 10.6.
    # http://dev.libqxt.org/libqxt-old-hg/issue/50/
    "https://gist.github.com/uranusjr/6019051/raw/"
  end

  def install
    args = ["-prefix", prefix,
            "-libdir", lib,
            "-bindir", bin,
            "-docdir", "#{prefix}/doc",
            "-featuredir", "#{prefix}/features",
            "-release"]
    args << "-no-db" unless build.with? 'berkeley-db'

    system "./configure", *args
    system "make"
    system "make install"
  end
end