void-packages/srcpkgs/astroid/patches/cross.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

28 lines
1.3 KiB
Diff

--- a/cmake/FindNotmuch.cmake 2019-12-07 15:36:42.495906856 +0700
+++ b/cmake/FindNotmuch.cmake 2019-12-07 15:37:24.330785115 +0700
@@ -68,24 +68,4 @@
check_symbol_exists (notmuch_database_index_file notmuch.h Notmuch_INDEX_FILE_API)
# GMime version notmuch was linked against
-include (GetPrerequisites)
-GET_PREREQUISITES(${Notmuch_LIBRARY} _notmuch_prerequisites 0 0 "" "")
-set (Notmuch_GMIME_VERSION "unknown")
-if (_notmuch_prerequisites)
- foreach (_nm_prereq ${_notmuch_prerequisites})
- if (_nm_prereq MATCHES
- "^(.*/)?${CMAKE_SHARED_LIBRARY_PREFIX}gmime[-\\.]([0-9]+\\.[0-9]+)(\\${CMAKE_SHARED_LIBRARY_SUFFIX})?(\\.[0-9]+)(\\${CMAKE_SHARED_LIBRARY_SUFFIX})?$"
- )
- set (Notmuch_GMIME_VERSION "${CMAKE_MATCH_2}${CMAKE_MATCH_4}")
- message (STATUS "Notmuch was built against GMime ${Notmuch_GMIME_VERSION}")
- endif ()
- endforeach (_nm_prereq)
-else()
- message(WARNING "[ FindNotmuch.cmake:${CMAKE_CURRENT_LIST_LINE} ] "
- "Failed to determine libnotmuch prerequisites, please report this as a bug.")
-endif()
-unset (_notmuch_prerequisites)
-if (Notmuch_GMIME_VERSION EQUAL "unknown")
- message(WARNING "[ FindNotmuch.cmake:${CMAKE_CURRENT_LIST_LINE} ] "
- "Failed to determine needed libgmime version number, please report this as a bug.")
-endif ()
+set(Notmuch_GMIME_VERSION "3.0.0")