From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1707081-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id DC81715813A
	for <garchives@archives.gentoo.org>; Tue, 07 Jan 2025 22:34:24 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B6DB3E07D8;
	Tue, 07 Jan 2025 22:34:23 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 97DBEE07D8
	for <gentoo-commits@lists.gentoo.org>; Tue, 07 Jan 2025 22:34:23 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id A2790341540
	for <gentoo-commits@lists.gentoo.org>; Tue, 07 Jan 2025 22:34:22 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 072811D4D
	for <gentoo-commits@lists.gentoo.org>; Tue, 07 Jan 2025 22:34:21 +0000 (UTC)
From: "Andreas Sturmlechner" <asturm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" <asturm@gentoo.org>
Message-ID: <1736289239.2e2baf719eb1210bcf208659875ff4142a1f02c1.asturm@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/photoqt/
X-VCS-Repository: repo/gentoo
X-VCS-Files: media-gfx/photoqt/metadata.xml media-gfx/photoqt/photoqt-4.7.ebuild
X-VCS-Directories: media-gfx/photoqt/
X-VCS-Committer: asturm
X-VCS-Committer-Name: Andreas Sturmlechner
X-VCS-Revision: 2e2baf719eb1210bcf208659875ff4142a1f02c1
X-VCS-Branch: master
Date: Tue, 07 Jan 2025 22:34:21 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 95076aa4-a6a3-45e1-8afb-09f3c7d49fa4
X-Archives-Hash: 4be0c8a338105e447319db13c5259240

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
 }