From 7e8db680a056c73b11e9d39640a3f876707449f0 Mon Sep 17 00:00:00 2001 From: alihanozturk Date: Sat, 18 Jun 2016 20:13:54 +0300 Subject: [PATCH] webkit-gtk2:fix --- network/misc/webkit-gtk2/actions.py | 38 +++++++---- .../files/install-minibrowser.patch | 37 +++++++++++ network/misc/webkit-gtk2/pspec.xml | 64 +++++++++++-------- 3 files changed, 100 insertions(+), 39 deletions(-) create mode 100644 network/misc/webkit-gtk2/files/install-minibrowser.patch diff --git a/network/misc/webkit-gtk2/actions.py b/network/misc/webkit-gtk2/actions.py index e3b91e89e1..3a2dc24db1 100644 --- a/network/misc/webkit-gtk2/actions.py +++ b/network/misc/webkit-gtk2/actions.py @@ -10,31 +10,47 @@ from pisi.actionsapi import pisitools from pisi.actionsapi import shelltools shelltools.export("XDG_DATA_HOME", get.workDIR()) -pisitools.flags.replace("-ggdb3", "-g") +#pisitools.flags.replace("-ggdb3", "-g") + +cflags = get.CFLAGS().replace("-ggdb3","") +cxxflags = get.CXXFLAGS().replace("-gddb3", "") paths = ["JavaScriptCore", "WebCore", "WebKit"] docs = ["AUTHORS", "ChangeLog", "COPYING.LIB", "THANKS", \ "LICENSE-LGPL-2", "LICENSE-LGPL-2.1", "LICENSE"] def setup(): + shelltools.export("CFLAGS", cflags) + shelltools.export("CXXFLAGS", cxxflags) autotools.configure("\ - --disable-webkit2 \ - --libexecdir=/usr/lib \ - --with-gtk=2.0 \ - --with-gnu-ld \ - --disable-silent-rules \ + --libexecdir=/usr/lib/WebKitGTK \ + --disable-static \ + --disable-webkit2 \ + --disable-gtk-doc \ + --disable-silent-rules \ + --disable-wayland-target \ + --enable-geolocation \ + --enable-glx \ + --enable-webgl \ + --with-gnu-ld \ + --with-gstreamer=1.0 \ + --with-gtk=2.0 \ + --enable-x11-target \ + --enable-video \ + --enable-web-audio \ + --enable-introspection \ ") -#--enable-dependency-tracking \ -#--disable-gtk-doc \ -#--enable-video \ -#--enable-introspection \ pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") def build(): - autotools.make() + shelltools.export("CFLAGS", cflags) + shelltools.export("CXXFLAGS", cxxflags) + autotools.make("-j1 all stamp-po") def install(): + shelltools.export("CFLAGS", cflags) + shelltools.export("CXXFLAGS", cxxflags) autotools.rawInstall("-j1 DESTDIR=%s" % get.installDIR()) pisitools.domove("/usr/share/gtk-doc/html", "/usr/share/doc/webkit-gtk2") diff --git a/network/misc/webkit-gtk2/files/install-minibrowser.patch b/network/misc/webkit-gtk2/files/install-minibrowser.patch new file mode 100644 index 0000000000..1ac5e72b0c --- /dev/null +++ b/network/misc/webkit-gtk2/files/install-minibrowser.patch @@ -0,0 +1,37 @@ +From: Alberto Garcia +Subject: Install the MiniBrowser binary +Forwarded: not-needed +Index: webkitgtk/Tools/MiniBrowser/gtk/main.c +=================================================================== +--- webkitgtk.orig/Tools/MiniBrowser/gtk/main.c ++++ webkitgtk/Tools/MiniBrowser/gtk/main.c +@@ -265,8 +265,6 @@ int main(int argc, char *argv[]) + } + g_option_context_free (context); + +- g_setenv("WEBKIT_INJECTED_BUNDLE_PATH", WEBKIT_INJECTED_BUNDLE_PATH, FALSE); +- + // Enable the favicon database, by specifying the default directory. + webkit_web_context_set_favicon_database_directory(webkit_web_context_get_default(), NULL); + +Index: webkitgtk/Tools/MiniBrowser/gtk/GNUmakefile.am +=================================================================== +--- webkitgtk.orig/Tools/MiniBrowser/gtk/GNUmakefile.am ++++ webkitgtk/Tools/MiniBrowser/gtk/GNUmakefile.am +@@ -1,5 +1,5 @@ + if ENABLE_WEBKIT2 +-noinst_PROGRAMS += \ ++libexec_PROGRAMS += \ + Programs/MiniBrowser + endif + +@@ -44,9 +44,6 @@ Programs_MiniBrowser_LDADD = \ + $(GTK_LIBS) \ + $(LIBSOUP_LIBS) + +-Programs_MiniBrowser_LDFLAGS = \ +- -no-install +- + CLEANFILES += \ + $(top_builddir)/Programs/MiniBrowser \ + $(minibrowser_built_sources) \ diff --git a/network/misc/webkit-gtk2/pspec.xml b/network/misc/webkit-gtk2/pspec.xml index 22f6bbe059..0a0ad016bb 100644 --- a/network/misc/webkit-gtk2/pspec.xml +++ b/network/misc/webkit-gtk2/pspec.xml @@ -14,38 +14,42 @@ library An opensource web browser engine for GTK+ applications The GTK+ port of WebKit is intended to provide a browser component primarily for users of the portable GTK+ UI toolkit on platforms like Linux. - http://www.webkitgtk.org/releases/webkitgtk-2.4.9.tar.xz + http://www.webkitgtk.org/releases/webkitgtk-2.4.11.tar.xz - mesa-devel - gtk-doc - glib2-devel - gtk2-devel - ruby-devel - webp-devel + mesa-devel + gtk-doc + glib2-devel + gtk2-devel + ruby-devel + webp-devel cairo-devel - icu4c-devel - libXt-devel - enchant-devel - sqlite-devel - geoclue-devel - libsoup-devel - fontconfig-devel - libxslt-devel - harfbuzz-devel - libsecret-devel - libXcomposite-devel - libjpeg-turbo-devel + icu4c-devel + libXt-devel + enchant-devel + sqlite-devel + geoclue-devel + libsoup-devel + fontconfig-devel + libxslt-devel + harfbuzz-devel + libsecret-devel + libXcomposite-devel + libjpeg-turbo-devel gstreamer-next-devel - gobject-introspection-devel + gst-libav-next + gobject-introspection-devel gst-plugins-base-next-devel - which - icon-theme-hicolor - gperf - libSM-devel + gst-plugins-bad-next-devel + gst-plugins-good-next + which + icon-theme-hicolor + gperf + libSM-devel + install-minibrowser.patch - + @@ -81,7 +85,11 @@ libXcomposite libjpeg-turbo gstreamer-next + gst-libav-next + gst-plugins-bad-next gst-plugins-base-next + gst-plugins-good-next + gobject-introspection /usr/lib @@ -114,9 +122,9 @@ - 2016-06-09 - 2.4.9 - Release Bump + 2016-06-11 + 2.4.11 + Version Bump Pisi Linux Community admin@pisilinux.org