diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2024-05-18 22:51:13 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2024-05-20 13:29:30 +0200 |
commit | cc9492ed79a78a7e16fb0e225f72679af8b3324d (patch) | |
tree | 5e978761532b15dac5137b1543e55e7ba23696c6 /kde-apps/libksane | |
parent | profiles: amd64/x32: Update package.mask w/ dev-qt/webengine:6 revdeps (diff) | |
download | gentoo-cc9492ed79a78a7e16fb0e225f72679af8b3324d.tar.gz gentoo-cc9492ed79a78a7e16fb0e225f72679af8b3324d.tar.bz2 gentoo-cc9492ed79a78a7e16fb0e225f72679af8b3324d.zip |
kde-apps/libksane: Add IUSE kf6compat
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'kde-apps/libksane')
-rw-r--r-- | kde-apps/libksane/libksane-24.02.2-r1.ebuild | 47 | ||||
-rw-r--r-- | kde-apps/libksane/metadata.xml | 1 |
2 files changed, 48 insertions, 0 deletions
diff --git a/kde-apps/libksane/libksane-24.02.2-r1.ebuild b/kde-apps/libksane/libksane-24.02.2-r1.ebuild new file mode 100644 index 000000000000..66244af7b3bd --- /dev/null +++ b/kde-apps/libksane/libksane-24.02.2-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +KFMIN=5.115.0 +QTMIN=5.15.12 +inherit ecm gear.kde.org + +DESCRIPTION="SANE Library interface based on KDE Frameworks" + +LICENSE="|| ( LGPL-2.1 LGPL-3 )" +SLOT="5" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +IUSE="kf6compat kwallet" + +DEPEND=" + >=dev-qt/qtgui-${QTMIN}:5 + >=dev-qt/qtwidgets-${QTMIN}:5 + >=kde-frameworks/ki18n-${KFMIN}:5 + >=kde-frameworks/ktextwidgets-${KFMIN}:5 + >=kde-frameworks/kwidgetsaddons-${KFMIN}:5 + >=media-libs/ksanecore-23.08.5:5 + kwallet? ( >=kde-frameworks/kwallet-${KFMIN}:5 ) +" +RDEPEND="${DEPEND} + kf6compat? ( kde-apps/libksane:6 ) +" + +PATCHES=( "${FILESDIR}/${PN}-24.02.0-ksanecore-23.08.patch" ) + +src_configure() { + local mycmakeargs=( + $(cmake_use_find_package kwallet KF5Wallet) + ) + ecm_src_configure +} + +src_install() { + ecm_src_install + + if use kf6compat; then + rm -r "${D}"/usr/share/icons/hicolor/16x16/actions \ + "${D}"/usr/share/locale \ + || die + fi +} diff --git a/kde-apps/libksane/metadata.xml b/kde-apps/libksane/metadata.xml index e6972bed36aa..b409ddecba2e 100644 --- a/kde-apps/libksane/metadata.xml +++ b/kde-apps/libksane/metadata.xml @@ -10,5 +10,6 @@ </upstream> <use> <flag name="kwallet">Enable encrypted storage of passwords with <pkg>kde-frameworks/kwallet</pkg></flag> + <flag name="kf6compat">Disable components colliding with KF6, depend on KF6 components instead</flag> </use> </pkgmetadata> |