mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Done via: ``` git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@' ``` Signed-off-by: Michał Górny <mgorny@gentoo.org>
35 lines
706 B
Bash
35 lines
706 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
QTMIN=5.15.9
|
|
inherit ecm frameworks.kde.org
|
|
|
|
DESCRIPTION="Framework for reading, creation, and manipulation of various archive formats"
|
|
|
|
LICENSE="GPL-2 LGPL-2.1"
|
|
KEYWORDS="amd64 ~arm arm64 ~loong ppc64 ~riscv ~x86"
|
|
IUSE="+zstd"
|
|
|
|
DEPEND="
|
|
app-arch/bzip2
|
|
app-arch/xz-utils
|
|
virtual/zlib:=
|
|
zstd? ( app-arch/zstd:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
>=dev-qt/linguist-tools-${QTMIN}:5
|
|
zstd? ( virtual/pkgconfig )
|
|
"
|
|
|
|
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
|
|
}
|