commit:     2e2baf719eb1210bcf208659875ff4142a1f02c1
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Jan  7 22:14:29 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Jan  7 22:33:59 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e2baf71

media-gfx/photoqt: Switch from ecm to cmake and xdg.eclass

Slightly improve IUSE vips description

See also: https://github.com/gentoo/gentoo/pull/40000
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/photoqt/metadata.xml       |  2 +-
 media-gfx/photoqt/photoqt-4.7.ebuild | 18 +++++++-----------
 2 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/media-gfx/photoqt/metadata.xml b/media-gfx/photoqt/metadata.xml
index bbb50e225e0a..3916fd4661ae 100644
--- a/media-gfx/photoqt/metadata.xml
+++ b/media-gfx/photoqt/metadata.xml
@@ -8,7 +8,7 @@
                <flag name="devil">Support additional image formats using 
<pkg>media-libs/devil</pkg></flag>
                <flag name="freeimage">Support additional image formats using 
<pkg>media-libs/freeimage</pkg></flag>
                <flag name="mpv">Support for video files using 
<pkg>media-video/mpv</pkg></flag>
-               <flag name="vips">Use <pkg>media-libs/vips</pkg></flag>
+               <flag name="vips">Support for <pkg>media-libs/vips</pkg> image 
processing library</flag>
        </use>
        <upstream>
                <remote-id type="gitlab">lspies/photoqt</remote-id>

diff --git a/media-gfx/photoqt/photoqt-4.7.ebuild 
b/media-gfx/photoqt/photoqt-4.7.ebuild
index 3b4f4b7f0d8c..6ece1a484215 100644
--- a/media-gfx/photoqt/photoqt-4.7.ebuild
+++ b/media-gfx/photoqt/photoqt-4.7.ebuild
@@ -4,10 +4,7 @@
 EAPI=8
 
 PYTHON_COMPAT=( python3_{10..12} )
-
-ECM_KDEINSTALLDIRS=false
-KFMIN=6.5.0
-inherit ecm optfeature python-single-r1 toolchain-funcs
+inherit cmake optfeature python-single-r1 toolchain-funcs xdg
 
 DESCRIPTION="Simple but powerful Qt-based image viewer"
 HOMEPAGE="https://photoqt.org/";
@@ -48,19 +45,18 @@ COMMON_DEPEND="
                media-libs/vips:=
        )
 "
-RDEPEND="
-       ${COMMON_DEPEND}
+RDEPEND="${COMMON_DEPEND}
        geolocation? (
                dev-qt/qtlocation:6
                dev-qt/qtpositioning:6[qml]
        )
 "
-DEPEND="
-       ${COMMON_DEPEND}
+DEPEND="${COMMON_DEPEND}
        vips? ( x11-base/xorg-proto )
 "
 BDEPEND="
        dev-qt/qttools:6[linguist]
+       >=kde-frameworks/extra-cmake-modules-6.5.0:*
        virtual/pkgconfig
        chromecast? ( ${PYTHON_DEPS} )
 "
@@ -94,10 +90,10 @@ src_configure() {
                )
        fi
 
-       ecm_src_configure
+       cmake_src_configure
 }
 
 pkg_postinst() {
-       optfeature "additional image formats like AVIF, EPS, HEIF/HEIC, PSD, 
etc." kde-frameworks/kimageformats
-       ecm_pkg_postinst
+       optfeature "additional image formats like AVIF, EPS, HEIF/HEIC, PSD, 
etc." "kde-frameworks/kimageformats:6"
+       xdg_pkg_postinst
 }

Reply via email to