commit:     3faed531dcbc1786e56d64f397ef9ee7cd9b60aa
Author:     Alfred Wingate <parona <AT> protonmail <DOT> com>
AuthorDate: Tue Feb 17 00:08:36 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Feb 17 07:25:48 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3faed531

media-gfx/flameshot: add 13.3.0

* Unbundle Qt-Color-Widgets
* Hookup Imgur support
* := for kdsingleapplication

Bug: https://bugs.gentoo.org/969387
Bug: https://bugs.gentoo.org/967314
Signed-off-by: Alfred Wingate <parona <AT> protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/45830
Closes: https://github.com/gentoo/gentoo/pull/45830
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/flameshot/Manifest                |  1 +
 media-gfx/flameshot/flameshot-13.3.0.ebuild | 55 +++++++++++++++++++++++++++++
 media-gfx/flameshot/metadata.xml            |  3 ++
 3 files changed, 59 insertions(+)

diff --git a/media-gfx/flameshot/Manifest b/media-gfx/flameshot/Manifest
index c9f70f001289..da33715fabee 100644
--- a/media-gfx/flameshot/Manifest
+++ b/media-gfx/flameshot/Manifest
@@ -1,2 +1,3 @@
 DIST flameshot-13.1.0.tar.gz 16028319 BLAKE2B 
8d17073c1dde9bbf5703c71f9004360059b716f5311d3f3f64b13bc9089929c46c01fb2901e94e5fb5bc64a6490ce9c9fdece5e69df2fd5fd339faac0c9d7ccd
 SHA512 
d91c01c82e89c17a5c913fc90521867029f68985bd83883f904c1be8b4ffd548302954d6d36bce322f292419cf1434e597e8e23618eb0769b28cc48a267ce231
+DIST flameshot-13.3.0.tar.gz 16081429 BLAKE2B 
2d601ff90be4c385c127d2df93fc66aa210f008fac276127488bb6e07bd05996375e39a1e832212bfcc37ff7c356c1066a04398f33c276f6d6ab441cab041fe7
 SHA512 
0f991b58e6e828aceb94d1e7eb4e1b5d946d94ad6434ee5324b1177ec3d235298887b767c6c671124ea82d56e24a05909a21cf13a29777bbcd2358f14a7f2362
 DIST flameshot-qtcolorwidgets-84910784.tar.bz2 209064 BLAKE2B 
b83bd685ac0a90e690dc3388147604b9499c73d29c5eec27418f6ff5959e20fbfbb1a4b3d6bcc83f9da5d79e6479ef49d02b43054e3bed0fbcc3365afe56d0d1
 SHA512 
57d838cc021dc09fff2605b5f7a1ea9181c98b4a28ad093d09ab220241af784a42c6c12daa2ed3cf2272e637572f5801fa9ad38c5c8a36bbd9fc9e71b2ef0c12

diff --git a/media-gfx/flameshot/flameshot-13.3.0.ebuild 
b/media-gfx/flameshot/flameshot-13.3.0.ebuild
new file mode 100644
index 000000000000..72a67481dc6c
--- /dev/null
+++ b/media-gfx/flameshot/flameshot-13.3.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2021-2026 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/refs/tags/v${PV}.tar.gz
+               -> ${P}.tar.gz
+"
+
+LICENSE="Apache-2.0 Free-Art-1.3 GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="imgur wayland"
+
+DEPEND="
+       dev-libs/kdsingleapplication:=
+       dev-qt/qtbase:6[dbus,gui,network,widgets]
+       dev-qt/qtsvg:6
+       gui-libs/qt-color-widgets:=
+       sys-apps/dbus
+       wayland? ( kde-frameworks/kguiaddons:6 )
+"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       dev-qt/qttools:6[linguist]
+"
+
+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=(
+               -DCMAKE_DISABLE_FIND_PACKAGE_Git=ON
+               -DDISABLE_UPDATE_CHECKER=ON
+               -DENABLE_CACHE=0
+               -DENABLE_IMGUR=$(usex imgur)
+               -DFETCHCONTENT_TRY_FIND_PACKAGE_MODE=ALWAYS
+               -DUSE_BUNDLED_KDSINGLEAPPLICATION=OFF
+               -DUSE_KDSINGLEAPPLICATION=ON
+               -DUSE_WAYLAND_CLIPBOARD=$(usex wayland)
+
+       )
+
+       cmake_src_configure
+}

diff --git a/media-gfx/flameshot/metadata.xml b/media-gfx/flameshot/metadata.xml
index d52ef8aac3ff..18d96778e20b 100644
--- a/media-gfx/flameshot/metadata.xml
+++ b/media-gfx/flameshot/metadata.xml
@@ -9,6 +9,9 @@
                <email>[email protected]</email>
                <name>Proxy Maintainers</name>
        </maintainer>
+       <use>
+               <flag name="imgur">Enable Imgur uploader</flag>
+       </use>
        <upstream>
                <remote-id type="github">flameshot-org/flameshot</remote-id>
        </upstream>

Reply via email to