void-packages/srcpkgs/Gauche/patches/src-makefile.patch
Đoàn Trần Công Danh ec4c2d75fa srcpkgs/[A-Z]*: 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

19 lines
629 B
Diff

--- a/src/Makefile.in 2019-12-13 22:50:49.000000000 +0100
+++ b/src/Makefile-patched.in 2020-04-30 22:47:55.667135591 +0200
@@ -59,6 +59,7 @@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
BUILD_GOSH_FLAGS =
+GOSH = @GOSH@
# These are set by configure
DEFS = @DEFS@
@@ -526,7 +527,7 @@
"$(DESTDIR)$(SITE_SCM_DIR)" \
"$(DESTDIR)$(SITE_ARCH_DIR)"
@CROSS_COMPILING_no@GAUCHE_INSTALL = ./gosh -ftest $(srcdir)/gauche-install.in
-@CROSS_COMPILING_yes@GAUCHE_INSTALL = gosh $(srcdir)/gauche-install.in
+@CROSS_COMPILING_yes@GAUCHE_INSTALL = $(GOSH) $(srcdir)/gauche-install.in
install : install-core