void-packages/srcpkgs/resvg/patches/QPainterPath.patch
Đoàn Trần Công Danh 103ab731ab srcpkgs/r*: convert patches to -Np1
* runit is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.-][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.-][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

20 lines
594 B
Diff

--- a/capi/include/ResvgQt.h 2019-03-21 21:50:09.719296805 +0100
+++ b/capi/include/ResvgQt.h 2020-09-01 01:20:43.903570695 +0200
@@ -23,6 +23,7 @@
#include <QFile>
#include <QGuiApplication>
#include <QPainter>
+#include <QPainterPath>
#include <QRectF>
#include <QScopedPointer>
#include <QScreen>
--- a/resvg-qt/cpp/qt_capi.cpp 2019-03-21 21:50:09.719296805 +0100
+++ b/resvg-qt/cpp/qt_capi.cpp 2020-09-01 01:23:19.594578727 +0200
@@ -1,6 +1,7 @@
#include <QGuiApplication>
#include <QImage>
#include <QPainter>
+#include <QPainterPath>
#include <QDebug>
#include "qt_capi.hpp"