From 1f940a7ad9331ff62b3fcac6c271a1d1fdfbb27d Mon Sep 17 00:00:00 2001 From: zhuk Date: Wed, 24 Apr 2013 18:34:39 +0000 Subject: [PATCH] Okular is a universal document viewer based on KPDF for KDE 4. It combines the excellent functionalities of KPDF with the versatility of supporting different kind of documents, like PDF, Postscript, DjVu, CHM, XPS, ePub and others. --- x11/kde4/okular/Makefile | 32 ++++ x11/kde4/okular/distinfo | 2 + .../okular/patches/patch-OkularConfig_cmake | 12 ++ .../patch-cmake_modules_FindPoppler_cmake | 14 ++ x11/kde4/okular/pkg/DESCR | 4 + x11/kde4/okular/pkg/PLIST | 176 ++++++++++++++++++ 6 files changed, 240 insertions(+) create mode 100644 x11/kde4/okular/Makefile create mode 100644 x11/kde4/okular/distinfo create mode 100644 x11/kde4/okular/patches/patch-OkularConfig_cmake create mode 100644 x11/kde4/okular/patches/patch-cmake_modules_FindPoppler_cmake create mode 100644 x11/kde4/okular/pkg/DESCR create mode 100644 x11/kde4/okular/pkg/PLIST diff --git a/x11/kde4/okular/Makefile b/x11/kde4/okular/Makefile new file mode 100644 index 00000000000..5fd98bb906a --- /dev/null +++ b/x11/kde4/okular/Makefile @@ -0,0 +1,32 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2013/04/24 18:34:39 zhuk Exp $ + +COMMENT = KDE document viewer +DISTNAME = okular-${MODKDE4_VERSION} + +SHARED_LIBS = okularcore 0.0 # 1.7 + +WANTLIB = c m pthread stdc++ z +WANTLIB += lib/qt4/QtDBus lib/qt4/QtDeclarative lib/qt4/QtGui +WANTLIB += lib/qt4/QtNetwork lib/qt4/QtSvg lib/qt4/QtXml +WANTLIB += ${KDE4LIB}/kactivities ${KDE4LIB}/kdeui ${KDE4LIB}/khtml +WANTLIB += ${KDE4LIB}/kio ${KDE4LIB}/kjs ${KDE4LIB}/kjsapi +WANTLIB += ${KDE4LIB}/kparts ${KDE4LIB}/kprintutils ${KDE4LIB}/kpty +WANTLIB += ${KDE4LIB}/nepomuk ${KDE4LIB}/nepomukutils +WANTLIB += chm djvulibre epub freetype jpeg poppler-qt4 qca2 qimageblitz +WANTLIB += soprano solid spectre threadweaver tiff + +MODULES = multimedia/phonon + +LIB_DEPENDS = devel/chmlib \ + graphics/djvulibre \ + graphics/tiff \ + print/libspectre \ + print/poppler,,-qt4 \ + security/qca2 \ + textproc/ebook-tools \ + graphics/qimageblitz + +# Not ported yet, extragear stuff +CONFIGURE_ARGS = -DWITH_ActiveApp:Bool=No + +.include diff --git a/x11/kde4/okular/distinfo b/x11/kde4/okular/distinfo new file mode 100644 index 00000000000..a9ef2a36cd1 --- /dev/null +++ b/x11/kde4/okular/distinfo @@ -0,0 +1,2 @@ +SHA256 (kde/okular-4.10.2.tar.xz) = 0FbOjXNgiJqMKF+zNiXtoSceeknCYJv8B6FzGRN0dX8= +SIZE (kde/okular-4.10.2.tar.xz) = 1383348 diff --git a/x11/kde4/okular/patches/patch-OkularConfig_cmake b/x11/kde4/okular/patches/patch-OkularConfig_cmake new file mode 100644 index 00000000000..1e12f6f3e0c --- /dev/null +++ b/x11/kde4/okular/patches/patch-OkularConfig_cmake @@ -0,0 +1,12 @@ +$OpenBSD: patch-OkularConfig_cmake,v 1.1.1.1 2013/04/24 18:34:39 zhuk Exp $ +--- OkularConfig.cmake.orig Thu Feb 7 22:31:16 2013 ++++ OkularConfig.cmake Thu Feb 7 22:32:35 2013 +@@ -7,7 +7,7 @@ get_filename_component( _okularBaseDir ${_okularBaseD + + # find the full paths to the library and the includes: + find_path(OKULAR_INCLUDE_DIR okular/core/document.h +- HINTS ${_okularBaseDir}/include ++ HINTS ${_okularBaseDir}/include ${KDE4_INCLUDE_DIR} + NO_DEFAULT_PATH) + + find_library(OKULAR_CORE_LIBRARY okularcore diff --git a/x11/kde4/okular/patches/patch-cmake_modules_FindPoppler_cmake b/x11/kde4/okular/patches/patch-cmake_modules_FindPoppler_cmake new file mode 100644 index 00000000000..177d15e88ea --- /dev/null +++ b/x11/kde4/okular/patches/patch-cmake_modules_FindPoppler_cmake @@ -0,0 +1,14 @@ +$OpenBSD: patch-cmake_modules_FindPoppler_cmake,v 1.1.1.1 2013/04/24 18:34:39 zhuk Exp $ +--- cmake/modules/FindPoppler.cmake.orig Tue Oct 11 04:18:26 2011 ++++ cmake/modules/FindPoppler.cmake Tue Oct 11 04:19:22 2011 +@@ -57,6 +57,10 @@ endif(NOT _poppler_version_bad) + if (POPPLER_FOUND) + include(CheckCXXSourceCompiles) + ++ # Unbreak Qt4 linking after QT_USE_IMPORTED_TARGETS set in KDE config ++ set(QT_USE_IMPORTED_TARGETS FALSE) ++ find_package(Qt4) ++ + # check whether we're using poppler 0.6 + set(CMAKE_REQUIRED_INCLUDES ${POPPLER_INCLUDE_DIR} ${QT_INCLUDE_DIR}) + set(CMAKE_REQUIRED_LIBRARIES ${POPPLER_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_QTXML_LIBRARY}) diff --git a/x11/kde4/okular/pkg/DESCR b/x11/kde4/okular/pkg/DESCR new file mode 100644 index 00000000000..83a23c7be0a --- /dev/null +++ b/x11/kde4/okular/pkg/DESCR @@ -0,0 +1,4 @@ +Okular is a universal document viewer based on KPDF for KDE 4. +It combines the excellent functionalities of KPDF with the +versatility of supporting different kind of documents, like PDF, +Postscript, DjVu, CHM, XPS, ePub and others. diff --git a/x11/kde4/okular/pkg/PLIST b/x11/kde4/okular/pkg/PLIST new file mode 100644 index 00000000000..75a9e0063b2 --- /dev/null +++ b/x11/kde4/okular/pkg/PLIST @@ -0,0 +1,176 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2013/04/24 18:34:39 zhuk Exp $ +@conflict gwenview-<4.9.3 +@bin bin/okular +include/kde4/okular/ +include/kde4/okular/core/ +include/kde4/okular/core/action.h +include/kde4/okular/core/annotations.h +include/kde4/okular/core/area.h +include/kde4/okular/core/document.h +include/kde4/okular/core/fileprinter.h +include/kde4/okular/core/fontinfo.h +include/kde4/okular/core/form.h +include/kde4/okular/core/generator.h +include/kde4/okular/core/global.h +include/kde4/okular/core/okular_export.h +include/kde4/okular/core/page.h +include/kde4/okular/core/pagesize.h +include/kde4/okular/core/pagetransition.h +include/kde4/okular/core/settings_core.h +include/kde4/okular/core/sound.h +include/kde4/okular/core/sourcereference.h +include/kde4/okular/core/textdocumentgenerator.h +include/kde4/okular/core/textpage.h +include/kde4/okular/core/tile.h +include/kde4/okular/core/utils.h +include/kde4/okular/core/version.h +include/kde4/okular/interfaces/ +include/kde4/okular/interfaces/configinterface.h +include/kde4/okular/interfaces/guiinterface.h +include/kde4/okular/interfaces/printinterface.h +include/kde4/okular/interfaces/saveinterface.h +include/kde4/okular/interfaces/viewerinterface.h +lib/cmake/Okular/ +lib/cmake/Okular/OkularConfig.cmake +lib/cmake/Okular/OkularConfigVersion.cmake +lib/kde4/imports/org/kde/okular/ +lib/kde4/imports/org/kde/okular/libokularplugin.so +lib/kde4/imports/org/kde/okular/qmldir +lib/kde4/kio_msits.so +@lib ${KDE4LIB}/libokularcore.so.${LIBokularcore_VERSION} +lib/kde4/okularGenerator_chmlib.so +lib/kde4/okularGenerator_comicbook.so +lib/kde4/okularGenerator_djvu.so +lib/kde4/okularGenerator_dvi.so +lib/kde4/okularGenerator_epub.so +lib/kde4/okularGenerator_fax.so +lib/kde4/okularGenerator_fb.so +lib/kde4/okularGenerator_ghostview.so +lib/kde4/okularGenerator_kimgio.so +lib/kde4/okularGenerator_ooo.so +lib/kde4/okularGenerator_plucker.so +lib/kde4/okularGenerator_poppler.so +lib/kde4/okularGenerator_tiff.so +lib/kde4/okularGenerator_xps.so +lib/kde4/okularpart.so +@lib lib/libokularcore.so.${LIBokularcore_VERSION} +@man man/man1/okular.1 +share/applications/kde4/okular.desktop +share/applications/kde4/okularApplication_chm.desktop +share/applications/kde4/okularApplication_comicbook.desktop +share/applications/kde4/okularApplication_djvu.desktop +share/applications/kde4/okularApplication_dvi.desktop +share/applications/kde4/okularApplication_epub.desktop +share/applications/kde4/okularApplication_fax.desktop +share/applications/kde4/okularApplication_fb.desktop +share/applications/kde4/okularApplication_ghostview.desktop +share/applications/kde4/okularApplication_kimgio.desktop +share/applications/kde4/okularApplication_ooo.desktop +share/applications/kde4/okularApplication_pdf.desktop +share/applications/kde4/okularApplication_plucker.desktop +share/applications/kde4/okularApplication_tiff.desktop +share/applications/kde4/okularApplication_xps.desktop +share/apps/kconf_update/okular.upd +share/apps/okular/ +share/apps/okular/icons/ +share/apps/okular/icons/hicolor/ +share/apps/okular/icons/hicolor/16x16/ +share/apps/okular/icons/hicolor/16x16/apps/ +share/apps/okular/icons/hicolor/16x16/apps/okular-gv.png +share/apps/okular/icons/hicolor/32x32/ +share/apps/okular/icons/hicolor/32x32/apps/ +share/apps/okular/icons/hicolor/32x32/apps/okular-gv.png +share/apps/okular/part-viewermode.rc +share/apps/okular/part.rc +share/apps/okular/pics/ +share/apps/okular/pics/checkmark.png +share/apps/okular/pics/circle.png +share/apps/okular/pics/comment.png +share/apps/okular/pics/cross.png +share/apps/okular/pics/help.png +share/apps/okular/pics/insert.png +share/apps/okular/pics/key.png +share/apps/okular/pics/newparagraph.png +share/apps/okular/pics/note.png +share/apps/okular/pics/paperclip.png +share/apps/okular/pics/paragraph.png +share/apps/okular/pics/pushpin.png +share/apps/okular/pics/rightarrow.png +share/apps/okular/pics/rightpointer.png +share/apps/okular/pics/stamps.svg +share/apps/okular/pics/star.png +share/apps/okular/pics/tool-ellipse-okular.png +share/apps/okular/pics/tool-highlighter-okular.png +share/apps/okular/pics/tool-ink-okular.png +share/apps/okular/pics/tool-line-okular.png +share/apps/okular/pics/tool-note-inline-okular.png +share/apps/okular/pics/tool-note-inline.png +share/apps/okular/pics/tool-note-okular.png +share/apps/okular/pics/tool-note.png +share/apps/okular/pics/tool-polygon-okular.png +share/apps/okular/pics/tool-stamp-okular.png +share/apps/okular/pics/tool-underline-okular.png +share/apps/okular/pics/uparrow.png +share/apps/okular/pics/upleftarrow.png +share/apps/okular/shell.rc +share/apps/okular/tools.xml +share/config.kcfg/gssettings.kcfg +share/config.kcfg/okular.kcfg +share/config.kcfg/okular_core.kcfg +share/doc/HTML/en/okular/ +share/doc/HTML/en/okular/annotation-properties.png +share/doc/HTML/en/okular/annotations.png +share/doc/HTML/en/okular/bookmark-management.png +share/doc/HTML/en/okular/common +share/doc/HTML/en/okular/configure-editor.png +share/doc/HTML/en/okular/configure.png +share/doc/HTML/en/okular/embedded-files-bar.png +share/doc/HTML/en/okular/forms-bar.png +share/doc/HTML/en/okular/index.cache.bz2 +share/doc/HTML/en/okular/index.docbook +share/doc/HTML/en/okular/mainwindow.png +share/doc/HTML/en/okular/man-okular.1.docbook +share/doc/HTML/en/okular/presentation.png +share/doc/HTML/en/okular/rating.png +share/icons/hicolor/128x128/apps/okular.png +share/icons/hicolor/16x16/apps/okular.png +share/icons/hicolor/22x22/apps/okular.png +share/icons/hicolor/32x32/apps/okular.png +share/icons/hicolor/48x48/apps/okular.png +share/icons/hicolor/64x64/apps/okular.png +share/icons/hicolor/scalable/apps/okular.svgz +share/kde4/services/libokularGenerator_chmlib.desktop +share/kde4/services/libokularGenerator_comicbook.desktop +share/kde4/services/libokularGenerator_djvu.desktop +share/kde4/services/libokularGenerator_dvi.desktop +share/kde4/services/libokularGenerator_epub.desktop +share/kde4/services/libokularGenerator_fax.desktop +share/kde4/services/libokularGenerator_fb.desktop +share/kde4/services/libokularGenerator_ghostview.desktop +share/kde4/services/libokularGenerator_kimgio.desktop +share/kde4/services/libokularGenerator_ooo.desktop +share/kde4/services/libokularGenerator_plucker.desktop +share/kde4/services/libokularGenerator_poppler.desktop +share/kde4/services/libokularGenerator_tiff.desktop +share/kde4/services/libokularGenerator_xps.desktop +share/kde4/services/msits.protocol +share/kde4/services/okularChm.desktop +share/kde4/services/okularComicbook.desktop +share/kde4/services/okularDjvu.desktop +share/kde4/services/okularDvi.desktop +share/kde4/services/okularEPub.desktop +share/kde4/services/okularFax.desktop +share/kde4/services/okularFb.desktop +share/kde4/services/okularGhostview.desktop +share/kde4/services/okularKimgio.desktop +share/kde4/services/okularOoo.desktop +share/kde4/services/okularPlucker.desktop +share/kde4/services/okularPoppler.desktop +share/kde4/services/okularTiff.desktop +share/kde4/services/okularXps.desktop +share/kde4/services/okular_part.desktop +share/kde4/servicetypes/okularGenerator.desktop +@exec %D/bin/update-desktop-database +@unexec-delete %D/bin/update-desktop-database +@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor +@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor