2013-07-17 10:27:39 +00:00
|
|
|
class Libqxt < Formula
|
2015-01-28 03:52:23 +00:00
|
|
|
homepage "http://libqxt.org/"
|
|
|
|
url "http://dev.libqxt.org/libqxt/get/v0.6.2.tar.gz"
|
|
|
|
sha1 "e72a115895d6469972d3f1464bebeab72c497244"
|
2013-07-17 10:27:39 +00:00
|
|
|
|
2014-07-03 21:00:25 +00:00
|
|
|
bottle do
|
2014-10-20 17:16:49 +00:00
|
|
|
revision 1
|
|
|
|
sha1 "9067b8aa2d91ea0fd4093db5d7fe95accf51ba41" => :yosemite
|
|
|
|
sha1 "6e85849128742e9d76536453fc4f2df435f1e0f2" => :mavericks
|
|
|
|
sha1 "14ce9bb17e24f36a53745d5bd4c1b0341fb76e51" => :mountain_lion
|
2014-07-03 21:00:25 +00:00
|
|
|
end
|
|
|
|
|
2015-01-28 03:52:23 +00:00
|
|
|
# As of 26/07/2014 this formula is no longer maintained upstream.
|
|
|
|
# http://dev.libqxt.org/libqxt/wiki/commits/7e7a0ad676e649bf6f64a2cad1ea6dd204fb766c
|
|
|
|
depends_on "qt"
|
|
|
|
depends_on "berkeley-db" => :optional
|
2013-07-17 10:27:39 +00:00
|
|
|
|
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"
|
2013-07-17 10:27:39 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
args = ["-prefix", prefix,
|
|
|
|
"-libdir", lib,
|
|
|
|
"-bindir", bin,
|
|
|
|
"-docdir", "#{prefix}/doc",
|
|
|
|
"-featuredir", "#{prefix}/features",
|
|
|
|
"-release"]
|
2015-01-28 03:52:23 +00:00
|
|
|
args << "-no-db" if build.without? "berkeley-db"
|
2013-07-17 10:27:39 +00:00
|
|
|
|
|
|
|
system "./configure", *args
|
|
|
|
system "make"
|
2015-01-28 03:52:23 +00:00
|
|
|
system "make", "install"
|
2013-07-17 10:27:39 +00:00
|
|
|
end
|
|
|
|
end
|