homebrew-core/Formula/libqxt.rb

39 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
class Libqxt < Formula
homepage 'http://libqxt.org/'
url 'http://dev.libqxt.org/libqxt/get/v0.6.2.tar.gz'
sha1 'e72a115895d6469972d3f1464bebeab72c497244'
2014-07-03 21:00:25 +00:00
bottle do
sha1 "fcd599202e9f735bb09798a4a77666b7adc2a5fc" => :mavericks
sha1 "427bf5b836ed35122f700d76c5706eff1aba9f33" => :mountain_lion
sha1 "b03a4f46f4a8339dbaf998444ac4feb8007579fa" => :lion
end
depends_on 'qt'
depends_on 'berkeley-db' => :optional
2014-03-17 02:35:20 +00:00
# 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/
patch do
2014-03-17 16:12:54 +00:00
url "https://gist.githubusercontent.com/uranusjr/6019051/raw/866c99ee0031ef2ca7fe6b6495120861d1bd5ec8/qxtglobalshortcut_mac.cpp.diff"
2014-03-17 02:35:20 +00:00
sha1 "b2e9f4af0f4cc318a053ccf13fc1a6ccbd25cb67"
end
def install
args = ["-prefix", prefix,
"-libdir", lib,
"-bindir", bin,
"-docdir", "#{prefix}/doc",
"-featuredir", "#{prefix}/features",
"-release"]
args << "-no-db" if build.without? 'berkeley-db'
system "./configure", *args
system "make"
system "make install"
end
end