summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'kde-apps/gwenview')
-rw-r--r--kde-apps/gwenview/Manifest1
-rw-r--r--kde-apps/gwenview/gwenview-18.08.2.ebuild111
2 files changed, 112 insertions, 0 deletions
diff --git a/kde-apps/gwenview/Manifest b/kde-apps/gwenview/Manifest
index 2ceca33bba12..94ed6c6a9265 100644
--- a/kde-apps/gwenview/Manifest
+++ b/kde-apps/gwenview/Manifest
@@ -1,2 +1,3 @@
DIST gwenview-18.04.3.tar.xz 6055876 BLAKE2B 5202dcfe597ad1da7d5b18124ec357239a26a30c20d83c37bc7258e0ad4232b53081a8e050017850ea6eeb02fe0d88f90b90b0029e364929375d3e09dc8bf7fd SHA512 a1c36a05e4ae3ee9aff74f4a56eb10c2c27aa89e10886d14dd6753e42329653550e8716965156ec5f50915e320224757bf52d1178986ef10d039e3c622c01a7f
DIST gwenview-18.08.1.tar.xz 6177620 BLAKE2B fc88c4798b931c187413ff8d61fecc537b02412eb42a16a95b0e1f181566475688c7ad6f5733a97d93f6e281fa6d0cd872548a4621275d2021e1e390d4a3dd3e SHA512 6fb57a1c872198fd8c7afdfc1df49be7b01a086d2e890479ded3ac0e0fe48748055c30e2678a9e7ad0141c5b7435db01aa03f8d4f11193a65eff42960474a732
+DIST gwenview-18.08.2.tar.xz 6177924 BLAKE2B 1cded647250edeae58cc2b51031fd875ef4df43ac4800339fc839b2f9678cccb2fd6310001204980c30f79242cb73e51ab4dec3c567b7fbf2f62f92c841ed9e4 SHA512 7af6d664512329f4364a71595ae4c6658380e572fcf9120ced4c6ff089dff6b91c588123aff444b9340b170e36f7d9b467aa32ec215c8b6001e11db5515cda28
diff --git a/kde-apps/gwenview/gwenview-18.08.2.ebuild b/kde-apps/gwenview/gwenview-18.08.2.ebuild
new file mode 100644
index 000000000000..1d60e093c7e1
--- /dev/null
+++ b/kde-apps/gwenview/gwenview-18.08.2.ebuild
@@ -0,0 +1,111 @@
+# Copyright 1999-2018 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="true"
+KDE_TEST="true"
+inherit kde5
+
+DESCRIPTION="Image viewer by KDE"
+HOMEPAGE="
+ https://www.kde.org/applications/graphics/gwenview/
+ https://userbase.kde.org/Gwenview
+"
+
+LICENSE="GPL-2+ handbook? ( FDL-1.2 )"
+KEYWORDS="~amd64 ~x86"
+IUSE="activities fits kipi +mpris raw semantic-desktop X"
+
+# requires running environment
+RESTRICT+=" test"
+
+COMMON_DEPEND="
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemmodels)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kjobwidgets)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_frameworks_dep solid)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtopengl)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ media-gfx/exiv2:=
+ media-libs/lcms:2
+ media-libs/libpng:0=
+ media-libs/phonon[qt5(+)]
+ virtual/jpeg:0
+ activities? ( $(add_frameworks_dep kactivities) )
+ fits? ( sci-libs/cfitsio )
+ kipi? ( $(add_kdeapps_dep libkipi '' '' '5=') )
+ mpris? ( $(add_qt_dep qtdbus) )
+ raw? ( $(add_kdeapps_dep libkdcraw) )
+ semantic-desktop? (
+ $(add_frameworks_dep baloo)
+ $(add_frameworks_dep kfilemetadata)
+ )
+ X? (
+ $(add_qt_dep qtx11extras)
+ x11-libs/libX11
+ )
+"
+DEPEND="${COMMON_DEPEND}
+ $(add_frameworks_dep kwindowsystem)
+ $(add_qt_dep qtconcurrent)
+"
+RDEPEND="${COMMON_DEPEND}
+ $(add_frameworks_dep kimageformats)
+ $(add_qt_dep qtimageformats)
+"
+
+PATCHES=( "${FILESDIR}/${PN}-18.07.90-activities-optional.patch" )
+
+src_prepare() {
+ kde5_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-utils_use_find_package activities KF5Activities)
+ $(cmake-utils_use_find_package fits CFitsio)
+ $(cmake-utils_use_find_package kipi KF5Kipi)
+ $(cmake-utils_use_find_package raw KF5KDcraw)
+ $(cmake-utils_use_find_package X X11)
+ )
+
+ if use semantic-desktop; then
+ mycmakeargs+=( -DGWENVIEW_SEMANTICINFO_BACKEND=Baloo )
+ else
+ mycmakeargs+=( -DGWENVIEW_SEMANTICINFO_BACKEND=None )
+ fi
+
+ kde5_src_configure
+}
+
+pkg_postinst() {
+ kde5_pkg_postinst
+
+ if ! has_version kde-apps/svgpart:${SLOT} ; then
+ elog "For SVG support, install kde-apps/svgpart:${SLOT}"
+ fi
+
+ if use kipi && ! has_version media-plugins/kipi-plugins ; then
+ elog "Plugins for the KIPI interface can be found in media-plugins/kipi-plugins"
+ fi
+}