void-packages/srcpkgs/brltty/patches/crosspython.patch
Đoàn Trần Công Danh c6ce65d3d0 srcpkgs/b*: 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

10 lines
539 B
Diff

diff -Naur brltty-5.5/Bindings/Python/Makefile.in brltty-5.5.new/Bindings/Python/Makefile.in
--- a/Bindings/Python/Makefile.in 2017-04-18 15:35:13.000000000 -0700
+++ b/Bindings/Python/Makefile.in 2017-04-23 17:36:27.797793633 -0700
@@ -1,3 +1,6 @@
+export LDFLAGS= @LDFLAGS@ @PYTHON_LIBS@
+export CFLAGS= @CFLAGS@ @PYTHON_CPPFLAGS@
+export LDSHARED= @CC@ -shared @LDFLAGS@
###############################################################################
# libbrlapi - A library providing access to braille terminals for applications.
#