aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-07-03 07:22:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-07-03 07:22:46 +0000
commit204bdb55e4252493c14ae145c08af81b6cb2453d (patch)
tree9ff4ed386e21d5c2513b76caf0be2ceae47bc819 /testing
parent26f5612acc929d7a482dc3a698c066626de0cd51 (diff)
downloadaports-204bdb55e4252493c14ae145c08af81b6cb2453d.tar.bz2
aports-204bdb55e4252493c14ae145c08af81b6cb2453d.tar.xz
testing/wkhtmltopdf: upgrade to 0.12.4
Diffstat (limited to 'testing')
-rw-r--r--testing/wkhtmltopdf/APKBUILD11
-rw-r--r--testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch11
2 files changed, 17 insertions, 5 deletions
diff --git a/testing/wkhtmltopdf/APKBUILD b/testing/wkhtmltopdf/APKBUILD
index d9c888b95c..c51ccd858c 100644
--- a/testing/wkhtmltopdf/APKBUILD
+++ b/testing/wkhtmltopdf/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=wkhtmltopdf
-pkgver=0.12.3
+pkgver=0.12.4
pkgrel=0
pkgdesc="Simple shell utility to convert html to pdf"
url="http://wkhtmltopdf.org/"
@@ -12,7 +12,9 @@ makedepends="$depends_dev qt5-qtbase-dev qt5-qtwebkit-dev qt5-qtsvg-dev
qt5-qtxmlpatterns-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
-source="$pkgname-$pkgver.tar.gz::https://github.com/wkhtmltopdf/wkhtmltopdf/archive/$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/wkhtmltopdf/wkhtmltopdf/archive/$pkgver.tar.gz
+ wkhtmltopdf-missing-setDevicePixelRatio.patch
+ "
_builddir="$srcdir"/wkhtmltopdf-$pkgver
prepare() {
@@ -35,6 +37,5 @@ package() {
make install INSTALL_ROOT="$pkgdir"/usr || return 1
}
-md5sums="802fa6789feda1819a1e911f0ef2a322 wkhtmltopdf-0.12.3.tar.gz"
-sha256sums="0d55ad5d0582a8a62f3f108c41be071c9762ee970bdc6ed47a22067350e9d2ed wkhtmltopdf-0.12.3.tar.gz"
-sha512sums="1b307072cf3f7fbdd44bf5d9532236c29ad4d547368c9de1a8c7b6d702a97e7ae57062a68419987801f19a9b4eefda7acbca47aa1a6e4719919285e27b6666c7 wkhtmltopdf-0.12.3.tar.gz"
+sha512sums="6ec27453efdf32b97f6434a3eb5dd3d3470bbdccdbb4f997ff4234441c79960932e51d963e5d0d2d98bbf8b4f7ab2ed8835dbc1a35407a63815691b59217caa2 wkhtmltopdf-0.12.4.tar.gz
+05285d9f7aede92941edcc4513b61cc328ade39639b01e72e2f9857d44e8ea2240b67c02a40804022e7c3888de6de8338339cdd6f28b5c681f5be8585ce00983 wkhtmltopdf-missing-setDevicePixelRatio.patch"
diff --git a/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch b/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch
new file mode 100644
index 0000000000..2d81be583d
--- /dev/null
+++ b/testing/wkhtmltopdf/wkhtmltopdf-missing-setDevicePixelRatio.patch
@@ -0,0 +1,11 @@
+--- a/src/lib/multipageloader.cc.org 2017-02-13 16:39:31.915069019 -0700
++++ b/src/lib/multipageloader.cc 2017-02-13 16:37:39.343605883 -0700
+@@ -216,7 +216,7 @@
+
+ double devicePixelRatio = multiPageLoader.dpi / 96.; // The used version of WebKit always renders at 96 DPI when no zoom is applied. It does not fully support a device pixel ratio != 1 natively.
+ webPage.mainFrame()->setZoomFactor(devicePixelRatio * settings.zoomFactor); // Zoom in the page to achieve a higher DPI.
+- webPage.setDevicePixelRatio(devicePixelRatio); // Fix CSS media queries (does not affect anything else).
++// webPage.setDevicePixelRatio(devicePixelRatio); // Fix CSS media queries (does not affect anything else).
+ }
+
+ /*!