Сравнение quazip-1.2 с quazip-1.3-r2

/usr/portage/dev-libs/quazip/quazip-1.3-r2.ebuild 2023-10-09 14:52:29.756368357 +0300
3 3

  
4 4
EAPI=8
5 5

  
6
inherit cmake
6
inherit cmake multibuild
7 7

  
8 8
DESCRIPTION="Simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package"
9 9
HOMEPAGE="https://stachenov.github.io/quazip/"
10 10
SRC_URI="https://github.com/stachenov/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11 11

  
12 12
LICENSE="LGPL-2.1-with-linking-exception"
13
SLOT="0/1"
13
# SONAME of libquazip1-qt5.so, check QUAZIP_LIB_SOVERSION in CMakeLists.txt
14
SLOT="0/1.3"
14 15
KEYWORDS="amd64 ~arm ~arm64 ~hppa ppc ppc64 ~riscv x86 ~amd64-linux ~x86-linux"
15
IUSE="test"
16
IUSE="+qt5 qt6 test"
17
REQUIRED_USE="|| ( qt5 qt6 )"
16 18

  
17 19
RESTRICT="!test? ( test )"
18 20

  
19 21
COMMON_DEPEND="
20
	dev-qt/qtcore:5
22
	qt5? ( dev-qt/qtcore:5 )
23
	qt6? ( dev-qt/qtbase:6 )
21 24
	sys-libs/zlib[minizip]
22 25
"
23 26
DEPEND="${COMMON_DEPEND}
24 27
	test? (
25
		dev-qt/qtnetwork:5
26
		dev-qt/qttest:5
28
		qt5? (
29
			dev-qt/qtnetwork:5
30
			dev-qt/qttest:5
31
		)
32
		qt6? (
33
			dev-qt/qtbase:6[gui,network]
34
			dev-qt/qt5compat:6
35
		)
27 36
	)
28 37
"
29 38
RDEPEND="${COMMON_DEPEND}
......
32 41

  
33 42
PATCHES=( "${FILESDIR}/${P}-cmake.patch" )
34 43

  
44
pkg_setup() {
45
	MULTIBUILD_VARIANTS=( $(usev qt5) $(usev qt6) )
46
}
47

  
35 48
src_configure() {
36
	local mycmakeargs=(
37
		-DQUAZIP_QT_MAJOR_VERSION=5
38
		-DBUILD_TESTING=$(usex test)
39
	)
49
	my_src_configure() {
50
		local mycmakeargs=(
51
			-DBUILD_TESTING=$(usex test)
52
		)
53
		if [[ ${MULTIBUILD_VARIANT} = qt5 ]]; then
54
			mycmakeargs+=(
55
				-DQUAZIP_QT_MAJOR_VERSION=5
56
			)
57
		elif [[ ${MULTIBUILD_VARIANT} = qt6 ]]; then
58
			mycmakeargs+=(
59
				-DQUAZIP_QT_MAJOR_VERSION=6
60
			)
61
		fi
62
		cmake_src_configure
63
	}
40 64

  
41
	cmake_src_configure
65
	multibuild_foreach_variant my_src_configure
42 66
}
43 67

  
44 68
src_compile() {
45
	cmake_src_compile
69
	my_src_compile() {
70
		cmake_src_compile
71
		use test && cmake_build qztest
72
	}
73

  
74
	multibuild_foreach_variant my_src_compile
75
}
76

  
77
src_test() {
78
	multibuild_foreach_variant cmake_src_test
79
}
46 80

  
47
	use test && cmake_build qztest
81
src_install() {
82
	multibuild_foreach_variant cmake_src_install
48 83
}
Спасибо!