Skip to content

Commit

Permalink
[webkit] bump to webkit-gtk 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynalon committed Jun 5, 2012
1 parent 6a95cc7 commit cccbd29
Showing 1 changed file with 36 additions and 10 deletions.
46 changes: 36 additions & 10 deletions packages/webkit.py
@@ -1,10 +1,36 @@
Package ('webkit', '1.2.5',
sources = [ 'http://webkitgtk.org/%{name}-%{version}.tar.gz' ],
configure_flags = [
'--disable-video',
'--disable-xpath',
'--disable-xslt',
'--disable-wml',
'--disable-ruby'
]
)
class WebkitPackage (Package):
def __init__ (self):
Package.__init__ (self, 'webkit', '1.8.1',
sources = [
'http://webkitgtk.org/releases/%{name}-%{version}.tar.xz'
],
configure_flags = [
'--disable-video',
'--disable-xpath',
'--disable-xslt',
'--disable-wml',
'--disable-ruby',
'--disable-geolocation',
]
)

if Package.profile.name == 'darwin':
self.configure_flags.extend ([
'--with-target=quartz',
'--with-gtk=2.0',
'--disable-gtk-doc'
])

self.sources.extend ([
# disable xrender when building with quartz, see
# https://trac.macports.org/attachment/ticket/34086/xrender-check.patch
'https://trac.macports.org/raw-attachment/ticket/34086/xrender-check.patch'
])

def prep (self):
Package.prep (self)
if Package.profile.name == 'darwin':
for p in range (1, len (self.sources)):
self.sh ('patch -p0 < "%{sources[' + str (p) + ']}"')

WebkitPackage()

0 comments on commit cccbd29

Please sign in to comment.