53 lines
2 KiB
Ruby
53 lines
2 KiB
Ruby
require 'formula'
|
|
|
|
class Phantomjs < Formula
|
|
homepage 'http://www.phantomjs.org/'
|
|
url 'https://phantomjs.googlecode.com/files/phantomjs-1.9.2-source.zip'
|
|
sha1 '08559acdbbe04e963632bc35e94c1a9a082b6da1'
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha1 '8dc41cea65414ef1942cc7b4bddfd00a266c7812' => :mountain_lion
|
|
sha1 'b1843eb5e79b8e32e563b1e06f5370152689362f' => :lion
|
|
sha1 '3bc0bbeb43f625f3b56501bd4703dc51b96abd84' => :snow_leopard
|
|
end
|
|
|
|
def patches
|
|
DATA
|
|
end
|
|
|
|
def install
|
|
inreplace 'src/qt/preconfig.sh', '-arch x86', '-arch x86_64' if MacOS.prefer_64_bit?
|
|
args = ['--confirm', '--qt-config']
|
|
# Fix Clang/LLVM 3DNow! intrinsic failure.
|
|
if MacOS.version >= :lion
|
|
args << '-no-3dnow'
|
|
else
|
|
args << '-no-3dnow -no-ssse3'
|
|
end
|
|
system './build.sh', *args
|
|
bin.install 'bin/phantomjs'
|
|
(share+'phantomjs').install 'examples'
|
|
end
|
|
end
|
|
__END__
|
|
diff --git a/src/qt/src/gui/kernel/qt_cocoa_helpers_mac_p.h b/src/qt/src/gui/kernel/qt_cocoa_helpers_mac_p.h
|
|
index c068234..90d2ca0 100644
|
|
--- a/src/qt/src/gui/kernel/qt_cocoa_helpers_mac_p.h
|
|
+++ b/src/qt/src/gui/kernel/qt_cocoa_helpers_mac_p.h
|
|
@@ -110,6 +110,7 @@
|
|
#include "private/qt_mac_p.h"
|
|
|
|
struct HIContentBorderMetrics;
|
|
+struct TabletProximityRec;
|
|
|
|
#ifdef Q_WS_MAC32
|
|
typedef struct _NSPoint NSPoint; // Just redefine here so I don't have to pull in all of Cocoa.
|
|
@@ -155,7 +156,6 @@ bool qt_dispatchKeyEvent(void * /*NSEvent * */ keyEvent, QWidget *widgetToGetEve
|
|
void qt_dispatchModifiersChanged(void * /*NSEvent * */flagsChangedEvent, QWidget *widgetToGetEvent);
|
|
bool qt_mac_handleTabletEvent(void * /*QCocoaView * */view, void * /*NSEvent * */event);
|
|
inline QApplication *qAppInstance() { return static_cast<QApplication *>(QCoreApplication::instance()); }
|
|
-struct ::TabletProximityRec;
|
|
void qt_dispatchTabletProximityEvent(const ::TabletProximityRec &proxRec);
|
|
Qt::KeyboardModifiers qt_cocoaModifiers2QtModifiers(ulong modifierFlags);
|
|
Qt::KeyboardModifiers qt_cocoaDragOperation2QtModifiers(uint dragOperations);
|