void-packages/srcpkgs/qtfm/patches/QPainterPath.patch
Đoàn Trần Công Danh 635e9da391 srcpkgs/q*: convert patches to -Np1
* par 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
574 B
Diff

--- a/libfm/iconlist.h 2019-06-04 07:47:00.000000000 +0200
+++ b/libfm/iconlist.h 2020-08-31 18:50:21.401362347 +0200
@@ -9,6 +9,7 @@
#include <QStyledItemDelegate>
#include <QModelIndex>
#include <QPainter>
+#include <QPainterPath>
class IconListDelegate : public QItemDelegate
{
--- a/libfm/iconview.h 2019-06-04 07:47:00.000000000 +0200
+++ b/libfm/iconview.h 2020-08-31 18:50:30.723362828 +0200
@@ -11,6 +11,7 @@
#include <QKeyEvent>
#include <QModelIndex>
#include <QPainter>
+#include <QPainterPath>
class IconViewDelegate : public QStyledItemDelegate
{