Đ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

26 lines
678 B
Diff

The d2to1 package is defunct and not offered by Void; roughly equivalent
functionality is provided by setuptools_scm, which is provided by Void. Drop
the special d2to1 setup call to allow setuptools_scm to work properly.
--- a/setup.py 2021-01-28 10:00:20.165871918 -0500
+++ b/setup.py 2021-01-28 10:01:07.760817952 -0500
@@ -58,17 +58,4 @@
## Normal d2to1 setup
##
-setup(
- setup_requires=['d2to1'],
- extras_require={
- 'Mustache': ["pystache", ],
- 'Mako': ["mako", ],
- 'test': [
- "nose",
- "minimock",
- "mako",
- "pystache",
- ],
- },
- d2to1=True
-)
+setup(use_scm_version=True)