void-packages/srcpkgs/colord/patches/use-host-utils.patch
Đoàn Trần Công Danh c987560802 srcpkgs/c*: 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

24 lines
583 B
Diff

--- a/data/cmf/meson.build
+++ b/data/cmf/meson.build
@@ -1,3 +1,7 @@
+if meson.is_cross_build()
+ cd_idt8 = find_program('cd-it8')
+endif
+
foreach arg: [ 'CIE1964-10deg-XYZ', 'CIE1931-2deg-XYZ' ]
custom_target(arg,
input: arg + '.csv',
--- a/data/profiles/meson.build
+++ b/data/profiles/meson.build
@@ -47,6 +47,10 @@ if get_option('print_profiles')
icc_profiles += icc_print_profiles
endif
+if meson.is_cross_build()
+ cd_create_profile = find_program('cd-create-profile')
+endif
+
generated_iccs = []
foreach arg: icc_profiles
xml_i18n = i18n.merge_file(