# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

KFMIN=6.31.0
QTMIN=6.11.2
inherit ecm gear.kde.org

DESCRIPTION="Digital camera raw image library wrapper"

LICENSE="GPL-2+"
SLOT="6"
KEYWORDS=""
IUSE=""

DEPEND="
	>=dev-qt/qtbase-${QTMIN}:6[gui]
	>=media-libs/libraw-0.16:=
"
RDEPEND="${DEPEND}"

src_prepare() {
	# TODO: Avoid automagic qttools[qdoc] dep
	sed -i -e '/include(ECMGenerateQDoc)/d' CMakeLists.txt || die
	sed -i -e '/ecm_generate_qdoc/d' src/CMakeLists.txt || die

	ecm_src_prepare
}