webkitgtk2,3-webkit2gtk3.paketlendi

This commit is contained in:
giresun28 2016-07-23 13:50:40 +00:00
parent b43b93ad31
commit 0d9ad3f75e
4 changed files with 60 additions and 25 deletions

View File

@ -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
}

View File

@ -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
release=1
# 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
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
}

View File

@ -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
--libexecdir=/usr/lib/webkitgtk3 \
--enable-introspection
make
make DESTDIR=$PKG install
make || make -j1
make DESTDIR=$PKG install || make -j1 DESTDIR=$PKG install
}

View File

@ -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<guint>(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<int>(abs(time));
+ int seconds = static_cast<int>(fabs(time));
int days = seconds / (60 * 60 * 24);
int hours = seconds / (60 * 60);
int minutes = (seconds / 60) % 60;