Skip to content
Snippets Groups Projects
Commit 42232b71 authored by Bartłomiej Piotrowski's avatar Bartłomiej Piotrowski
Browse files

testing/webkitgtk2: remove in favor of community/webkitgtk

parent cd9d330e
No related merge requests found
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=webkitgtk2
_realpkgname=webkitgtk
pkgver=2.4.5
pkgrel=1
pkgdesc="GTK+ Web content engine library for GTK2"
url="http://webkitgtk.org/"
arch="all"
license="LGPL2+ BSD"
depends=""
depends_dev="libsoup-dev gstreamer1-dev gst-plugins-base1-dev"
makedepends="$depends_dev
autoconf automake libtool
bison
enchant-dev
expat-dev
flex
gnutls-dev
gobject-introspection-dev
gperf
gtk+2.0-dev
gtk-doc
icu-dev
libgcrypt-dev
libgpg-error-dev
libjpeg-turbo-dev
libpng-dev
libsecret-dev
libsoup-dev
libwebp-dev
libxcomposite-dev
libxcursor-dev
libxdamage-dev
libxi-dev
libxml2-dev
libxrandr-dev
libxslt-dev
libxt-dev
mesa-dev
pango-dev
perl-switch
ruby
sqlite-dev
zlib-dev
"
install=
replaces="webkit"
subpackages="$pkgname-dev $pkgname-lang"
source="http://webkitgtk.org/releases/webkitgtk-$pkgver.tar.xz
webkit-gtk-1.7.90-parallel-make-hack.patch
webkitgtk-1.10-textrels.patch
harfbuzz.patch
fix-execinfo.patch
disallow-ctype.patch
"
_builddir="$srcdir"/$_realpkgname-$pkgver
prepare() {
cd "$_builddir"
update_config_sub || return 1
for i in $source; do
case "$i" in
*.patch)
msg "Applying $i"
patch -p1 -i "$srcdir"/$i || return 1
;;
esac
done
libtoolize --force && aclocal -I Source/autotools && autoconf && automake --force || return 1
}
build() {
cd "$_builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--disable-geolocation \
--disable-webkit2 \
--with-gtk=2.0 \
--enable-introspection \
|| return 1
# fight overlinking
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool || return 1
# hack to work around parallel make problems,
# see https://bugs.webkit.org/show_bug.cgi?id=79498
make -j1 all-built-sources-local \
&& make all-ltlibraries-local \
&& make all-programs-local \
&& make || return 1
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
# verify so we don't have textrels
if scanelf -qRt "$pkgdir" | grep TEXTREL; then
error "found textrels"
return 1
fi
}
md5sums="c2e1687bb0314a0948fbf78e2d1e931f webkitgtk-2.4.5.tar.xz
de77a3e7e61753e7f1cce3f4bd00a3f6 webkit-gtk-1.7.90-parallel-make-hack.patch
9ace721086b25f0f32d7f76b29789f67 webkitgtk-1.10-textrels.patch
b1f455b3ea4db1598b60f5aa59f27fd5 harfbuzz.patch
c114751c30cdcaede5a7ed5568b2b0d4 fix-execinfo.patch
f5b41e756d2dfdc2bbee034d4f2d2e66 disallow-ctype.patch"
sha256sums="88d06277aae179c205b548e1851a5e5663ca6f59f5aa8e81af9b87732d6b8a13 webkitgtk-2.4.5.tar.xz
e20d7d45e6230308f7d4a7aac1095cb1fe8d9c7eb0f3e65b061acf8bc4bbaf73 webkit-gtk-1.7.90-parallel-make-hack.patch
754bbf13c7a6c9bd745f642367ff884156020dd2ea7611c3d20a509c6685c836 webkitgtk-1.10-textrels.patch
0b7c1ce7e0e8548507eed8911c73d4a06434e5ca3b84275e785013f8b04433a2 harfbuzz.patch
b2bc9e03fd5d968d6df4531a7d102496139120e666e6fed397a19ae4026751c6 fix-execinfo.patch
6e972b5cb3f1101be646d1a018ff61c0e6614310a971eb392c4fd0fee5623455 disallow-ctype.patch"
sha512sums="8dea7d34874d9ba37ad7e5ae7209cdacfe9f7d621bdb6e39492c0709990746cc869c350d77ed805095c86478c8a5d3381b9adc3316fdf72239b0b2ea6399783a webkitgtk-2.4.5.tar.xz
907356faab08ebf65da8760ad11ee8ecd4e97274b1c00c1e207fd52e479d64a0545ba66859b1a79bd150a95da4a9e8724b3c461a24f803fb341b8242566b5cc0 webkit-gtk-1.7.90-parallel-make-hack.patch
c3502a11ce4777abc164209c0087ec7cb6c28b376056bee52651b4e4bd2d49f2d6e4a74422f21d9bce848479a4a1b02052935b3c9397f1d43a59b3de22ef2758 webkitgtk-1.10-textrels.patch
8eb77ed1a1c60aac44fb00cfa6ddd46a23c4701fd6a24eac901d07eb49e0191080f7410fa3801115da5448b514e5d2095a4c4072a8c1e9f8c668eebb78afe6a1 harfbuzz.patch
602630468ee80b9f9bb53ee7808f4b2f2c86d1d4db14ac9c244b3e2e79a245510a289eb321cb7dbefd3b7a2dde13cf444b8ecf7cd46f23eaa5c0f04670914e42 fix-execinfo.patch
40a213548d4f76152d2cae57c15c6fb079b64a681a2b033b0c8265c5dbe2653818c898d1ac76ae59298cbf568dc4b811f86c3913e9d2c3d3f33e5cb8c1bd217e disallow-ctype.patch"
--- ./Source/WTF/wtf/DisallowCType.h.orig 2014-04-07 06:37:46.851957952 +0000
+++ ./Source/WTF/wtf/DisallowCType.h 2014-04-07 06:39:30.653205023 +0000
@@ -41,7 +41,7 @@
// or <glib/gi18n-lib.h>, which in turn include <xlocale/_ctype.h> which uses
// isacii().
#include <wtf/Platform.h>
-#if !(OS(DARWIN) && PLATFORM(GTK)) && !PLATFORM(EFL) && !defined(_LIBCPP_VERSION)
+#if !(OS(DARWIN) && PLATFORM(GTK)) && !PLATFORM(EFL) && !defined(_LIBCPP_VERSION) && defined(__GLIBC__)
#include <ctype.h>
--- webkitgtk-2.2.0.orig/Source/WTF/wtf/Assertions.cpp
+++ webkitgtk-2.2.0/Source/WTF/wtf/Assertions.cpp
@@ -64,7 +64,7 @@
#include <windows.h>
#endif
-#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))
+#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__))
#include <cxxabi.h>
#include <dlfcn.h>
#include <execinfo.h>
@@ -242,7 +242,7 @@
void WTFGetBacktrace(void** stack, int* size)
{
-#if OS(DARWIN) || (OS(LINUX) && !defined(__UCLIBC__))
+#if OS(DARWIN) || (OS(LINUX) && defined(__GLIBC__) && !defined(__UCLIBC__))
*size = backtrace(stack, *size);
#elif OS(WINDOWS) && !OS(WINCE)
// The CaptureStackBackTrace function is available in XP, but it is not defined
--- ./Source/autotools/FindDependencies.m4.orig 2013-06-10 12:31:46.700819390 +0000
+++ ./Source/autotools/FindDependencies.m4 2013-06-10 12:32:15.101112741 +0000
@@ -373,6 +373,13 @@
PKG_CHECK_MODULES([FREETYPE],
[cairo-ft fontconfig >= fontconfig_required_version freetype2 >= freetype2_required_version harfbuzz >= harfbuzz_required_version])
fi
+# HarfBuzz 0.9.18 splits harbuzz-icu into a separate library.
+# Since we support earlier HarfBuzz versions we keep this conditional by now.
+if $PKG_CONFIG --atleast-version 0.9.18 harfbuzz ; then
+ PKG_CHECK_MODULES(HARFBUZZ_ICU, harfbuzz-icu >= $harfbuzz_required_version)
+ FREETYPE_CFLAGS+=" $HARFBUZZ_ICU_CFLAGS"
+ FREETYPE_LIBS+=" $HARFBUZZ_ICU_LIBS"
+fi
AC_SUBST([FREETYPE_CFLAGS])
AC_SUBST([FREETYPE_LIBS])
Horrible failure of a hack to enable workaround for
https://bugs.webkit.org/show_bug.cgi?id=79498
--- a/GNUmakefile.am
+++ b/GNUmakefile.am
@@ -285,6 +285,15 @@
all-local: stamp-po
$(mkdir_p) $(top_builddir)/$(DEPDIR)/DerivedSources
+# Horrible hack to enable workaround for parallel make failure
+all-built-sources-local: $(BUILT_SOURCES) autotoolsconfig.h
+
+all-ltlibraries-local: GNUmakefile $(LTLIBRARIES)
+
+all-programs-local: GNUmakefile $(PROGRAMS)
+
+all-data-local: GNUmakefile $(DATA)
+
# remove built sources and program directories
clean-local:
-rm -rf $(GENPROGRAMS)
--- ./Source/WTF/wtf/InlineASM.h.orig
+++ ./Source/WTF/wtf/InlineASM.h
@@ -42,7 +42,7 @@
#define THUMB_FUNC_PARAM(name)
#endif
-#if (OS(LINUX) || OS(FREEBSD)) && CPU(X86_64)
+#if (OS(LINUX) || OS(FREEBSD)) && (CPU(X86_64) || CPU(X86))
#define GLOBAL_REFERENCE(name) #name "@plt"
#elif CPU(X86) && COMPILER(MINGW)
#define GLOBAL_REFERENCE(name) "@" #name "@4"
Source diff could not be displayed: it is too large. Options to address this: view the blob.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment