[arch-commits] Commit in qt5-webengine/repos (3 files)

2020-07-07 Thread Evangelos Foutras via arch-commits
Date: Tuesday, July 7, 2020 @ 12:12:30
  Author: foutrelis
Revision: 390938

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 390937, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qt5-webengine-gcc10.patch
(from rev 390937, qt5-webengine/trunk/qt5-webengine-gcc10.patch)

---+
 PKGBUILD  |   73 
 qt5-webengine-gcc10.patch |   12 +++
 2 files changed, 85 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 390937, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-07-07 12:12:30 UTC (rev 390938)
@@ -0,0 +1,73 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.15.0
+pkgver=${_qtver/-/}
+pkgrel=4
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 
'krb5' 'ttf-font')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+
qt5-webengine-icu67.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=e941f2bd;
+qt5-webengine-gcc10.patch
+
dark-mode-crash.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=4e8ca195;
+
qtbug-85119.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=c91f4d20;
+
qtbug-85120.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=242802ab;
+
qtbug-85118.patch::"https://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=e42ccdad;
+
qtbug-62957.patch::"https://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=f341988f;
+
qtbug-62957-pre.patch::"https://code.qt.io/cgit/qt/qtwebengine.git/patch?id=75412200;
+)
+sha256sums=('c38e2fda7ed1b7d5a90f26abf231ec0715d78a5bc39a94673d8e39d75f04c5df'
+'22a2265c81bc73dba6843279407ccaec9f192d0987c54a0d9533be7c49b37f29'
+'8a6e0c41f708d6a8f1febb751157642ab985b58c07ada1447b73b71cd31b4d99'
+'7ea054a95045635fcee9ee50a6a28e9aedf182ca97a76cc6dd680fb1a91748e1'
+'758561a5bd52feca16751c37def8e7cd3388073bf5bd072eb0862830c174decc'
+'4bb12a72d40e69052946a6b66fff621f28e40c3d3c11ddeec155133a9204f352'
+'fc976a6a7198121a4c1b6026318098de278412d73634db31b1815a3cc7502657'
+'1a07ab59daa9552ad1a70abd03b00d40e542d9dd64fa6d7404d31c9a51e5eeba'
+'d47ec2111c9713312158f800c01ca9358400b4e11273e470d57a53c36b7565c0')
+
+prepare() {
+  mkdir -p build
+
+  cd $_pkgfqn
+  patch -d src/3rdparty -p1 -i "$srcdir"/qt5-webengine-icu67.patch # Fix build 
with ICU 67
+  patch -d src/3rdparty -p1 -i "$srcdir"/qt5-webengine-gcc10.patch
+  patch -d src/3rdparty -p1 -i "$srcdir"/dark-mode-crash.patch # Fix crash in 
qutebrowser when using dark mode
+  patch -d src/3rdparty -p1 -i "$srcdir"/qtbug-85119.patch # Extend url 
library for WebEngine custom schemes
+  patch -d src/3rdparty -p1 -i "$srcdir"/qtbug-85120.patch # Make XScrnSaver 
optional
+
+  patch -p1 -i ../qtbug-85118.patch # Fix recentlyAudible signal
+  patch -p1 -i ../qtbug-62957-pre.patch # Avoid the network context reset 
during http cache clear
+  patch -p1 -i ../qtbug-62957.patch # Return valid path in Profile::GetPath() 
for incognito profiles
+}
+
+build() {
+  cd build
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu \
+-webengine-kerberos
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qt5-webengine-gcc10.patch (from rev 
390937, qt5-webengine/trunk/qt5-webengine-gcc10.patch)
===
--- staging-x86_64/qt5-webengine-gcc10.patch(rev 0)
+++ staging-x86_64/qt5-webengine-gcc10.patch2020-07-07 12:12:30 UTC (rev 
390938)
@@ -0,0 +1,12 @@
+diff --git a/base/trace_event/trace_event_memory_overhead.h 
b/base/trace_event/trace_event_memory_overhead.h
+index 69468d4..3f5b786 100644

[arch-commits] Commit in qt5-webengine/repos (3 files)

2020-07-06 Thread Antonio Rojas via arch-commits
Date: Monday, July 6, 2020 @ 20:34:18
  Author: arojas
Revision: 390922

archrelease: copy trunk to testing-x86_64

Added:
  qt5-webengine/repos/testing-x86_64/
  qt5-webengine/repos/testing-x86_64/PKGBUILD
(from rev 390921, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/testing-x86_64/qt5-webengine-gcc10.patch
(from rev 390921, qt5-webengine/trunk/qt5-webengine-gcc10.patch)

---+
 PKGBUILD  |   73 
 qt5-webengine-gcc10.patch |   12 +++
 2 files changed, 85 insertions(+)

Copied: qt5-webengine/repos/testing-x86_64/PKGBUILD (from rev 390921, 
qt5-webengine/trunk/PKGBUILD)
===
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2020-07-06 20:34:18 UTC (rev 390922)
@@ -0,0 +1,73 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.15.0
+pkgver=${_qtver/-/}
+pkgrel=3
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 
'krb5' 'ttf-font')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+
qt5-webengine-icu67.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=e941f2bd;
+qt5-webengine-gcc10.patch
+
dark-mode-crash.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=4e8ca195;
+
qtbug-85119.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=c91f4d20;
+
qtbug-85120.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=242802ab;
+
qtbug-85118.patch::"https://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=e42ccdad;
+
qtbug-62957.patch::"https://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=f341988f;
+
qtbug-62957-pre.patch::"https://code.qt.io/cgit/qt/qtwebengine.git/patch?id=75412200;
+)
+sha256sums=('c38e2fda7ed1b7d5a90f26abf231ec0715d78a5bc39a94673d8e39d75f04c5df'
+'22a2265c81bc73dba6843279407ccaec9f192d0987c54a0d9533be7c49b37f29'
+'8a6e0c41f708d6a8f1febb751157642ab985b58c07ada1447b73b71cd31b4d99'
+'7ea054a95045635fcee9ee50a6a28e9aedf182ca97a76cc6dd680fb1a91748e1'
+'758561a5bd52feca16751c37def8e7cd3388073bf5bd072eb0862830c174decc'
+'4bb12a72d40e69052946a6b66fff621f28e40c3d3c11ddeec155133a9204f352'
+'fc976a6a7198121a4c1b6026318098de278412d73634db31b1815a3cc7502657'
+'1a07ab59daa9552ad1a70abd03b00d40e542d9dd64fa6d7404d31c9a51e5eeba'
+'d47ec2111c9713312158f800c01ca9358400b4e11273e470d57a53c36b7565c0')
+
+prepare() {
+  mkdir -p build
+
+  cd $_pkgfqn
+  patch -d src/3rdparty -p1 -i "$srcdir"/qt5-webengine-icu67.patch # Fix build 
with ICU 67
+  patch -d src/3rdparty -p1 -i "$srcdir"/qt5-webengine-gcc10.patch
+  patch -d src/3rdparty -p1 -i "$srcdir"/dark-mode-crash.patch # Fix crash in 
qutebrowser when using dark mode
+  patch -d src/3rdparty -p1 -i "$srcdir"/qtbug-85119.patch # Extend url 
library for WebEngine custom schemes
+  patch -d src/3rdparty -p1 -i "$srcdir"/qtbug-85120.patch # Make XScrnSaver 
optional
+
+  patch -p1 -i ../qtbug-85118.patch # Fix recentlyAudible signal
+  patch -p1 -i ../qtbug-62957-pre.patch # Avoid the network context reset 
during http cache clear
+  patch -p1 -i ../qtbug-62957.patch # Return valid path in Profile::GetPath() 
for incognito profiles
+}
+
+build() {
+  cd build
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu \
+-webengine-kerberos
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/testing-x86_64/qt5-webengine-gcc10.patch (from rev 
390921, qt5-webengine/trunk/qt5-webengine-gcc10.patch)
===
--- testing-x86_64/qt5-webengine-gcc10.patch(rev 0)
+++ testing-x86_64/qt5-webengine-gcc10.patch2020-07-06 20:34:18 UTC (rev 
390922)
@@ -0,0 +1,12 @@
+diff --git a/base/trace_event/trace_event_memory_overhead.h 
b/base/trace_event/trace_event_memory_overhead.h
+index 69468d4..3f5b786 100644
+--- 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2020-05-07 Thread Evangelos Foutras via arch-commits
Date: Thursday, May 7, 2020 @ 10:09:56
  Author: foutrelis
Revision: 382658

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 382657, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/icu67.patch
(from rev 382657, qt5-webengine/trunk/icu67.patch)

-+
 PKGBUILD|   52 +
 icu67.patch |  169 ++
 2 files changed, 221 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 382657, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-05-07 10:09:56 UTC (rev 382658)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.14.2
+pkgver=${_qtver/-/}
+pkgrel=3
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 
'krb5' 'ttf-font')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+icu67.patch)
+sha256sums=('e169d6a75d8c397e04f843bc1b9585950fb9a001255cd18d6293f66fa8a6c947'
+'5315977307e69d20b3e856d3f8724835b08e02085aa5c5cefea83fd7d006')
+
+prepare() {
+  mkdir -p build
+
+  patch -Np3 -d $_pkgfqn/src/3rdparty/chromium/v8 
+Date: Wed, 22 Apr 2020 12:20:17 +0530
+Subject: [PATCH] deps: V8: backport 3f8dc4b2e5ba
+
+Original commit message:
+
+[intl] Remove soon-to-be removed getAllFieldPositions
+
+Needed to land ICU67.1 soon.
+
+Bug: v8:10393
+Change-Id: I3c7737ca600d6ccfdc46ffaddfb318ce60bc7618
+Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2136489
+Reviewed-by: Jakob Kummerow 
+Commit-Queue: Frank Tang 
+Cr-Commit-Position: refs/heads/master@{#67027}
+
+Refs: https://github.com/v8/v8/commit/3f8dc4b2e5baf77b463334c769af85b79d8c1463
+---
+ common.gypi |  2 +-
+ deps/v8/src/objects/js-number-format.cc | 72 +
+ 2 files changed, 38 insertions(+), 36 deletions(-)
+
+diff --git a/deps/v8/src/objects/js-number-format.cc 
b/deps/v8/src/objects/js-number-format.cc
+index 92d3e2fb82e..ced408aa173 100644
+--- a/deps/v8/src/objects/js-number-format.cc
 b/deps/v8/src/objects/js-number-format.cc
+@@ -1197,42 +1197,31 @@ MaybeHandle 
JSNumberFormat::New(Isolate* isolate,
+ }
+ 
+ namespace {
+-Maybe IcuFormatNumber(
++Maybe IcuFormatNumber(
+ Isolate* isolate,
+ const icu::number::LocalizedNumberFormatter& number_format,
+-Handle numeric_obj, icu::FieldPositionIterator* fp_iter) {
++Handle numeric_obj, icu::number::FormattedNumber* formatted) {
+   // If it is BigInt, handle it differently.
+   UErrorCode status = U_ZERO_ERROR;
+-  icu::number::FormattedNumber formatted;
+   if (numeric_obj->IsBigInt()) {
+ Handle big_int = Handle::cast(numeric_obj);
+ Handle big_int_string;
+ ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, big_int_string,
+  BigInt::ToString(isolate, big_int),
+- Nothing());
+-formatted = number_format.formatDecimal(
++ Nothing());
++*formatted = number_format.formatDecimal(
+ {big_int_string->ToCString().get(), big_int_string->length()}, 
status);
+   } else {
+ double number = numeric_obj->Number();
+-formatted = number_format.formatDouble(number, status);
++*formatted = number_format.formatDouble(number, status);
+   }
+   if (U_FAILURE(status)) {
+ // This happen because of icu data trimming trim out "unit".
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=8641
+-THROW_NEW_ERROR_RETURN_VALUE(isolate,
+- NewTypeError(MessageTemplate::kIcuError),
+- Nothing());
+-  }
+-  if (fp_iter) {
+-formatted.getAllFieldPositions(*fp_iter, status);
++THROW_NEW_ERROR_RETURN_VALUE(
++isolate, NewTypeError(MessageTemplate::kIcuError), Nothing());
+   }
+-  icu::UnicodeString result = formatted.toString(status);
+-  if (U_FAILURE(status)) {
+-THROW_NEW_ERROR_RETURN_VALUE(isolate,
+- NewTypeError(MessageTemplate::kIcuError),
+- Nothing());
+-  }
+-  return Just(result);
++  return Just(true);
+ }
+ 
+ }  // namespace
+@@ -1243,10 +1232,16 @@ MaybeHandle 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2020-04-27 Thread Evangelos Foutras via arch-commits
Date: Monday, April 27, 2020 @ 11:55:25
  Author: foutrelis
Revision: 381713

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 381712, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/icu67.patch
(from rev 381712, qt5-webengine/trunk/icu67.patch)

-+
 PKGBUILD|   52 +
 icu67.patch |  169 ++
 2 files changed, 221 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 381712, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-27 11:55:25 UTC (rev 381713)
@@ -0,0 +1,52 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.14.2
+pkgver=${_qtver/-/}
+pkgrel=2
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 
'krb5' 'ttf-font')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+icu67.patch)
+sha256sums=('e169d6a75d8c397e04f843bc1b9585950fb9a001255cd18d6293f66fa8a6c947'
+'5315977307e69d20b3e856d3f8724835b08e02085aa5c5cefea83fd7d006')
+
+prepare() {
+  mkdir -p build
+
+  patch -Np3 -d $_pkgfqn/src/3rdparty/chromium/v8 
+Date: Wed, 22 Apr 2020 12:20:17 +0530
+Subject: [PATCH] deps: V8: backport 3f8dc4b2e5ba
+
+Original commit message:
+
+[intl] Remove soon-to-be removed getAllFieldPositions
+
+Needed to land ICU67.1 soon.
+
+Bug: v8:10393
+Change-Id: I3c7737ca600d6ccfdc46ffaddfb318ce60bc7618
+Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2136489
+Reviewed-by: Jakob Kummerow 
+Commit-Queue: Frank Tang 
+Cr-Commit-Position: refs/heads/master@{#67027}
+
+Refs: https://github.com/v8/v8/commit/3f8dc4b2e5baf77b463334c769af85b79d8c1463
+---
+ common.gypi |  2 +-
+ deps/v8/src/objects/js-number-format.cc | 72 +
+ 2 files changed, 38 insertions(+), 36 deletions(-)
+
+diff --git a/deps/v8/src/objects/js-number-format.cc 
b/deps/v8/src/objects/js-number-format.cc
+index 92d3e2fb82e..ced408aa173 100644
+--- a/deps/v8/src/objects/js-number-format.cc
 b/deps/v8/src/objects/js-number-format.cc
+@@ -1197,42 +1197,31 @@ MaybeHandle 
JSNumberFormat::New(Isolate* isolate,
+ }
+ 
+ namespace {
+-Maybe IcuFormatNumber(
++Maybe IcuFormatNumber(
+ Isolate* isolate,
+ const icu::number::LocalizedNumberFormatter& number_format,
+-Handle numeric_obj, icu::FieldPositionIterator* fp_iter) {
++Handle numeric_obj, icu::number::FormattedNumber* formatted) {
+   // If it is BigInt, handle it differently.
+   UErrorCode status = U_ZERO_ERROR;
+-  icu::number::FormattedNumber formatted;
+   if (numeric_obj->IsBigInt()) {
+ Handle big_int = Handle::cast(numeric_obj);
+ Handle big_int_string;
+ ASSIGN_RETURN_ON_EXCEPTION_VALUE(isolate, big_int_string,
+  BigInt::ToString(isolate, big_int),
+- Nothing());
+-formatted = number_format.formatDecimal(
++ Nothing());
++*formatted = number_format.formatDecimal(
+ {big_int_string->ToCString().get(), big_int_string->length()}, 
status);
+   } else {
+ double number = numeric_obj->Number();
+-formatted = number_format.formatDouble(number, status);
++*formatted = number_format.formatDouble(number, status);
+   }
+   if (U_FAILURE(status)) {
+ // This happen because of icu data trimming trim out "unit".
+ // See https://bugs.chromium.org/p/v8/issues/detail?id=8641
+-THROW_NEW_ERROR_RETURN_VALUE(isolate,
+- NewTypeError(MessageTemplate::kIcuError),
+- Nothing());
+-  }
+-  if (fp_iter) {
+-formatted.getAllFieldPositions(*fp_iter, status);
++THROW_NEW_ERROR_RETURN_VALUE(
++isolate, NewTypeError(MessageTemplate::kIcuError), Nothing());
+   }
+-  icu::UnicodeString result = formatted.toString(status);
+-  if (U_FAILURE(status)) {
+-THROW_NEW_ERROR_RETURN_VALUE(isolate,
+- NewTypeError(MessageTemplate::kIcuError),
+- Nothing());
+-  }
+-  return Just(result);
++  return Just(true);
+ }
+ 
+ }  // namespace
+@@ -1243,10 +1232,16 @@ MaybeHandle 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-11-11 Thread Evangelos Foutras via arch-commits
Date: Tuesday, November 12, 2019 @ 00:54:11
  Author: foutrelis
Revision: 367821

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 367820, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/icu65.patch
(from rev 367820, qt5-webengine/trunk/icu65.patch)

-+
 PKGBUILD|   53 
 icu65.patch |   64 ++
 2 files changed, 117 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 367820, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-11-12 00:54:11 UTC (rev 367821)
@@ -0,0 +1,53 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.13.2
+pkgver=${_qtver/-/}
+pkgrel=3
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ icu65.patch
+ 
CVE-2019-13720.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch/?id=d6e5fc10;)
+sha256sums=('adcf56b5de6f34744bba2307b696fc75611884f4270e87dfa760d6e99dd711bb'
+'1de9bdbfed482295dda45c7d4e323cee55a34e42f66b892da1c1a778682b7a41'
+'3b2ce75214e757f5d0d268fbb1009c2e0c660d19620ae27e8d92a0e492e5d9da')
+
+prepare() {
+  mkdir -p build
+
+  cd $_pkgfqn/src/3rdparty
+  patch -p1 -i "$srcdir"/CVE-2019-13720.patch
+  patch -p1 -d chromium -i "$srcdir"/icu65.patch
+}
+
+build() {
+  cd build
+
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/icu65.patch (from rev 367820, 
qt5-webengine/trunk/icu65.patch)
===
--- staging-x86_64/icu65.patch  (rev 0)
+++ staging-x86_64/icu65.patch  2019-11-12 00:54:11 UTC (rev 367821)
@@ -0,0 +1,64 @@
+From 5679c3c191ed62b62d8db22f1657a296ee9bfe8e Mon Sep 17 00:00:00 2001
+From: Frank Tang 
+Date: Wed, 30 Oct 2019 22:49:47 +
+Subject: [PATCH] Update ICU to 65.1 from 64  and fix broken tests
+
+ICU 65-1 release note
+http://site.icu-project.org/download/65
+
+CLDR 36 release blog
+http://blog.unicode.org/2019/10/unicode-cldr-version-36-languagelocale.html
+
+Most of the test expectation change is due to CLDR 36 update
+of Grapheme Cluster for Indic languages
+See the following for related changes in ICU 65.1 in this area:
+https://unicode-org.atlassian.net/browse/CLDR-10994
+https://unicode-org.atlassian.net/browse/ICU-13637
+https://github.com/unicode-org/cldr/blob/master/common/properties/segments/readme.txt
+
+Bug: chromium:1014272, chromium:1017047
+Change-Id: I9fc6d4620bf2a4c189940d06d8c79893502db3dd
+Cq-Include-Trybots: luci.chromium.try:linux_layout_tests_layout_ng_disabled
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866059
+Reviewed-by: Jungshik Shin 
+Reviewed-by: Doug Turner 
+Reviewed-by: Michael Wasserman 
+Reviewed-by: Kent Tamura 
+Reviewed-by: Trent Apted 
+Reviewed-by: Mason Freed 
+Commit-Queue: Frank Tang 
+Cr-Commit-Position: refs/heads/master@{#711027}
+---
+ third_party/blink/renderer/core/dom/document.cc | 2 +-
+ ui/gfx/render_text_harfbuzz.cc  | 5 -
+ 2 files changed, 5 insertions(+), 2 deletions(-)
+
+diff --git a/third_party/blink/renderer/core/dom/document.cc 
b/third_party/blink/renderer/core/dom/document.cc
+index 511aac29086..f188cf548a6 100644
+--- a/third_party/blink/renderer/core/dom/document.cc
 b/third_party/blink/renderer/core/dom/document.cc
+@@ -6191,7 +6191,7 @@ static ParseQualifiedNameResult 
ParseQualifiedNameInternal(
+ 
+   for (unsigned i = 0; i < length;) {
+ UChar32 c;
+-U16_NEXT(characters, i, length, c)
++U16_NEXT(characters, i, length, c);
+ if (c == ':') {
+   if (saw_colon)
+ return 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-10-09 Thread Antonio Rojas via arch-commits
Date: Wednesday, October 9, 2019 @ 12:18:15
  Author: arojas
Revision: 364228

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  qt5-webengine/repos/kde-unstable-x86_64/
  qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD
(from rev 364227, qt5-webengine/kde-unstable/PKGBUILD)
  qt5-webengine/repos/kde-unstable-x86_64/qt5-webengine-system-icu.patch
(from rev 364227, qt5-webengine/kde-unstable/qt5-webengine-system-icu.patch)

+
 PKGBUILD   |   50 +++
 qt5-webengine-system-icu.patch |   20 +++
 2 files changed, 70 insertions(+)

Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 364227, 
qt5-webengine/kde-unstable/PKGBUILD)
===
--- kde-unstable-x86_64/PKGBUILD(rev 0)
+++ kde-unstable-x86_64/PKGBUILD2019-10-09 12:18:15 UTC (rev 364228)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.14.0-beta1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler' 'gn')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+
qt5-webengine-linux-5.2.patch::"https://code.qt.io/cgit/qt/qtwebengine-chromium.git/patch?id=74e69da9;)
+sha256sums=('4255e0a4f1510b6cae552f053b774659d93116cf17080ac003884c82dc00961c'
+'8deb3df43a379976bbdb1fa814e68b2ce0433043695efc694c11e47f67c51b6a')
+
+prepare() {
+  mkdir -p build
+
+  cd $_pkgfqn/src/3rdparty/chromium
+  patch -p2 -i "$srcdir"/qt5-webengine-linux-5.2.patch # Fix build with recent 
kernel
+}
+
+build() {
+  cd build
+
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker
+#-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/kde-unstable-x86_64/qt5-webengine-system-icu.patch 
(from rev 364227, qt5-webengine/kde-unstable/qt5-webengine-system-icu.patch)
===
--- kde-unstable-x86_64/qt5-webengine-system-icu.patch  
(rev 0)
+++ kde-unstable-x86_64/qt5-webengine-system-icu.patch  2019-10-09 12:18:15 UTC 
(rev 364228)
@@ -0,0 +1,20 @@
+diff --git a/build/linux/unbundle/icu.gn b/build/linux/unbundle/icu.gn
+index 4450e40..9ca36dd 100644
+--- a/build/linux/unbundle/icu.gn
 b/build/linux/unbundle/icu.gn
+@@ -96,6 +96,7 @@ shim_headers("icui18n_shim") {
+ "unicode/fpositer.h",
+ "unicode/gender.h",
+ "unicode/gregocal.h",
++"unicode/listformatter.h",
+ "unicode/measfmt.h",
+ "unicode/measunit.h",
+ "unicode/measure.h",
+@@ -178,7 +179,6 @@ shim_headers("icuuc_shim") {
+ "unicode/icudataver.h",
+ "unicode/icuplug.h",
+ "unicode/idna.h",
+-"unicode/listformatter.h",
+ "unicode/localpointer.h",
+ "unicode/locdspnm.h",
+ "unicode/locid.h",


[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-09-05 Thread Antonio Rojas via arch-commits
Date: Thursday, September 5, 2019 @ 08:53:27
  Author: arojas
Revision: 361645

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 361644, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtbug-77037-workaround.patch
(from rev 361644, qt5-webengine/trunk/qtbug-77037-workaround.patch)

--+
 PKGBUILD |   50 +
 qtbug-77037-workaround.patch |   11 +
 2 files changed, 61 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 361644, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-09-05 08:53:27 UTC (rev 361645)
@@ -0,0 +1,50 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.13.1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx' 
'libpulse')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+qtbug-77037-workaround.patch)
+sha256sums=('7f12e710b76ff2be4497bf368fc01ecd2419e2e962fb90599b0ece00ae2eb7d0'
+'3e3bb8ecf292e7f249d001db4a4a072ca4ba38f713f496122bd7c73d93d5def9')
+
+prepare() {
+  mkdir -p build
+
+  cd ${_pkgfqn}
+  patch -p1 -i "$srcdir"/qtbug-77037-workaround.patch # Fix build with 
pulseaudio 13
+}
+
+build() {
+  cd build
+
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtbug-77037-workaround.patch (from 
rev 361644, qt5-webengine/trunk/qtbug-77037-workaround.patch)
===
--- staging-x86_64/qtbug-77037-workaround.patch (rev 0)
+++ staging-x86_64/qtbug-77037-workaround.patch 2019-09-05 08:53:27 UTC (rev 
361645)
@@ -0,0 +1,11 @@
+--- qtwebengine-everywhere-src-5.13.0/src/core/config/linux.pri.orig   
2019-08-06 08:23:45.385072740 +0300
 qtwebengine-everywhere-src-5.13.0/src/core/config/linux.pri
2019-08-06 08:23:51.085237082 +0300
+@@ -162,7 +162,7 @@ host_build {
+ qtConfig(webengine-system-harfbuzz): gn_args += use_system_harfbuzz=true
+ !qtConfig(webengine-system-glib): gn_args += use_glib=false
+ qtConfig(webengine-pulseaudio) {
+-gn_args += use_pulseaudio=true
++gn_args += use_pulseaudio=true link_pulseaudio=true
+ } else {
+ gn_args += use_pulseaudio=false
+ }


[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-06-19 Thread Antonio Rojas via arch-commits
Date: Wednesday, June 19, 2019 @ 08:59:44
  Author: arojas
Revision: 356463

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 356462, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-glibc-2.29.patch
(from rev 356462, qt5-webengine/trunk/qtwebengine-glibc-2.29.patch)

--+
 PKGBUILD |   51 +++
 qtwebengine-glibc-2.29.patch |  105 +
 2 files changed, 156 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 356462, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-06-19 08:59:44 UTC (rev 356463)
@@ -0,0 +1,51 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.13.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+qtwebengine-glibc-2.29.patch)
+sha256sums=('e0af82ecee1ab41b6732697f667b98b7b0c53164bebcfaad8070e88b2e064efe'
+'dd791f154b48e69cd47fd94753c45448655b529590995fd71ac1591c53a3d60c')
+
+prepare() {
+  mkdir -p build
+
+  cd ${_pkgfqn}
+  cd src/3rdparty/chromium
+  patch -p1 -i "$srcdir"/qtwebengine-glibc-2.29.patch # Fix PPAPI plugins with 
glibc 2.29
+}
+
+build() {
+  cd build
+
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-glibc-2.29.patch (from 
rev 356462, qt5-webengine/trunk/qtwebengine-glibc-2.29.patch)
===
--- staging-x86_64/qtwebengine-glibc-2.29.patch (rev 0)
+++ staging-x86_64/qtwebengine-glibc-2.29.patch 2019-06-19 08:59:44 UTC (rev 
356463)
@@ -0,0 +1,105 @@
+From 65046b8f90d0336cbe5f2f15cc7da5cb798360ad Mon Sep 17 00:00:00 2001
+From: Matthew Denton 
+Date: Wed, 24 Apr 2019 15:44:40 +
+Subject: [PATCH] Update Linux Seccomp syscall restrictions to EPERM
+ posix_spawn/vfork
+
+Glibc's system() function switched to using posix_spawn, which uses
+CLONE_VFORK. Pepperflash includes a sandbox debugging check which
+relies on us EPERM-ing process creation like this, rather than crashing
+the process with SIGSYS.
+
+So whitelist clone() calls, like posix_spawn, that include the flags
+CLONE_VFORK and CLONE_VM.
+
+Bug: 949312
+Change-Id: I3f4b90114b2fc1d9929e3c0a85bbe8f10def3c20
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1568086
+Commit-Queue: Robert Sesek 
+Reviewed-by: Robert Sesek 
+Cr-Commit-Position: refs/heads/master@{#653590}
+---
+ .../baseline_policy_unittest.cc   | 29 +++
+ .../syscall_parameters_restrictions.cc| 13 +++--
+ 2 files changed, 40 insertions(+), 2 deletions(-)
+
+diff --git a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc 
b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
+index cdeb210ccb..40fcebf933 100644
+--- a/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
 b/sandbox/linux/seccomp-bpf-helpers/baseline_policy_unittest.cc
+@@ -10,7 +10,9 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+@@ -130,6 +132,33 @@ BPF_TEST_C(BaselinePolicy, ForkArmEperm, BaselinePolicy) {
+   BPF_ASSERT_EQ(EPERM, fork_errno);
+ }
+ 
++BPF_TEST_C(BaselinePolicy, SystemEperm, BaselinePolicy) {
++  errno = 0;
++  int ret_val = system("echo SHOULD NEVER RUN");
++  BPF_ASSERT_EQ(-1, ret_val);
++  BPF_ASSERT_EQ(EPERM, errno);
++}
++
++BPF_TEST_C(BaselinePolicy, CloneVforkEperm, BaselinePolicy) {
++  errno = 0;
++  // Allocate a couple pages for the child's stack even though the child 
should
++  // never start.
++  constexpr size_t kStackSize = 4096 * 4;
++  void* child_stack = mmap(nullptr, 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-04-20 Thread Antonio Rojas via arch-commits
Date: Saturday, April 20, 2019 @ 17:58:35
  Author: arojas
Revision: 351519

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 351518, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 351518, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 351518, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-04-20 17:58:35 UTC (rev 351519)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.3
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('3ff3bac12d75aa0f3fd993bb7077fe411f7b0e6a3993af6f8b039d48e3dc4317'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
351518, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2019-04-20 17:58:35 UTC (rev 
351519)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-04-05 Thread Felix Yan via arch-commits
Date: Friday, April 5, 2019 @ 13:15:53
  Author: felixonmars
Revision: 349959

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 349957, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 349957, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 349957, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-04-05 13:15:53 UTC (rev 349959)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.2
+pkgver=${_qtver/-/}
+pkgrel=2
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('082b1d6e60c1be61881bc8533acc67d9688620d6b3a538417f62b27b34ead493'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
349957, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2019-04-05 13:15:53 UTC (rev 
349959)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-03-19 Thread Antonio Rojas via arch-commits
Date: Tuesday, March 19, 2019 @ 13:06:46
  Author: arojas
Revision: 348649

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  qt5-webengine/repos/kde-unstable-x86_64/
  qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD
(from rev 348648, qt5-webengine/kde-unstable/PKGBUILD)
  qt5-webengine/repos/kde-unstable-x86_64/qtwebengine-harmony.patch
(from rev 348648, qt5-webengine/kde-unstable/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 348648, 
qt5-webengine/kde-unstable/PKGBUILD)
===
--- kde-unstable-x86_64/PKGBUILD(rev 0)
+++ kde-unstable-x86_64/PKGBUILD2019-03-19 13:06:46 UTC (rev 348649)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.13.0-beta1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('874f9987304eb677f3c4897623c4dcc8ec685b4a468c096762f2704e00780462'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/kde-unstable-x86_64/qtwebengine-harmony.patch (from 
rev 348648, qt5-webengine/kde-unstable/qtwebengine-harmony.patch)
===
--- kde-unstable-x86_64/qtwebengine-harmony.patch   
(rev 0)
+++ kde-unstable-x86_64/qtwebengine-harmony.patch   2019-03-19 13:06:46 UTC 
(rev 348649)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-03-14 Thread Antonio Rojas via arch-commits
Date: Thursday, March 14, 2019 @ 12:21:48
  Author: arojas
Revision: 347941

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 347940, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 347940, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 347940, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-03-14 12:21:48 UTC (rev 347941)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.2
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('082b1d6e60c1be61881bc8533acc67d9688620d6b3a538417f62b27b34ead493'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
347940, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2019-03-14 12:21:48 UTC (rev 
347941)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-02-05 Thread Antonio Rojas via arch-commits
Date: Tuesday, February 5, 2019 @ 16:36:18
  Author: arojas
Revision: 345289

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 345288, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 345288, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 345288, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-02-05 16:36:18 UTC (rev 345289)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.1
+pkgver=${_qtver/-/}
+pkgrel=2
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('43e91e06bc4a60ef0f91d15ae06425cf9c6b4f7dafe960259a5b013c687c3bd0'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
345288, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2019-02-05 16:36:18 UTC (rev 
345289)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2019-02-01 Thread Antonio Rojas via arch-commits
Date: Friday, February 1, 2019 @ 22:35:34
  Author: arojas
Revision: 345030

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 345029, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 345029, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 345029, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-02-01 22:35:34 UTC (rev 345030)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='https://www.qt.io'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("https://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('43e91e06bc4a60ef0f91d15ae06425cf9c6b4f7dafe960259a5b013c687c3bd0'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
345029, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2019-02-01 22:35:34 UTC (rev 
345030)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2018-12-05 Thread Antonio Rojas via arch-commits
Date: Wednesday, December 5, 2018 @ 13:07:37
  Author: arojas
Revision: 341028

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 341027, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 341027, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   65 +
 qtwebengine-harmony.patch |   77 
 2 files changed, 142 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 341027, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-12-05 13:07:37 UTC (rev 341028)
@@ -0,0 +1,65 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch
+ 
qtbug-71370.patch::"http://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=20238f2c;
+ 
qtbug-69605.patch::"http://code.qt.io/cgit/qt/qtwebengine.git/patch/?id=721cd2d2;)
+sha256sums=('bd581e390a30e0f74d41b0e3334b3cf612dd4af23de36a3bf5931d5b4453687c'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3'
+'58aaec357311fcf72b1d94c40f5159b84c835bbf41fcf9a0977368c99bea70f4'
+'8f44545a6acd1bc58c7ddd8ff369a818102b6a1fecd132eb2508b18fd1433d8b')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+  # https://bugreports.qt.io/browse/QTBUG-71370
+  patch -p1 -i ../qtbug-71370.patch
+  # https://bugreports.qt.io/browse/QTBUG-69605
+  patch -p1 -i ../qtbug-69605.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
341027, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2018-12-05 13:07:37 UTC (rev 
341028)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2018-10-22 Thread Felix Yan via arch-commits
Date: Monday, October 22, 2018 @ 22:05:59
  Author: felixonmars
Revision: 337096

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 337095, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 337095, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 337095, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-10-22 22:05:59 UTC (rev 337096)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.11.2
+pkgver=${_qtver/-/}
+pkgrel=2
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('3ff9bba5f631cfdd454ce298489360b3e2d9a2de4eb82bb121d838ef65f9b772'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
337095, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2018-10-22 22:05:59 UTC (rev 
337096)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2018-10-05 Thread Antonio Rojas via arch-commits
Date: Friday, October 5, 2018 @ 14:09:06
  Author: arojas
Revision: 335810

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  qt5-webengine/repos/kde-unstable-x86_64/
  qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD
(from rev 335809, qt5-webengine/kde-unstable/PKGBUILD)
  qt5-webengine/repos/kde-unstable-x86_64/qtwebengine-harmony.patch
(from rev 335809, qt5-webengine/kde-unstable/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 335809, 
qt5-webengine/kde-unstable/PKGBUILD)
===
--- kde-unstable-x86_64/PKGBUILD(rev 0)
+++ kde-unstable-x86_64/PKGBUILD2018-10-05 14:09:06 UTC (rev 335810)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.12.0-beta1
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 'poppler')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('7cd3b04a35f36f9beb62a176067388d506ea02b8092871fdc5f43cc6a09685be'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/kde-unstable-x86_64/qtwebengine-harmony.patch (from 
rev 335809, qt5-webengine/kde-unstable/qtwebengine-harmony.patch)
===
--- kde-unstable-x86_64/qtwebengine-harmony.patch   
(rev 0)
+++ kde-unstable-x86_64/qtwebengine-harmony.patch   2018-10-05 14:09:06 UTC 
(rev 335810)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2018-09-18 Thread Antonio Rojas via arch-commits
Date: Tuesday, September 18, 2018 @ 18:50:05
  Author: arojas
Revision: 334908

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 334907, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 334907, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   57 
 qtwebengine-harmony.patch |   77 
 2 files changed, 134 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 334907, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-09-18 18:50:05 UTC (rev 334908)
@@ -0,0 +1,57 @@
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.11.2
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'libxslt' 'minizip' 'ffmpeg' 're2' 'libvpx')
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('3ff9bba5f631cfdd454ce298489360b3e2d9a2de4eb82bb121d838ef65f9b772'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker \
+-webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
334907, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2018-09-18 18:50:05 UTC (rev 
334908)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected by the 
SkFontMgr.
+-SkAutoMutexAcquire ama(gFTMutex);
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-12-13 Thread Antonio Rojas via arch-commits
Date: Wednesday, December 13, 2017 @ 19:07:46
  Author: arojas
Revision: 312355

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 312354, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 312354, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   58 +
 qtwebengine-harmony.patch |   77 
 2 files changed, 135 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 312354, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-12-13 19:07:46 UTC (rev 312355)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.10.0
+pkgver=${_qtver/-/}
+pkgrel=2
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'protobuf' 'libxslt' 'minizip' 'ffmpeg' 
're2') # libvpx - 1.6.1 not supported
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('a8bf5989ef847a249bbc1f391743a36971825b896747d073e30dbcdefc9567f9'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker
+#   -webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
312354, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2017-12-13 19:07:46 UTC (rev 
312355)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-12-07 Thread Antonio Rojas via arch-commits
Date: Thursday, December 7, 2017 @ 11:23:12
  Author: arojas
Revision: 311726

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 311725, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch
(from rev 311725, qt5-webengine/trunk/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   58 +
 qtwebengine-harmony.patch |   77 
 2 files changed, 135 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 311725, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-12-07 11:23:12 UTC (rev 311726)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.10.0
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'protobuf' 'libxslt' 'minizip' 'ffmpeg' 
're2') # libvpx - 1.6.1 not supported
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('a8bf5989ef847a249bbc1f391743a36971825b896747d073e30dbcdefc9567f9'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker
+#   -webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/qtwebengine-harmony.patch (from rev 
311725, qt5-webengine/trunk/qtwebengine-harmony.patch)
===
--- staging-x86_64/qtwebengine-harmony.patch(rev 0)
+++ staging-x86_64/qtwebengine-harmony.patch2017-12-07 11:23:12 UTC (rev 
311726)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-11-22 Thread Antonio Rojas
Date: Wednesday, November 22, 2017 @ 16:09:00
  Author: arojas
Revision: 310639

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 310638, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/harmony-fix.diff
(from rev 310638, qt5-webengine/trunk/harmony-fix.diff)

--+
 PKGBUILD |   54 +
 harmony-fix.diff |   69 +
 2 files changed, 123 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 310638, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-11-22 16:09:00 UTC (rev 310639)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.9.3
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 'libvpx' 
+ 'libevent' 'libsrtp' 'snappy' 'nss' 'protobuf' 'libxslt' 'libxdamage' 
'minizip' 'ffmpeg')
+ # namcap note: libxdamage is needed for nvidia users
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ harmony-fix.diff)
+sha256sums=('45ae1142fd87271c100f4d7889427738e774e86db5d8f6bcf9ceb99d18571d37'
+'2c309c0f6978e6a399422319b5034b01881d5526cf48b2ee5fcc7f418029a344')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../harmony-fix.diff
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake CONFIG+="proprietary-codecs" WEBENGINE_CONFIG+="use_proprietary_codecs 
use_system_ffmpeg" ../${_pkgfqn}
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/harmony-fix.diff (from rev 310638, 
qt5-webengine/trunk/harmony-fix.diff)
===
--- staging-x86_64/harmony-fix.diff (rev 0)
+++ staging-x86_64/harmony-fix.diff 2017-11-22 16:09:00 UTC (rev 310639)
@@ -0,0 +1,69 @@
+diff -u -r 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
 
qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-09-19 17:38:43.659642835 +0200
 
qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-09-19 17:38:50.492991631 +0200
+@@ -80,7 +80,7 @@
+ 
+ class FreeTypeLibrary : SkNoncopyable {
+ public:
+-FreeTypeLibrary() : fLibrary(nullptr), fIsLCDSupported(false), 
fLCDExtra(0) {
++FreeTypeLibrary() : fLibrary(nullptr) {
+ if (FT_New_Library(, )) {
+ return;
+ }
+@@ -90,8 +90,6 @@
+ // Default { 0x10, 0x40, 0x70, 0x40, 0x10 } adds up to 0x110, 
simulating ink spread.
+ // SetLcdFilter must be called before SetLcdFilterWeights.
+ if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+ 
+ #ifdef SK_FONTHOST_FREETYPE_USE_NORMAL_LCD_FILTER
+ // Adds to 0x110 simulating ink spread, but provides better 
results than default.
+@@ -124,13 +122,9 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -633,17 +627,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and selected 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-11-14 Thread Antonio Rojas
Date: Tuesday, November 14, 2017 @ 18:41:45
  Author: arojas
Revision: 309939

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  qt5-webengine/repos/kde-unstable-x86_64/
  qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD
(from rev 309938, qt5-webengine/kde-unstable/PKGBUILD)
  qt5-webengine/repos/kde-unstable-x86_64/qtwebengine-harmony.patch
(from rev 309938, qt5-webengine/kde-unstable/qtwebengine-harmony.patch)

---+
 PKGBUILD  |   58 +
 qtwebengine-harmony.patch |   77 
 2 files changed, 135 insertions(+)

Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 309938, 
qt5-webengine/kde-unstable/PKGBUILD)
===
--- kde-unstable-x86_64/PKGBUILD(rev 0)
+++ kde-unstable-x86_64/PKGBUILD2017-11-14 18:41:45 UTC (rev 309939)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.10.0-beta4
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'protobuf' 'libxslt' 'minizip' 'ffmpeg' 
're2') # libvpx - 1.6.1 not supported
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools' 
'vulkan-headers')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ qtwebengine-harmony.patch)
+sha256sums=('4774361b2ffb9acf9ed7955c544ef06ca969f6ea0c03af2afe19ca01562c43fa'
+'feca54ab09ac0fc9d0626770a6b899a6ac5a12173c7d0c1005bc3964ec83e7b3')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../qtwebengine-harmony.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker
+#   -webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/kde-unstable-x86_64/qtwebengine-harmony.patch (from 
rev 309938, qt5-webengine/kde-unstable/qtwebengine-harmony.patch)
===
--- kde-unstable-x86_64/qtwebengine-harmony.patch   
(rev 0)
+++ kde-unstable-x86_64/qtwebengine-harmony.patch   2017-11-14 18:41:45 UTC 
(rev 309939)
@@ -0,0 +1,77 @@
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp.orig
 2017-10-10 17:42:06.956950985 +0200
 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-10-10 17:46:05.824187787 +0200
+@@ -99,8 +99,6 @@
+ FreeTypeLibrary()
+ : fGetVarDesignCoordinates(nullptr)
+ , fLibrary(nullptr)
+-, fIsLCDSupported(false)
+-, fLCDExtra(0)
+ {
+ if (FT_New_Library(, )) {
+ return;
+@@ -147,12 +145,7 @@
+ }
+ #endif
+ 
+-// Setup LCD filtering. This reduces color fringes for LCD smoothed 
glyphs.
+-// The default has changed over time, so this doesn't mean the same 
thing to all users.
+-if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+-}
++FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
+ }
+ ~FreeTypeLibrary() {
+ if (fLibrary) {
+@@ -161,8 +153,6 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ // FT_Get_{MM,Var}_{Blend,Design}_Coordinates were added in FreeType 
2.7.1.
+ // Prior to this there was no way to get the coordinates out of the 
FT_Face.
+@@ -173,8 +163,6 @@
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -704,17 +692,6 @@
+ 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-11-12 Thread Evangelos Foutras
Date: Sunday, November 12, 2017 @ 21:25:10
  Author: foutrelis
Revision: 309676

archrelease: copy trunk to staging-x86_64

Added:
  qt5-webengine/repos/staging-x86_64/
  qt5-webengine/repos/staging-x86_64/PKGBUILD
(from rev 309675, qt5-webengine/trunk/PKGBUILD)
  qt5-webengine/repos/staging-x86_64/harmony-fix.diff
(from rev 309675, qt5-webengine/trunk/harmony-fix.diff)

--+
 PKGBUILD |   54 +
 harmony-fix.diff |   69 +
 2 files changed, 123 insertions(+)

Copied: qt5-webengine/repos/staging-x86_64/PKGBUILD (from rev 309675, 
qt5-webengine/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2017-11-12 21:25:10 UTC (rev 309676)
@@ -0,0 +1,54 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.9.2
+pkgver=${_qtver/-/}
+pkgrel=3
+arch=('i686' 'x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 'libvpx' 
+ 'libevent' 'libsrtp' 'snappy' 'nss' 'protobuf' 'libxslt' 'libxdamage' 
'minizip' 'ffmpeg')
+ # namcap note: libxdamage is needed for nvidia users
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
+source=("http://download.qt.io/official_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ harmony-fix.diff)
+sha256sums=('cab069e4589f806640bebe4077c70e5cd5ffeb146c6e8caca6c4454fc0c4a108'
+'2c309c0f6978e6a399422319b5034b01881d5526cf48b2ee5fcc7f418029a344')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  patch -Np1 -i ../harmony-fix.diff
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake CONFIG+="proprietary-codecs" WEBENGINE_CONFIG+="use_proprietary_codecs 
use_system_ffmpeg" ../${_pkgfqn}
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/staging-x86_64/harmony-fix.diff (from rev 309675, 
qt5-webengine/trunk/harmony-fix.diff)
===
--- staging-x86_64/harmony-fix.diff (rev 0)
+++ staging-x86_64/harmony-fix.diff 2017-11-12 21:25:10 UTC (rev 309676)
@@ -0,0 +1,69 @@
+diff -u -r 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
 
qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-09-19 17:38:43.659642835 +0200
 
qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-09-19 17:38:50.492991631 +0200
+@@ -80,7 +80,7 @@
+ 
+ class FreeTypeLibrary : SkNoncopyable {
+ public:
+-FreeTypeLibrary() : fLibrary(nullptr), fIsLCDSupported(false), 
fLCDExtra(0) {
++FreeTypeLibrary() : fLibrary(nullptr) {
+ if (FT_New_Library(, )) {
+ return;
+ }
+@@ -90,8 +90,6 @@
+ // Default { 0x10, 0x40, 0x70, 0x40, 0x10 } adds up to 0x110, 
simulating ink spread.
+ // SetLcdFilter must be called before SetLcdFilterWeights.
+ if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+ 
+ #ifdef SK_FONTHOST_FREETYPE_USE_NORMAL_LCD_FILTER
+ // Adds to 0x110 simulating ink spread, but provides better 
results than default.
+@@ -124,13 +122,9 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -633,17 +627,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-if (isLCD(*rec)) {
+-// TODO: re-work so that FreeType is set-up and 

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-10-10 Thread Antonio Rojas
Date: Tuesday, October 10, 2017 @ 12:19:28
  Author: arojas
Revision: 307357

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  qt5-webengine/repos/kde-unstable-x86_64/
  qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD
(from rev 307356, qt5-webengine/kde-unstable/PKGBUILD)
  qt5-webengine/repos/kde-unstable-x86_64/harmony-fix.diff
(from rev 307356, qt5-webengine/kde-unstable/harmony-fix.diff)

--+
 PKGBUILD |   58 
 harmony-fix.diff |   69 +
 2 files changed, 127 insertions(+)

Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 307356, 
qt5-webengine/kde-unstable/PKGBUILD)
===
--- kde-unstable-x86_64/PKGBUILD(rev 0)
+++ kde-unstable-x86_64/PKGBUILD2017-10-10 12:19:28 UTC (rev 307357)
@@ -0,0 +1,58 @@
+# $Id$
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.10.0-beta
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 
+ 'libevent' 'snappy' 'nss' 'protobuf' 'libxslt' 'minizip' 'ffmpeg' 
're2') # libvpx - 1.6.1 not supported
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja' 'qt5-tools')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-everywhere-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
+ harmony-fix.diff)
+sha256sums=('df7547b87ef6d150c5ed4dc9a03b24299caf9ceb15a3515d995733f901ec3549'
+'2c309c0f6978e6a399422319b5034b01881d5526cf48b2ee5fcc7f418029a344')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  cd ${_pkgfqn}
+
+  # FreeType 2.8.1
+  # patch -Np1 -i ../harmony-fix.diff
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake ../${_pkgfqn} -- \
+-proprietary-codecs \
+-system-ffmpeg \
+-webp \
+-spellchecker
+#   -webengine-icu
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/kde-unstable-x86_64/harmony-fix.diff (from rev 
307356, qt5-webengine/kde-unstable/harmony-fix.diff)
===
--- kde-unstable-x86_64/harmony-fix.diff(rev 0)
+++ kde-unstable-x86_64/harmony-fix.diff2017-10-10 12:19:28 UTC (rev 
307357)
@@ -0,0 +1,69 @@
+diff -u -r 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
 
qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
+--- 
qtwebengine-opensource-src-5.9.1/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-09-19 17:38:43.659642835 +0200
 
qtwebengine-opensource-src-5.9.1-ftfixes/src/3rdparty/chromium/third_party/skia/src/ports/SkFontHost_FreeType.cpp
  2017-09-19 17:38:50.492991631 +0200
+@@ -80,7 +80,7 @@
+ 
+ class FreeTypeLibrary : SkNoncopyable {
+ public:
+-FreeTypeLibrary() : fLibrary(nullptr), fIsLCDSupported(false), 
fLCDExtra(0) {
++FreeTypeLibrary() : fLibrary(nullptr) {
+ if (FT_New_Library(, )) {
+ return;
+ }
+@@ -90,8 +90,6 @@
+ // Default { 0x10, 0x40, 0x70, 0x40, 0x10 } adds up to 0x110, 
simulating ink spread.
+ // SetLcdFilter must be called before SetLcdFilterWeights.
+ if (FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT) == 0) {
+-fIsLCDSupported = true;
+-fLCDExtra = 2; //Using a filter adds one full pixel to each side.
+ 
+ #ifdef SK_FONTHOST_FREETYPE_USE_NORMAL_LCD_FILTER
+ // Adds to 0x110 simulating ink spread, but provides better 
results than default.
+@@ -124,13 +122,9 @@
+ }
+ 
+ FT_Library library() { return fLibrary; }
+-bool isLCDSupported() { return fIsLCDSupported; }
+-int lcdExtra() { return fLCDExtra; }
+ 
+ private:
+ FT_Library fLibrary;
+-bool fIsLCDSupported;
+-int fLCDExtra;
+ 
+ // FT_Library_SetLcdFilterWeights was introduced in FreeType 2.4.0.
+ // The following platforms provide FreeType of at least 2.4.0.
+@@ -633,17 +627,6 @@
+ rec->fTextSize = SkIntToScalar(1 << 14);
+ }
+ 
+-

[arch-commits] Commit in qt5-webengine/repos (3 files)

2017-04-21 Thread Antonio Rojas
Date: Friday, April 21, 2017 @ 11:59:40
  Author: arojas
Revision: 293814

archrelease: copy kde-unstable to kde-unstable-x86_64

Added:
  qt5-webengine/repos/kde-unstable-x86_64/
  qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD
(from rev 293813, qt5-webengine/kde-unstable/PKGBUILD)
  qt5-webengine/repos/kde-unstable-x86_64/qt5-webengine-nss.patch
(from rev 293813, qt5-webengine/kde-unstable/qt5-webengine-nss.patch)

-+
 PKGBUILD|   54 ++
 qt5-webengine-nss.patch |   31 ++
 2 files changed, 85 insertions(+)

Copied: qt5-webengine/repos/kde-unstable-x86_64/PKGBUILD (from rev 293813, 
qt5-webengine/kde-unstable/PKGBUILD)
===
--- kde-unstable-x86_64/PKGBUILD(rev 0)
+++ kde-unstable-x86_64/PKGBUILD2017-04-21 11:59:40 UTC (rev 293814)
@@ -0,0 +1,54 @@
+# $Id: PKGBUILD 240297 2015-06-03 10:22:03Z fyan $
+# Maintainer: Felix Yan 
+# Contributor: Andrea Scarpino 
+
+pkgname=qt5-webengine
+_qtver=5.9.0-beta2
+pkgver=${_qtver/-/}
+pkgrel=1
+arch=('i686' 'x86_64')
+url='http://qt-project.org/'
+license=('LGPL3' 'LGPL2.1' 'BSD')
+pkgdesc='Provides support for web applications using the Chromium browser 
project'
+depends=('qt5-webchannel' 'qt5-location' 'libxcomposite' 'libxrandr' 
'pciutils' 'libxss' 'libvpx' 
+ 'libevent' 'libsrtp' 'snappy' 'nss' 'protobuf' 'libxslt' 'libxdamage' 
'minizip' 'ffmpeg')
+ # namcap note: libxdamage is needed for nvidia users
+makedepends=('python2' 'git' 'gperf' 'jsoncpp' 'ninja')
+groups=('qt' 'qt5')
+_pkgfqn="${pkgname/5-/}-opensource-src-${_qtver}"
+source=("http://download.qt.io/development_releases/qt/${pkgver%.*}/${_qtver}/submodules/${_pkgfqn}.tar.xz;
 
+qt5-webengine-nss.patch)
+
+sha256sums=('a98709230ed0015e9fa3d82d93cdc757934e5bf577563caf9e5f56217c46ae85'
+'4419e688bfda63b399a9ea2f28d5e4c8c6294096d363b657903329dbba0499cd')
+
+prepare() {
+  mkdir -p build
+
+  # Hack to force using python2
+  mkdir -p bin
+  ln -s /usr/bin/python2 bin/python
+
+  # Fix opening some websites with recent NSS 
https://github.com/QupZilla/qupzilla/issues/1870 (KaOSx patch)
+  cd ${_pkgfqn}
+ # patch -p1 -i ../qt5-webengine-nss.patch
+}
+
+build() {
+  cd build
+
+  export PATH="$srcdir/bin:$PATH"
+  qmake CONFIG+="proprietary-codecs" WEBENGINE_CONFIG+="use_proprietary_codecs 
use_system_ffmpeg use_system_icu" ../${_pkgfqn}
+  make
+}
+
+package() {
+  cd build
+  make INSTALL_ROOT="$pkgdir" install
+
+  # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
+  find "$pkgdir/usr/lib" -type f -name '*.prl' \
+-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
+
+  install -Dm644 "$srcdir"/${_pkgfqn}/src/3rdparty/chromium/LICENSE 
"$pkgdir"/usr/share/licenses/${pkgname}/LICENSE.chromium
+}

Copied: qt5-webengine/repos/kde-unstable-x86_64/qt5-webengine-nss.patch (from 
rev 293813, qt5-webengine/kde-unstable/qt5-webengine-nss.patch)
===
--- kde-unstable-x86_64/qt5-webengine-nss.patch (rev 0)
+++ kde-unstable-x86_64/qt5-webengine-nss.patch 2017-04-21 11:59:40 UTC (rev 
293814)
@@ -0,0 +1,31 @@
+diff -ur 
qtwebengine-opensource-src-5.6.0-beta/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc
 
+qtwebengine-opensource-src-5.6.0-beta-chimera-nss-init/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc
+--- 
qtwebengine-opensource-src-5.6.0-beta/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc
2015-12-10 18:17:21.0 +0100
 
qtwebengine-opensource-src-5.6.0-beta-chimera-nss-init/src/3rdparty/chromium/net/socket/ssl_client_socket_openssl.cc
   2016-01-14 
+17:11:38.432633534 +0100
+@@ -57,6 +57,10 @@
+ #include "net/ssl/ssl_platform_key.h"
+ #endif
+ 
++#if defined(USE_NSS_CERTS) || defined(OS_IOS)
++#include "net/cert_net/nss_ocsp.h"
++#endif
++
+ namespace net {
+ 
+ namespace {
+@@ -795,6 +799,14 @@
+   DCHECK(!ssl_);
+   DCHECK(!transport_bio_);
+ 
++#if defined(USE_NSS_CERTS) || defined(OS_IOS)
++  if (ssl_config_.cert_io_enabled) {
++// TODO(davidben): Move this out of SSLClientSocket. See
++// https://crbug.com/539520.
++EnsureNSSHttpIOInit();
++  }
++#endif
++
+   SSLContext* context = SSLContext::GetInstance();
+   crypto::OpenSSLErrStackTracer err_tracer(FROM_HERE);
+