void-packages/srcpkgs/ppsspp/patches/unittest.patch
Đoàn Trần Công Danh 49cb564d14 srcpkgs/p*: 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
700 B
Diff

--- a/unittest/TestVertexJit.cpp 2021-03-09 23:26:11.430146058 +0100
+++ b/unittest/TestVertexJit.cpp 2021-03-09 23:26:11.430146058 +0100
@@ -15,6 +15,7 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
+#include <math.h>
#include "Common/Common.h"
#include "Common/TimeUtil.h"
#include "Core/Config.h"
--- a/CMakeLists.txt 2021-03-02 21:50:51.000000000 +0100
+++ b/CMakeLists.txt 2021-03-02 21:50:51.000000000 +0100
@@ -2100,6 +2100,7 @@
if(UNITTEST)
add_executable(unitTest
+ unittest/TestShaderGenerators.cpp
unittest/UnitTest.cpp
unittest/TestArmEmitter.cpp
unittest/TestArm64Emitter.cpp