1 # Maintainer: C Anthony Risinger
2 pkgname=libpythonwebkit-python2
5 pkgdesc="WebKit with Python DOM bindings"
6 url=http://www.gnu.org/software/pythonwebkit/
9 depends=('python2' 'libxt' 'libxslt' 'sqlite3' 'icu>=4.4' 'gstreamer0.10-base' 'enchant' 'libsoup' 'gtk2')
10 makedepends=('git' 'gperf' 'gtk-doc' 'python2-ply')
11 provides=('libwebkit')
12 conflicts=('libwebkit')
17 _gitroot='git://git.sv.gnu.org/pythonwebkit.git'
18 _gitname='python_codegen'
22 local g=${startdir}/${pkgname}.git w=${srcdir}
23 if ! [ -d "${g}" ]; then
24 git --git-dir=${g} --work-tree=${w} init
27 msg2 "Syncing with ${_gitroot}..."
28 git --git-dir=${g} --work-tree=${w} fetch -fu ${_gitroot} +${_gitname}:${_gitname}
29 msg2 "Initializing src tree..."
30 git --git-dir=${g} --work-tree=${w} read-tree --reset -u ${_gitspec:-${_gitname}}
32 # it tries to rm -rf /autom4te.cache... no thats not a
33 # typo, the prefix var doesn't exist ($top_srcdir) [BUG]
34 sed -i -e 's,top_srcdir,srcdir,g' autogen.sh
36 # fix the python bindings hack so it uses python2...
37 # need to find a better solution
38 sed -i -e 's,python-config,python2-config,g' WebCore/bindings/python/GNUmakefile.am
40 export PYTHON=/usr/bin/python2
41 [ -d build ] && rm -rf build
45 msg2 "Building branch: origin/${_gitname}..."
46 sed -e '/#/d' <<CONFIG | xargs ../autogen.sh
49 --enable-option-checking=yes
50 # warn unrecognized --enable/--with options
51 --enable-silent-rules=no
52 # less verbose build output [undo: 'make V=1']
53 --enable-dependency-tracking=yes
54 # do not reject slow dependency extractors
55 --enable-largefile=yes
56 # omit support for large files
58 #[=PKGS] build static libraries [default=no]
60 #[=PKGS] build shared libraries [default=yes]
61 --enable-fast-install=yes
62 #[=PKGS] optimize for fast installation [default=yes]
63 --enable-libtool-lock=yes
64 # use locking for parallel builds
65 --enable-schemas-compile=yes
66 # enable regeneration of gschemas.compiled on install
68 # enable debugging [default=no]
69 --enable-optimizations=yes
70 # enable optimize builds (GCC only) [default=yes]
71 --enable-3D-transforms=no
72 # enable support for 3D transforms [default=no]
73 --enable-channel-messaging=yes
74 # enable HTML5 channel messaging support [default=yes]
75 --enable-javascript-debugger=yes
76 # enable JavaScript debugger/profiler support [default=yes]
77 --enable-offline-web-applications=yes
78 # enable HTML5 offline web applications support [default=yes]
79 --enable-dom-storage=yes
80 # enable HTML5 client-side session and persistent storage support [default=yes]
82 # enable the indexed database API [default=no]
83 --enable-input-speech=no
84 # enable the speech input API [default=no]
86 # enable HTML5 client-side database storage support [default=yes]
87 --enable-eventsource=yes
88 # enable HTML5 server-sent events support [default=yes]
89 --enable-icon-database=yes
90 # enable icon database [default=yes]
91 --enable-image-resizer=no
92 # enable image resizer [default=no]
94 # enable HTML5 datalist support [default=yes]
96 # enable HTML5 ruby support [default=yes]
98 # enable HTML5 sandboxed iframe support [default=yes]
100 # enable HTML5 video support [default=yes]
102 # enable support for XHTML-MP [default=no]
104 # enable support for XPath [default=yes]
106 # enable support for XSLT [default=yes]
107 --enable-geolocation=no
108 # enable support for geolocation [default=no]
110 # enable support for MathML [default=no]
112 # enable support for SVG [default=yes]
114 # enable support for WML [default=no]
115 --enable-shared-workers=yes
116 # enable support for SharedWorkers [default=yes]
118 # enable support for Web Workers [default=yes]
119 --enable-directory-upload=no
120 # enable support for directory upload [default=no]
121 --enable-file-system=no
122 # enable support for HTML5 FileSystem API [default=no]
123 --enable-svg-animation=yes
124 # enable support for SVG animation (experimental) [default=yes]
126 # enable support for filters (experimental) [default=yes]
127 --enable-svg-fonts=yes
128 # enable support for SVG fonts (experimental) [default=yes]
129 --enable-svg-foreign-object=yes
130 # enable support for SVG foreign objects (experimental) [default=yes]
131 --enable-svg-as-image=yes
132 # enable SVG as Image support (experimental) [default=yes]
134 # enable SVG use element support (experimental) [default=yes]
135 --enable-web-sockets=yes
136 # enable support for Web Sockets [default=yes]
137 --enable-web-timing=no
138 # enable support for Web Timing [default=no]
140 # enable support for Blob [default=no]
141 --enable-fast-mobile-scrolling=no
142 # enable support for Fast Mobile Scrolling [default=no]
144 # enable code coverage support [default=no]
145 --enable-fast-malloc=yes
146 # enable optimized memory allocator default=yes, default=no for debug builds
148 # enable JIT compilation [default=yes]
149 --enable-opcode-stats=no
150 # enable Opcode statistics [default=no]
151 --enable-introspection=yes
152 # enable GObject introspection [default=no]
154 # use gtk-doc to build documentation [default=no]
155 --enable-gtk-doc-html=no
156 # build documentation in html format [default=yes]
157 --enable-gtk-doc-pdf=no
158 # build documentation in pdf format [default=no]
160 # try to use only PIC/non-PIC objects [default=use both]
162 # assume the C compiler uses GNU ld [default=no]
164 #[=DIR] Search for dependent libraries within DIR, or the compilers sysroot if not specified
166 #=[2.0/3.0] the GTK+ version to use [default=2.0]
168 #=[x11/win32/quartz/directfb] Select webkit target [default=x11]
170 # Use Hildon UI extensions [default=no]
171 --with-unicode-backend=icu
172 #=[icu/glib] Select Unicode backend. WARNING: glib-based slow/incomplete [default=icu]
173 --with-font-backend=freetype
174 #=[freetype/pango] Select font backend [default=freetype]
176 #[=PATH] path to installed docs
185 install -Dm644 WebKit/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
188 make DESTDIR="${pkgdir}" install