summaryrefslogtreecommitdiff
path: root/kde-apps/gwenview
diff options
context:
space:
mode:
Diffstat (limited to 'kde-apps/gwenview')
-rw-r--r--kde-apps/gwenview/Manifest4
-rw-r--r--kde-apps/gwenview/gwenview-22.08.0.ebuild102
-rw-r--r--kde-apps/gwenview/metadata.xml4
3 files changed, 107 insertions, 3 deletions
diff --git a/kde-apps/gwenview/Manifest b/kde-apps/gwenview/Manifest
index a2d1f09aa634..0764fe76dcd0 100644
--- a/kde-apps/gwenview/Manifest
+++ b/kde-apps/gwenview/Manifest
@@ -1,3 +1,5 @@
DIST gwenview-22.04.3.tar.xz 6821928 BLAKE2B cabf701b4ea43bd85b2babe4b982b6757d1302d9c01ac7cef951827b7953a359564d679f5be8cb792fe1d915cd32a2b2092d33dea0c463aa459761252022a920 SHA512 8b7460eee6d2c47ab08978db0cee56b2c7cf5933c85b6d077cd11781f105e5d3dca0e97a3cca9af097074e64ed5b9f396f7699d91c599eee57d04c53191372c7
+DIST gwenview-22.08.0.tar.xz 6824968 BLAKE2B df4fffec7f41ac0be7c738250e63f40a26282dc06e1365655f3e9a360b54467bd2645add62c72b29be95ed3afda9b42f8bdd326271a43fe07e7b79ed95c05dd6 SHA512 76e2afbacc2c80e89e951ad26a9422144c78b32a96bb1c782f659e80bec7b8e35a21af94ef1c68d9cfefb968fc99f3cb916e7a6ec98a67cd3907ca88d4a111d4
EBUILD gwenview-22.04.3.ebuild 2737 BLAKE2B c88c9c2e46ef68b4577de7c6c7e630d12d4e43c65b4a922a87e12c7c0ee56f5a12415ce1497bf270156a29b8b9e72a83ee7106674ac2e8bfe001aba11defc91c SHA512 7658d247df12126d343c7cc9d2a58486bd13f4f0b5089241c75108e71ce2c9c17e611c17b55ad943ae0c1115511f2373713b6f5d60d55edeb836cb538e7efb6b
-MISC metadata.xml 700 BLAKE2B 5c967852b62ff115db45ccff8b1a06924d766b8138f88bad1ffbc46151a2310c4d873367ba38da70acdf0c439ff7915e67630867457e0a4d9cf4cf4094e79a44 SHA512 7545b0230a9cd565aa17e7ea333b63af2ffaa2023a7ef5f8fb26994898d43ff0e837d2aba0bb4c5c3d50c210886d4196c63599b958bb82a83c92d91693173cdd
+EBUILD gwenview-22.08.0.ebuild 2853 BLAKE2B 47cfd668588e58ee7995f809cf96ffbd608a6eeb98ee9be60839eba1fbdd6524569d5dc5c705caad66e43b6ed44ebce432af820e0648933e46f6e73bbfaafcde SHA512 a5fd1bc19a302a90dc5b7bf08a74626892210cea398a469dc714d0adc4549615fe8fbfab444bb885418f50520474ad68d53cd4263e97557753c58ada4bb5ce6d
+MISC metadata.xml 809 BLAKE2B ba62cc626a95683ed966d167d7dcaa45abf7fd679785844b23e84905170489afb1ae62a3312d378a92f6e22ff5a1faa14e519c8f4fedf88dd98cdc42349af9cf SHA512 312c02cfb98db48be1b5762217768ea89427e511a07b5f84ee0567004c6f32ce19a06945fe7ef48027b4ac8cbbd33eceb87c54e553bcd5201d032ffea6670a35
diff --git a/kde-apps/gwenview/gwenview-22.08.0.ebuild b/kde-apps/gwenview/gwenview-22.08.0.ebuild
new file mode 100644
index 000000000000..bca7878f9036
--- /dev/null
+++ b/kde-apps/gwenview/gwenview-22.08.0.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ECM_HANDBOOK="optional"
+ECM_TEST="true"
+PVCUT=$(ver_cut 1-3)
+KFMIN=5.96.0
+QTMIN=5.15.5
+inherit ecm gear.kde.org optfeature
+
+DESCRIPTION="Image viewer by KDE"
+HOMEPAGE="https://apps.kde.org/gwenview/ https://userbase.kde.org/Gwenview"
+
+LICENSE="GPL-2+ handbook? ( FDL-1.2 )"
+SLOT="5"
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+IUSE="activities +annotate fits +mpris raw semantic-desktop share X"
+
+# requires running environment
+RESTRICT="test"
+
+COMMON_DEPEND="
+ >=dev-qt/qtgui-${QTMIN}:5
+ >=dev-qt/qtprintsupport-${QTMIN}:5
+ >=dev-qt/qtsvg-${QTMIN}:5
+ >=dev-qt/qtwidgets-${QTMIN}:5
+ >=kde-frameworks/kcompletion-${KFMIN}:5
+ >=kde-frameworks/kconfig-${KFMIN}:5
+ >=kde-frameworks/kconfigwidgets-${KFMIN}:5
+ >=kde-frameworks/kcoreaddons-${KFMIN}:5
+ >=kde-frameworks/kguiaddons-${KFMIN}:5
+ >=kde-frameworks/ki18n-${KFMIN}:5
+ >=kde-frameworks/kiconthemes-${KFMIN}:5
+ >=kde-frameworks/kio-${KFMIN}:5
+ >=kde-frameworks/kitemmodels-${KFMIN}:5
+ >=kde-frameworks/kitemviews-${KFMIN}:5
+ >=kde-frameworks/kjobwidgets-${KFMIN}:5
+ >=kde-frameworks/knotifications-${KFMIN}:5
+ >=kde-frameworks/kparts-${KFMIN}:5
+ >=kde-frameworks/kservice-${KFMIN}:5
+ >=kde-frameworks/kwidgetsaddons-${KFMIN}:5
+ >=kde-frameworks/kxmlgui-${KFMIN}:5
+ >=kde-frameworks/solid-${KFMIN}:5
+ media-gfx/exiv2:=
+ media-libs/lcms:2
+ media-libs/libjpeg-turbo:=
+ media-libs/libpng:0=
+ >=media-libs/phonon-4.11.0
+ media-libs/tiff
+ activities? ( >=kde-frameworks/kactivities-${KFMIN}:5 )
+ annotate? ( >=media-libs/kimageannotator-0.5.0 )
+ fits? ( sci-libs/cfitsio )
+ mpris? ( >=dev-qt/qtdbus-${QTMIN}:5 )
+ raw? ( >=kde-apps/libkdcraw-${PVCUT}:5 )
+ semantic-desktop? (
+ >=kde-frameworks/baloo-${KFMIN}:5
+ >=kde-frameworks/kfilemetadata-${KFMIN}:5
+ )
+ share? ( >=kde-frameworks/purpose-${KFMIN}:5 )
+ X? (
+ >=dev-qt/qtx11extras-${QTMIN}:5
+ x11-libs/libX11
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ >=dev-qt/qtconcurrent-${QTMIN}:5
+ >=kde-frameworks/kwindowsystem-${KFMIN}:5
+"
+RDEPEND="${COMMON_DEPEND}
+ >=dev-qt/qtimageformats-${QTMIN}:5
+ >=kde-frameworks/kimageformats-${KFMIN}:5
+"
+
+src_prepare() {
+ ecm_src_prepare
+ if ! use mpris; then
+ # FIXME: upstream a better solution
+ sed -e "/set(HAVE_QTDBUS/s/\${Qt5DBus_FOUND}/0/" -i CMakeLists.txt || die
+ fi
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake_use_find_package activities KF5Activities)
+ $(cmake_use_find_package annotate kImageAnnotator)
+ $(cmake_use_find_package fits CFitsio)
+ $(cmake_use_find_package raw KF5KDcraw)
+ -DGWENVIEW_SEMANTICINFO_BACKEND=$(usex semantic-desktop Baloo None)
+ $(cmake_use_find_package share KF5Purpose)
+ $(cmake_use_find_package X X11)
+ )
+ ecm_src_configure
+}
+
+pkg_postinst() {
+ if [[ -z "${REPLACING_VERSIONS}" ]]; then
+ optfeature "SVG support" kde-apps/svgpart:${SLOT}
+ fi
+ ecm_pkg_postinst
+}
diff --git a/kde-apps/gwenview/metadata.xml b/kde-apps/gwenview/metadata.xml
index 6e80e390db19..b0e63c7843d5 100644
--- a/kde-apps/gwenview/metadata.xml
+++ b/kde-apps/gwenview/metadata.xml
@@ -10,9 +10,9 @@
</upstream>
<use>
<flag name="activities">Enable kactivities support</flag>
+ <flag name="annotate">Enable support for image annotations using <pkg>media-libs/kimageannotator</pkg></flag>
<flag name="fits">Enable support for NASA's <pkg>sci-libs/cfitsio</pkg> library</flag>
- <flag name="mpris">Enable support for MPRIS2 interface, requiring <pkg>dev-qt/qtdbus</pkg> as dependency.
- </flag>
+ <flag name="mpris">Enable support for MPRIS2 interface, requiring <pkg>dev-qt/qtdbus</pkg> as dependency.</flag>
<flag name="share">Enable support for a share menu using <pkg>kde-frameworks/purpose</pkg></flag>
</use>
</pkgmetadata>