summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2017-04-22 17:40:55 +0200
committerAndreas Sturmlechner <asturm@gentoo.org>2017-04-23 15:37:15 +0200
commit516e8b74f711afc33d6d38a6f850f3e28d2ad917 (patch)
tree9ffb8f86d84f526ccba70a08880f0c7057d24a67 /kde-apps/okular
parentdev-perl/Text-CSV_XS: amd64 stable wrt bug #616348 (diff)
downloadgentoo-516e8b74f711afc33d6d38a6f850f3e28d2ad917.tar.gz
gentoo-516e8b74f711afc33d6d38a6f850f3e28d2ad917.tar.bz2
gentoo-516e8b74f711afc33d6d38a6f850f3e28d2ad917.zip
kde-apps/okular: USE=jpeg->image-backend, add USE=plucker, drop unused dep
Reported-by: Ostashevskyi Viktor <ostash@ostash.kiev.ua> Gentoo-bug: 616266 Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'kde-apps/okular')
-rw-r--r--kde-apps/okular/files/okular-17.04.0-deps.patch20
-rw-r--r--kde-apps/okular/metadata.xml2
-rw-r--r--kde-apps/okular/okular-17.04.0-r1.ebuild88
3 files changed, 110 insertions, 0 deletions
diff --git a/kde-apps/okular/files/okular-17.04.0-deps.patch b/kde-apps/okular/files/okular-17.04.0-deps.patch
new file mode 100644
index 00000000000..8345bb92008
--- /dev/null
+++ b/kde-apps/okular/files/okular-17.04.0-deps.patch
@@ -0,0 +1,20 @@
+commit decb01292e4b5579a53741d5412a797daa53c1d6
+Author: Andreas Sturmlechner <andreas.sturmlechner@gmail.com>
+Date: Sat Apr 22 12:43:37 2017 +0200
+
+ Drop unused DBusAddons
+
+ REVIEW: 130099
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index e52b69be6..34ea3729a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -47,7 +47,6 @@ find_package(KF5 ${KF5_REQUIRED_VERSION} REQUIRED COMPONENTS
+ Config
+ ConfigWidgets
+ CoreAddons
+- DBusAddons
+ DocTools
+ IconThemes
+ JS
diff --git a/kde-apps/okular/metadata.xml b/kde-apps/okular/metadata.xml
index 0d0cb081aad..0a06fc744c3 100644
--- a/kde-apps/okular/metadata.xml
+++ b/kde-apps/okular/metadata.xml
@@ -8,8 +8,10 @@
<use>
<flag name="chm">Enable support for Microsoft Compiled HTML Help files</flag>
<flag name="ebook">Add E-Book support</flag>
+ <flag name="image-backend">Enable image viewing support</flag>
<flag name="mobi">Add mobipocket support</flag>
<flag name="mobile">Enable Plasma mobile support</flag>
+ <flag name="plucker">Enable Plucker E-Book for Palm OS devices support</flag>
<flag name="speech">Enable text-to-speech support</flag>
</use>
</pkgmetadata>
diff --git a/kde-apps/okular/okular-17.04.0-r1.ebuild b/kde-apps/okular/okular-17.04.0-r1.ebuild
new file mode 100644
index 00000000000..66b72485cfb
--- /dev/null
+++ b/kde-apps/okular/okular-17.04.0-r1.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+KDE_TEST="forceoptional"
+VIRTUALX_REQUIRED="test"
+inherit kde5
+
+DESCRIPTION="Universal document viewer based on KDE Frameworks"
+HOMEPAGE="https://okular.kde.org https://www.kde.org/applications/graphics/okular"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="chm crypt djvu ebook +image-backend mobi mobile +pdf plucker +postscript speech +tiff"
+
+DEPEND="
+ $(add_frameworks_dep kactivities)
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kbookmarks)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kjs)
+ $(add_frameworks_dep kparts)
+ $(add_frameworks_dep kpty)
+ $(add_frameworks_dep kwallet)
+ $(add_frameworks_dep threadweaver)
+ $(add_qt_dep qtdbus)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtprintsupport)
+ $(add_qt_dep qtsvg)
+ $(add_qt_dep qtwidgets)
+ media-libs/freetype
+ media-libs/phonon[qt5]
+ sys-libs/zlib
+ chm? (
+ $(add_frameworks_dep khtml)
+ dev-libs/chmlib
+ )
+ crypt? ( app-crypt/qca:2[qt5] )
+ djvu? ( app-text/djvu )
+ ebook? ( app-text/ebook-tools )
+ image-backend? (
+ $(add_kdeapps_dep libkexiv2)
+ $(add_qt_dep qtgui 'gif,jpeg,png')
+ )
+ mobi? ( $(add_kdeapps_dep kdegraphics-mobipocket) )
+ pdf? ( app-text/poppler[qt5,-exceptions(-)] )
+ plucker? ( virtual/jpeg:0 )
+ postscript? ( app-text/libspectre )
+ speech? ( $(add_qt_dep qtspeech) )
+ tiff? ( media-libs/tiff:0 )
+"
+RDEPEND="${DEPEND}
+ image-backend? ( $(add_frameworks_dep kimageformats) )
+ mobile? ( dev-libs/kirigami:1 )
+"
+
+PATCHES=( "${FILESDIR}/${P}-deps.patch" )
+
+# bug 603116
+RESTRICT+=" test"
+
+src_prepare() {
+ kde5_src_prepare
+ use mobile || cmake_comment_add_subdirectory mobile
+ use test || cmake_comment_add_subdirectory conf/autotests
+}
+
+src_configure() {
+ local mycmakeargs=(
+ $(cmake-utils_use_find_package chm CHM)
+ $(cmake-utils_use_find_package crypt Qca-qt5)
+ $(cmake-utils_use_find_package djvu DjVuLibre)
+ $(cmake-utils_use_find_package ebook EPub)
+ $(cmake-utils_use_find_package image-backend KF5KExiv2)
+ $(cmake-utils_use_find_package mobi QMobipocket)
+ $(cmake-utils_use_find_package pdf Poppler)
+ $(cmake-utils_use_find_package plucker JPEG)
+ $(cmake-utils_use_find_package postscript LibSpectre)
+ $(cmake-utils_use_find_package speech Qt5TextToSpeech)
+ $(cmake-utils_use_find_package tiff TIFF)
+ )
+
+ kde5_src_configure
+}