commit:     fcb34f2ec721a0e2125d02b4b96e089b711cdd0d
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Tue Sep  2 15:54:08 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Tue Sep  2 19:17:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcb34f2e

media-gfx/flameshot: Drop IUSE wayland from 12.1.0

Source of many upstream reports, so Wayland users might as well go straight
to ~arch 13.1.0 instead. This will at least get rid of the KF5 dependency.

Bug: https://bugs.gentoo.org/954005
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 media-gfx/flameshot/flameshot-12.1.0-r3.ebuild | 54 ++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/media-gfx/flameshot/flameshot-12.1.0-r3.ebuild 
b/media-gfx/flameshot/flameshot-12.1.0-r3.ebuild
new file mode 100644
index 000000000000..2df5e2f8cd09
--- /dev/null
+++ b/media-gfx/flameshot/flameshot-12.1.0-r3.ebuild
@@ -0,0 +1,54 @@
+# Copyright 2021-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake flag-o-matic xdg
+
+DESCRIPTION="Powerful yet simple to use screenshot software"
+HOMEPAGE="https://flameshot.org https://github.com/flameshot-org/flameshot";
+SRC_URI="https://github.com/flameshot-org/flameshot/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="Apache-2.0 Free-Art-1.3 GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ~arm64 ~x86"
+IUSE=""
+
+DEPEND="
+       =dev-qt/qtsingleapplication-2.6*[qt5(+),X]
+       dev-qt/qtcore:5
+       dev-qt/qtdbus:5
+       dev-qt/qtgui:5
+       dev-qt/qtnetwork:5
+       dev-qt/qtsvg:5
+       dev-qt/qtwidgets:5
+       sys-apps/dbus
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       dev-qt/linguist-tools:5
+"
+
+src_prepare() {
+       rm -r external/singleapplication || die
+
+       cmake_src_prepare
+}
+
+src_configure() {
+       # -Werror=strict-aliasing
+       # https://bugs.gentoo.org/859613
+       # https://github.com/flameshot-org/flameshot/issues/3531
+       #
+       # Do not trust with LTO either
+       append-flags -fno-strict-aliasing
+       filter-lto
+
+       local mycmakeargs=(
+               -DUSE_EXTERNAL_SINGLEAPPLICATION=1
+               -DENABLE_CACHE=0
+               -DUSE_WAYLAND_CLIPBOARD=OFF
+       )
+
+       cmake_src_configure
+}

Reply via email to