void-packages/srcpkgs/lumina/patches/mandir.patch
Đoàn Trần Công Danh 861ac185a6 srcpkgs/l*: 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

11 lines
602 B
Diff

--- a/src-qt5/OS-detect.pri 2017-07-05 20:02:49.727200592 +0200
+++ b/src-qt5/OS-detect.pri 2017-07-05 20:03:10.463911159 +0200
@@ -94,7 +94,7 @@
isEmpty(L_SHAREDIR){ L_SHAREDIR = $${PREFIX}/share }
isEmpty(L_INCLUDEDIR){ L_INCLUDEDIR = $${PREFIX}/include }
isEmpty(L_SESSDIR){ L_SESSDIR = $${L_SHAREDIR}/xsessions }
- isEmpty(L_MANDIR){ L_MANDIR = $${PREFIX}/man }
+ isEmpty(L_MANDIR){ L_MANDIR = $${PREFIX}/share/man }
isEmpty(LRELEASE){ LRELEASE = $$[QT_INSTALL_BINS]/lrelease }
isEmpty(MAN_ZIP){ MAN_ZIP = "gzip -c" }
!exists(LRELEASE){ NO_I18N=true } #translations unavailable