From c6d75dec508b0c1e22d200759c8b583e2f3b2fd8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 12 Sep 2018 17:28:29 +0000 Subject: experimental/qt5-qtwebkit: Closer to working --- experimental/qt5-qtwebkit/APKBUILD | 42 +++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 10 deletions(-) (limited to 'experimental/qt5-qtwebkit/APKBUILD') diff --git a/experimental/qt5-qtwebkit/APKBUILD b/experimental/qt5-qtwebkit/APKBUILD index c6e8103ba..440956b14 100644 --- a/experimental/qt5-qtwebkit/APKBUILD +++ b/experimental/qt5-qtwebkit/APKBUILD @@ -15,18 +15,41 @@ makedepends="$depends_dev ninja sqlite-dev icu-dev ruby perl bison flex gperf libxml2-dev libxslt-dev libjpeg-turbo-dev libpng-dev zlib-dev glib-dev gstreamer-dev fontconfig-dev qt5-qtsensors-dev qt5-qtpositioning-dev qt5-qtdeclarative-dev qt5-qtwebchannel-dev libxcomposite-dev - libxrender-dev gst-plugins-base-dev" + libxrender-dev gst-plugins-base-dev hyphen-dev libexecinfo-dev" subpackages="$pkgname-dev $pkgname-doc" source="https://github.com/annulen/webkit/releases/download/$_realname-$_realver/$_realname-$_realver.tar.xz - js-py3.patch + musl-thread-stacksize.patch " builddir="$srcdir"/$_realname-$_realver +unpack() { + default_unpack + # just ripped from Firefox's APKBUILD... + [ -z $SKIP_PYTHON ] || return 0 + msg "Killing all remaining hope for humanity and building Python 2..." + cd "$srcdir" + [ -d python ] && rm -r python + mkdir python + cd python + # 19:39 <+solar> just make the firefox build process build its own py2 copy + curl -O https://www.python.org/ftp/python/2.7.15/Python-2.7.15.tar.xz + tar xJf Python-2.7.15.tar.xz + cd Python-2.7.15 + # 20:03 TheWilfox: there's always violence + ./configure --prefix="$srcdir/python" + make -j $JOBS + # 6 tests failed: + # test__locale test_os test_posix test_re test_strptime test_time + # make test + make -j $JOBS install +} + build() { cd "$builddir" if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi + export PATH="$srcdir/python/bin:$PATH" # We can enable the JIT when it is stable on all Tier 1 platforms: # pmmx (ensure no SSE) # ppc @@ -45,10 +68,14 @@ build() { -DCMAKE_C_FLAGS="$CFLAGS" \ -DENABLE_JIT=OFF \ -DPORT=Qt \ - -DUSE_LIBHYPHEN=OFF \ -DUSE_SYSTEM_MALLOC=ON \ ${CMAKE_CROSSOPTS} - make + # too memory hungry + if [ -z "$JOBS" -o $JOBS -gt 32 ]; then + make -j32 + else + make + fi } check() { @@ -56,15 +83,10 @@ check() { CTEST_OUTPUT_ON_FAILURE=TRUE ctest } -check() { - cd "$builddir" - make check -} - package() { cd "$builddir" make DESTDIR="$pkgdir" install } sha512sums="b15985aab20c5618dc1f71a0d91f02dbed993516272090a4a12990714bf4c9554ccbdcf9d6a143bf46fcc2c170f691e571114d61686fe49791f8d5c540785758 qtwebkit-5.212.0-alpha2.tar.xz -cee23bc493e2b207119a8ae26691d9d75f91535a39780b9438539c8f3789d9b28377b135b64738a34cf10ebbb30e3bc29eb2f56988a7a0d0cf8ddc9bbca7c8ca js-py3.patch" +2b778d55a00107f226231d00f13efb3064f539e2b9b690e3c542ee8b6be975b06b673efa27ececf09e0707c8319cb00f72177d9487ca1c36be5a98ab9eb33124 musl-thread-stacksize.patch" -- cgit v1.2.3-70-g09d2