diff --git a/network/misc/webkit2gtk/actions.py b/network/misc/webkit2gtk/actions.py new file mode 100644 index 0000000000..a499dc50cc --- /dev/null +++ b/network/misc/webkit2gtk/actions.py @@ -0,0 +1,47 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import get +from pisi.actionsapi import cmaketools +from pisi.actionsapi import pisitools +from pisi.actionsapi import shelltools + +paths = ["JavaScriptCore", "WebCore", "WebKit", "WebKit2"] +docs = ["AUTHORS", "COPYING.LIB", "THANKS", \ + "LICENSE-LGPL-2", "LICENSE-LGPL-2.1", "LICENSE"] + +def setup(): + #shelltools.system("rm -r Source/ThirdParty/gtest/") + cmaketools.configure("-DPORT=GTK \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DLIB_INSTALL_DIR=/usr/lib \ + -DLIBEXEC_INSTALL_DIR=/usr/lib/webkit2gtk-4.0 \ + -DENABLE_CREDENTIAL_STORAGE=ON \ + -DENABLE_GEOLOCATION=ON \ + -DENABLE_VIDEO=ON \ + -DENABLE_WEB_AUDIO=ON \ + -DENABLE_WEBGL=ON \ + -DUSE_LIBHYPHEN=OFF \ + -DUSE_WOFF2=OFF \ + -DJPEG_INCLUDE_DIR=/usr/include/openjpeg-2.3 \ + -DSHOULD_INSTALL_JS_SHELL=ON \ + -DENABLE_MINIBROWSER=ON") + +def build(): + cmaketools.make() + +def install(): + cmaketools.rawInstall("DESTDIR=%s" % get.installDIR()) + + pisitools.dodoc("NEWS") + shelltools.cd("Source") + for path in paths: + for doc in docs: + if shelltools.isFile("%s/%s" % (path, doc)): + pisitools.insinto("%s/%s/%s" % (get.docDIR(), get.srcNAME(), path), + "%s/%s" % (path, doc)) diff --git a/network/misc/webkit2gtk/files/install-minibrowser.patch b/network/misc/webkit2gtk/files/install-minibrowser.patch new file mode 100644 index 0000000000..1ac5e72b0c --- /dev/null +++ b/network/misc/webkit2gtk/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/webkit2gtk/pspec.xml b/network/misc/webkit2gtk/pspec.xml new file mode 100644 index 0000000000..37d1dddbed --- /dev/null +++ b/network/misc/webkit2gtk/pspec.xml @@ -0,0 +1,141 @@ + + + + + webkit2gtk + http://webkitgtk.org + + Alihan Öztürk + admins@pisilinux.org + + LGPLv2 + LGPLv2.1 + BSD + 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.26.3.tar.xz + + cmake + which + gperf + gtk-doc + bubblewrap + ruby-devel + mesa-devel + gtk3-devel + gtk2-devel + webp-devel + cairo-devel + icu4c-devel + libXt-devel + sqlite-devel + libsoup-devel + wayland-devel + libxslt-devel + geoclue-devel + libgudev-devel + harfbuzz-devel + enchant2-devel + xdg-dbus-proxy + libtasn1-devel + libglvnd-devel + libnotify-devel + openjpeg2-devel + libsecret-devel + libgcrypt-devel + libseccomp-devel + icon-theme-hicolor + libjpeg-turbo-devel + gst-plugins-bad-devel + gst-plugins-base-devel + gobject-introspection-devel + + + + + + + + webkit2gtk + + atk + zlib + gtk3 + mesa + webp + cairo + icu4c + libXt + glib2 + pango + libX11 + libgcc + libpng + libxml2 + sqlite + enchant + geoclue + libsoup + libxslt + enchant2 + libtasn1 + harfbuzz + freetype + libglvnd + libsecret + openjpeg2 + libnotify + libgcrypt + gstreamer + gst-libav + fontconfig + gdk-pixbuf + libXdamage + libXrender + libseccomp + libXcomposite + libjpeg-turbo + gst-plugins-bad + gst-plugins-base + gst-plugins-good + gobject-introspection + + + /usr/lib + /usr/share + /usr/share/doc + + + + + webkit2gtk-devel + library + data:doc + Development files for GTK+ port of WebKit + + gtk3-devel + glib2-devel + libsoup-devel + webkit2gtk + + + /usr/bin + /usr/include + /usr/lib/pkgconfig + /usr/share/doc/webkit-gtk/Web* + /usr/share/doc/webkit2gtk/html + /usr/share/doc/webkit-gtk/JavaScriptCore + + + + + + 2020-01-30 + 2.26.3 + First release + Mustafa Cinasal + muscnsl@gmail.com + + + \ No newline at end of file