void-packages/srcpkgs/marble5/patches/soversion.diff
Đoàn Trần Công Danh 765e304c4b srcpkgs/m*: 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
752 B
Diff

--- a/src/lib/astro/CMakeLists.txt 2018-01-10 08:43:24.000000000 +0100
+++ b/src/lib/astro/CMakeLists.txt 2018-02-10 15:08:03.545093856 +0100
@@ -6,7 +6,7 @@
)
set(ASTRO_LIB_VERSION "0.17.20")
-set(ASTRO_LIB_SOVERSION "1")
+set(ASTRO_LIB_SOVERSION "2")
ADD_DEFINITIONS(-O3)
--- a/src/lib/marble/declarative/CMakeLists.txt 2018-01-10 08:43:24.000000000 +0100
+++ b/src/lib/marble/declarative/CMakeLists.txt 2018-02-10 15:08:55.007096153 +0100
@@ -30,6 +30,10 @@
RouteRelationModel.cpp
)
+set_target_properties(marbledeclarative PROPERTIES
+ SOVERSION 2
+)
+
generate_export_header(marbledeclarative BASE_NAME marble_declarative)
target_include_directories(marbledeclarative PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)