blob: 670348fdf93fcecdbd5eef177db4743fb9a8bf54 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
QTMIN=6.10.1
inherit ecm frameworks.kde.org
DESCRIPTION="Framework for reading, creation, and manipulation of various archive formats"
LICENSE="GPL-2 LGPL-2.1"
KEYWORDS="amd64 arm64 ~loong ppc64 ~riscv ~x86"
IUSE="crypt +zstd"
DEPEND="
app-arch/bzip2
app-arch/xz-utils
virtual/zlib:=
crypt? ( dev-libs/openssl:= )
zstd? ( app-arch/zstd:= )
"
RDEPEND="${DEPEND}"
BDEPEND="
>=dev-qt/qttools-${QTMIN}:6[linguist]
zstd? ( virtual/pkgconfig )
"
CMAKE_SKIP_TESTS=(
karchivetest # bug 948899
kfiltertest # bug 978879
)
src_prepare() {
ecm_src_prepare
# TODO: try to get a build switch upstreamed
if ! use zstd; then
sed -e "s/^pkg_check_modules.*LibZstd/#&/" -i CMakeLists.txt || die
fi
}
src_configure() {
local mycmakeargs=(
-DWITH_OPENSSL=$(usex crypt)
-DWITH_LIBZSTD=$(usex zstd)
)
ecm_src_configure
}
|