void-packages/srcpkgs/LibreCAD/patches/QPainterPath.patch
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: convert patches to -Np1
```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
604 B
Diff

--- a/librecad/src/lib/engine/lc_splinepoints.h 2016-09-23 07:34:43.000000000 +0200
+++ b/librecad/src/lib/engine/lc_splinepoints.h 2020-10-26 19:40:13.317774271 +0100
@@ -27,6 +27,7 @@
#include <vector>
#include "rs_atomicentity.h"
+#include <QPainterPath>
class QPolygonF;
struct RS_LineTypePattern;
--- a/librecad/src/lib/gui/rs_painterqt.h 2016-09-23 07:34:43.000000000 +0200
+++ b/librecad/src/lib/gui/rs_painterqt.h 2020-10-26 19:43:13.804763513 +0100
@@ -29,6 +29,7 @@
#define RS_PAINTERQT_H
#include <QPainter>
+#include <QPainterPath>
#include "rs_painter.h"
#include "rs_pen.h"