kde-apps/okular: USE=jpeg->image-backend, add USE=plucker, drop unused dep
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 22 Apr 2017 15:40:55 +0000 (17:40 +0200)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 23 Apr 2017 13:37:15 +0000 (15:37 +0200)
Reported-by: Ostashevskyi Viktor <ostash@ostash.kiev.ua>
Gentoo-bug: 616266

Package-Manager: Portage-2.3.3, Repoman-2.3.1

kde-apps/okular/files/okular-17.04.0-deps.patch [new file with mode: 0644]
kde-apps/okular/metadata.xml
kde-apps/okular/okular-17.04.0-r1.ebuild [new file with mode: 0644]

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 (file)
index 0000000..8345bb9
--- /dev/null
@@ -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
index 0d0cb081aad29046924395154e1ea956736b5213..0a06fc744c3f21ecc3501194967e6a46fdbb2ab8 100644 (file)
@@ -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 (file)
index 0000000..66b7248
--- /dev/null
@@ -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
+}