@@ -0,0 +1,1005 @@
+class WebkitPackage (Package):%0A%09def __init__ (self):%0A%09%09Package.__init__ (self, 'webkitgtk', '2.9.1',%0A%09%09%09sources = %5B'http://webkitgtk.org/releases/%25%7Bname%7D-%25%7Bversion%7D.tar.xz'%5D,%0A%09%09%09configure_flags = %5B%0A%09%09%09%09'--disable-video',%0A%09%09%09%09'--disable-geolocation',%0A%09%09%09%09'--disable-xslt',%0A%09%09%09%5D%0A%09%09)%0A%0A%09%09if Package.profile.name == 'darwin':%0A%09%09%09self.configure_flags.extend (%5B%0A%09%09%09%09'--with-target=quartz',%0A%09%09%09%09'--with-gtk=3.0',%0A%09%09%09%09'--disable-gtk-doc'%0A%09%09%09%5D)%0A%0A%09%09%09# self.sources.extend (%5B%5D)%0A%0A%09def prep (self):%0A%09%09Package.prep (self)%0A%09%09if Package.profile.name == 'darwin':%0A%09%09%09for p in range (1, len (self.sources)):%0A%09%09%09%09self.sh ('patch -p0 %3C %22%25%7Bsources%5B' + str (p) + '%5D%7D%22')%0A%0A%09def build (self):%0A%09%09self.sh (%0A%09%09%09# Let's set a bunch of variables, to make cmake feel loved%0A%09%09%09'CMAKE_PREFIX_PATH=%25%7Bprefix%7D',%0A%09%09%09'CMAKE_LIBRARY_PATH=%25%7Bprefix%7D/lib',%0A%09%09%09'CMAKE_INSTALL_PREFIX=%25%7Bprefix%7D',%0A%0A%09%09%09# build and install%0A%09%09%09'cmake -DCMAKE_SYSTEM_PROCESSOR=i386 -DPORT=GTK -DCMAKE_INSTALL_PREFIX=%25%7Bprefix%7D . && make all install',%0A%09%09%09)%0A%0AWebkitPackage()%0A

Add webkit-gtk3 2.9.1