From 0d9ad3f75e4c7eb4420b24117d907cb1efd230d4 Mon Sep 17 00:00:00 2001 From: giresun28 Date: Sat, 23 Jul 2016 13:50:40 +0000 Subject: [PATCH] webkitgtk2,3-webkit2gtk3.paketlendi --- talimatname/genel/webkit2gtk3/talimat | 12 +++---- talimatname/genel/webkitgtk2/talimat | 32 ++++++++++++------- talimatname/genel/webkitgtk3/talimat | 15 +++++---- .../webkitgtk3/webkitgtk-2.4.9-abs.patch | 26 +++++++++++++++ 4 files changed, 60 insertions(+), 25 deletions(-) create mode 100644 talimatname/genel/webkitgtk3/webkitgtk-2.4.9-abs.patch diff --git a/talimatname/genel/webkit2gtk3/talimat b/talimatname/genel/webkit2gtk3/talimat index f88ce1c20..5c63abdcc 100644 --- a/talimatname/genel/webkit2gtk3/talimat +++ b/talimatname/genel/webkit2gtk3/talimat @@ -1,10 +1,10 @@ # Description: Port of the portable web rendering engine WebKit to the GTK+ 2 and 3 platforms. # URL: http://webkitgtk.org/ -# Packager: pierre at nutyx dot org -# Depends on: enchant cmake gstreamer1-plugins-base xorg-libxt gtk2 gtk3 hunspell hyphen icu libgudev libsecret libsoup libwebp xorg-mesa ruby sqlite enchant geoclue gobject-introspection hicolor-icon-theme llvm harfbuzz gtk-doc libnotify +# Packager: alihan-ozturk28@hotmail.com +# Depends on: enchant cmake gstreamer1-plugins-base xorg-libxt gtk2 gtk3 hunspell icu libgudev libsecret libsoup libwebp xorg-mesa ruby sqlite geoclue gobject-introspection hicolor-icon-theme llvm harfbuzz libnotify name=webkit2gtk3 -version=2.10.7 +version=2.12.3 release=1 source=(http://webkitgtk.org/releases/webkitgtk-$version.tar.xz) @@ -20,6 +20,7 @@ cmake -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_SKIP_RPATH=ON \ -DPORT=GTK \ + -DUSE_LIBHYPHEN=OFF \ -DLIB_INSTALL_DIR=/usr/lib \ -DENABLE_MINIBROWSER=ON \ -Wno-dev .. @@ -27,9 +28,4 @@ cmake -DCMAKE_BUILD_TYPE=Release \ make || make -j1 make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install -install -vdm755 $PKG/usr/share/gtk-doc/html/webkit{2,dom}gtk-4.0 -install -vm644 ../Documentation/webkit2gtk-4.0/html/* \ -$PKG/usr/share/gtk-doc/html/webkit2gtk-4.0 -install -vm644 ../Documentation/webkitdomgtk-4.0/html/* \ -$PKG/usr/share/gtk-doc/html/webkit2gtk-4.0 } diff --git a/talimatname/genel/webkitgtk2/talimat b/talimatname/genel/webkitgtk2/talimat index 637776f13..33b28726b 100644 --- a/talimatname/genel/webkitgtk2/talimat +++ b/talimatname/genel/webkitgtk2/talimat @@ -1,22 +1,32 @@ # Description: engine of made Web free for the browsers web version 1 # URL: http://webkitgtk.org/ -# Packager: pierre at nutyx dot org -# Depends on: libwebp libsecret geoclue gperf gtk2 curl dbus gstreamer1-plugins-base icu enchant libsoup libxslt xorg-libxt ruby gtk-doc -name=webkitgtk2 -version=2.4.9 +# Packager: alihan-ozturk28@hotmail.com +# Depends on: libwebp libsecret geoclue gperf gtk2 curl dbus gstreamer1-plugins-base icu enchant libsoup libxslt xorg-libxt ruby + +name=webkit-gtk2 +version=2.4.11 release=1 - source=(http://webkitgtk.org/releases/webkitgtk-$version.tar.xz) + build() { -cd webkitgtk-$version -sed -i '/generate-gtkdoc --rebase/s:^:# :' GNUmakefile.in + cd webkitgtk-$version -mkdir -vp build-1 + install -d build + cd build + + CXX="g++ -std=c++98" + ../configure \ + --prefix=/usr \ + --disable-geolocation \ + --disable-gtk-doc-html \ + --disable-silent-rules \ + --enable-video \ + --enable-jit \ + --libexecdir=/usr/lib/webkitgtk2 \ + --with-gtk=2.0 \ + --disable-webkit2 -cp -a Documentation build-1 -cd build-1 -../configure --prefix=/usr --with-gtk=2.0 --disable-webkit2 make || make -j1 make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install } diff --git a/talimatname/genel/webkitgtk3/talimat b/talimatname/genel/webkitgtk3/talimat index e5aa6596c..9354cbb5e 100644 --- a/talimatname/genel/webkitgtk3/talimat +++ b/talimatname/genel/webkitgtk3/talimat @@ -1,15 +1,17 @@ # Description: Small, efficient and fast rendering engine for Web Browsers. # URL: http://www.webkitgtk.org/ # Packager: milisarge -# Depends on: enchant xorg-glu gperf gstreamer-plugins-base gtk2 gtk3 harfbuzz icu libsecret libsoup libwebp ruby shared-mime-info xorg-libxt +# Depends on: libwebp libsecret geoclue gperf gtk2 gtk3 curl dbus gstreamer1-plugins-base icu enchant libsoup libxslt xorg-libxt ruby name=webkitgtk3 version=2.4.11 release=1 -source=(http://webkitgtk.org/releases/webkitgtk-$version.tar.xz) +source=(http://webkitgtk.org/releases/webkitgtk-$version.tar.xz + webkitgtk-2.4.9-abs.patch) build() { cd webkitgtk-$version + patch -Np1 -i ../webkitgtk-2.4.9-abs.patch install -d build cd build @@ -21,8 +23,9 @@ build() { --disable-silent-rules \ --enable-video \ --enable-jit \ - --libexecdir=/usr/lib/webkitgtk3 - - make - make DESTDIR=$PKG install + --libexecdir=/usr/lib/webkitgtk3 \ + --enable-introspection + + make || make -j1 + make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install } diff --git a/talimatname/genel/webkitgtk3/webkitgtk-2.4.9-abs.patch b/talimatname/genel/webkitgtk3/webkitgtk-2.4.9-abs.patch new file mode 100644 index 000000000..9a1c5f990 --- /dev/null +++ b/talimatname/genel/webkitgtk3/webkitgtk-2.4.9-abs.patch @@ -0,0 +1,26 @@ +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/GtkClickCounter.cpp 2016-02-07 11:30:42.392686308 -0700 +@@ -85,8 +85,8 @@ + guint32 eventTime = getEventTime(event); + + if ((event->type == GDK_2BUTTON_PRESS || event->type == GDK_3BUTTON_PRESS) +- || ((abs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) +- && (abs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) ++ || ((fabs(buttonEvent->x - m_previousClickPoint.x()) < doubleClickDistance) ++ && (fabs(buttonEvent->y - m_previousClickPoint.y()) < doubleClickDistance) + && (eventTime - m_previousClickTime < static_cast(doubleClickTime)) + && (buttonEvent->button == m_previousClickButton))) + m_currentClickCount++; +diff -Nur webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp +--- webkitgtk-2.4.9.orig/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2015-05-20 03:03:24.000000000 -0600 ++++ webkitgtk-2.4.9/Source/WebCore/platform/gtk/LocalizedStringsGtk.cpp 2016-02-07 11:49:36.384691005 -0700 +@@ -659,7 +659,7 @@ + if (!std::isfinite(time)) + return String::fromUTF8(_("indefinite time")); + +- int seconds = static_cast(abs(time)); ++ int seconds = static_cast(fabs(time)); + int days = seconds / (60 * 60 * 24); + int hours = seconds / (60 * 60); + int minutes = (seconds / 60) % 60;