void-packages/srcpkgs/aubio/patches/disable-tests.patch
Đoàn Trần Công Danh ae69000001 srcpkgs/a*: convert patches to -Np1
* arduino and antiword 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

16 lines
411 B
Diff

breaks cross-compilation
diff --git a/wscript b/wscript
index c08298c..1443ae2 100644
--- a/wscript
+++ b/wscript
@@ -494,8 +494,6 @@ def build(bld):
bld.options.testcmd = 'node %s'
if bld.options.enable_examples:
bld.recurse('examples')
- if bld.options.enable_tests:
- bld.recurse('tests')
# pkg-config template
bld( source = 'aubio.pc.in' )