homebrew-core/Formula/quassel.rb
nibbles 2bits b2b746898b quassle 0.8.0
Upgrade quassel to version 0.8.0.
Adjust the patch to apply to the altered files.
Add another line to the patch to support `<QtWebKit/QWebSettings>`
otherwise there's a compile error.
Tested on Lion with clang and llvm from XCode-4.3.3 by starting
the chat gui.

Closes Homebrew/homebrew#12939.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-06-25 19:11:16 -05:00

47 lines
1.2 KiB
Ruby

require 'formula'
class Quassel < Formula
homepage 'http://www.quassel-irc.org/'
url 'http://www.quassel-irc.org/pub/quassel-0.8.0.tar.bz2'
sha1 'b74967fa9f19b5d7c708279075cc0ef3a3dbbe8b'
head 'git://git.quassel-irc.org/quassel.git'
depends_on 'cmake' => :build
depends_on 'qt'
def patches
DATA
end
def install
system "cmake", ".", *std_cmake_args
system "make install"
end
end
__END__
--- a/src/qtui/chatscene.cpp 2012-03-20 13:39:20.000000000 -0700
+++ b/src/qtui/chatscene.cpp 2012-06-20 10:06:44.000000000 -0700
@@ -33,7 +33,7 @@
#endif
#ifdef HAVE_WEBKIT
-# include <QWebView>
+# include <QtWebKit/QWebView>
#endif
#include "chatitem.h"
--- a/src/qtui/webpreviewitem.cpp 2012-03-20 13:39:20.000000000 -0700
+++ b/src/qtui/webpreviewitem.cpp 2012-06-20 10:08:51.000000000 -0700
@@ -24,8 +24,8 @@
#include <QGraphicsProxyWidget>
#include <QPainter>
-#include <QWebView>
-#include <QWebSettings>
+#include <QtWebKit/QWebView>
+#include <QtWebKit/QWebSettings>
WebPreviewItem::WebPreviewItem(const QUrl &url)
: QGraphicsItem(0), // needs to be a top level item as we otherwise cannot guarantee that it's on top of other chatlines