aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTzu-ping Chung2013-07-17 18:27:39 +0800
committerAdam Vandenberg2013-09-13 19:57:20 -0700
commit7d64f2b9fd164100982279aa76c6d2b6699dc0ac (patch)
tree12d80f8f5be515f11471ff09455b13b8e5134d12 /Library/Formula
parent6ab29ff8816323326b230ec8acfcebe2d2cab754 (diff)
downloadhomebrew-7d64f2b9fd164100982279aa76c6d2b6699dc0ac.tar.bz2
LibQxt 0.6.2
Closes #21275. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libqxt.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/libqxt.rb b/Library/Formula/libqxt.rb
new file mode 100644
index 000000000..f644936c6
--- /dev/null
+++ b/Library/Formula/libqxt.rb
@@ -0,0 +1,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