summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2020-12-06 16:31:34 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2020-12-07 00:48:47 +0100
commit9741b2d1823ff3e5ff72cdfa06713d91d22541d2 (patch)
tree3e2b047f20d09954598a7a510af391184e22afdd /app-office
parentkde-frameworks/kdelibs: Drop 4.14.38 (r0) (diff)
downloadkde-sunset-9741b2d1823ff3e5ff72cdfa06713d91d22541d2.tar.gz
kde-sunset-9741b2d1823ff3e5ff72cdfa06713d91d22541d2.tar.bz2
kde-sunset-9741b2d1823ff3e5ff72cdfa06713d91d22541d2.zip
app-office/calligra: Switch to app-text/poppler:0-qt4
Improve compatibility with Gentoo ebuild repo. Package-Manager: Portage-3.0.11, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
Diffstat (limited to 'app-office')
-rw-r--r--app-office/calligra/calligra-2.9.11-r1.ebuild31
-rw-r--r--app-office/calligra/files/calligra-2.9.11-slotted-popplerqt4.patch92
2 files changed, 98 insertions, 25 deletions
diff --git a/app-office/calligra/calligra-2.9.11-r1.ebuild b/app-office/calligra/calligra-2.9.11-r1.ebuild
index 06ff6908..ef0d5a3c 100644
--- a/app-office/calligra/calligra-2.9.11-r1.ebuild
+++ b/app-office/calligra/calligra-2.9.11-r1.ebuild
@@ -15,30 +15,12 @@ WEBKIT_REQUIRED="optional"
inherit check-reqs kde4-base versionator
DESCRIPTION="KDE Office Suite"
-HOMEPAGE="https://www.calligra.org/"
-
-case ${PV} in
- 2.[456789].[789]?)
- # beta or rc releases
- SRC_URI="mirror://kde/unstable/${P}/${P}.tar.xz" ;;
- 2.[456789].?|2.[456789].??)
- # stable releases
- SRC_URI="mirror://kde/stable/${P}/${P}.tar.xz" ;;
- 2.[456789].9999)
- # stable branch live ebuild
- SRC_URI="" ;;
- 9999)
- # master branch live ebuild
- SRC_URI="" ;;
-esac
+HOMEPAGE="https://calligra.org/"
+SRC_URI="mirror://kde/stable/${P}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT="4"
-
-if [[ ${KDE_BUILD_TYPE} == release ]] ; then
- KEYWORDS="amd64 x86"
-fi
-
+KEYWORDS="amd64 x86"
IUSE="color-management +crypt +eigen +exif fftw +fontconfig freetds +glew +glib
+gsf gsl import-filter +jpeg jpeg2k +lcms mysql openexr +pdf +pim
postgres spacenav sybase test tiff +threads +truetype +xml"
@@ -100,7 +82,7 @@ RDEPEND="
virtual/glu
)
pdf? (
- app-text/poppler:=
+ app-text/poppler:0-qt4=
media-gfx/pstoedit
)
pim? ( $(add_kdeapps_dep kdepimlibs) )
@@ -127,9 +109,7 @@ RDEPEND="
DEPEND="${RDEPEND}
x11-misc/shared-mime-info
"
-
-[[ ${PV} == 9999 ]] && LANGVERSION="2.9" || LANGVERSION="$(get_version_component_range 1-2)"
-PDEPEND=">=app-office/calligra-l10n-${LANGVERSION}"
+PDEPEND=">=app-office/calligra-l10n-$(get_version_component_range 1-2)"
# bug 394273
RESTRICT=test
@@ -138,6 +118,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-2.9.1-no-arch-detection.patch
"${FILESDIR}"/${P}-postgresql-9.6.patch
"${FILESDIR}"/${P}-libwps-0.4.patch
+ "${FILESDIR}"/${P}-slotted-popplerqt4.patch
)
pkg_pretend() {
diff --git a/app-office/calligra/files/calligra-2.9.11-slotted-popplerqt4.patch b/app-office/calligra/files/calligra-2.9.11-slotted-popplerqt4.patch
new file mode 100644
index 00000000..c4886d8c
--- /dev/null
+++ b/app-office/calligra/files/calligra-2.9.11-slotted-popplerqt4.patch
@@ -0,0 +1,92 @@
+From 80b8805f3f4128a5684c4d47ccff40bfc3007292 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Sun, 6 Dec 2020 17:02:45 +0100
+Subject: [PATCH] Implement "poppler0-qt4" slotting, but also fix poppler
+ include paths in general
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ cmake/modules/FindPoppler.cmake | 8 ++++----
+ filters/karbon/pdf/PdfImport.cpp | 4 ++--
+ filters/karbon/pdf/SvgOutputDev.cpp | 8 ++++----
+ filters/karbon/pdf/SvgOutputDev.h | 4 ++--
+ 4 files changed, 12 insertions(+), 12 deletions(-)
+
+diff --git a/cmake/modules/FindPoppler.cmake b/cmake/modules/FindPoppler.cmake
+index 294fad43121..ee200e6ea12 100644
+--- a/cmake/modules/FindPoppler.cmake
++++ b/cmake/modules/FindPoppler.cmake
+@@ -38,17 +38,17 @@ if(POPPLER_FOUND)
+ find_library(POPPLER_LIBRARY poppler-qt4
+ HINTS ${_pc_poppler_LIBRARY_DIRS}
+ )
+- find_library(POPPLER_CORE_LIBRARY poppler
++ find_library(POPPLER_CORE_LIBRARY poppler0-qt4
+ HINTS ${_pc_poppler_LIBRARY_DIRS}
+ )
+
+- find_path(POPPLER_INCLUDE_DIR poppler/qt4/poppler-qt4.h
++ find_path(POPPLER_INCLUDE_DIR poppler0-qt4/qt4/poppler-qt4.h
+ HINTS ${_pc_poppler_INCLUDE_DIRS}
+- PATH_SUFFIXES poppler/qt4
++ PATH_SUFFIXES poppler0-qt4/qt4
+ )
+ find_path(POPPLER_INCLUDE_DIR_core qt4/poppler-qt4.h
+ HINTS ${_pc_poppler_INCLUDE_DIRS}
+- PATH_SUFFIXES poppler
++ PATH_SUFFIXES poppler0-qt4
+ )
+
+ if(POPPLER_LIBRARY AND POPPLER_INCLUDE_DIR AND POPPLER_INCLUDE_DIR_core)
+diff --git a/filters/karbon/pdf/PdfImport.cpp b/filters/karbon/pdf/PdfImport.cpp
+index e55c06920c9..9c8a79fc042 100644
+--- a/filters/karbon/pdf/PdfImport.cpp
++++ b/filters/karbon/pdf/PdfImport.cpp
+@@ -34,8 +34,8 @@
+ #pragma GCC diagnostic ignored "-Wunused-parameter"
+ #endif
+
+-#include <poppler/PDFDoc.h>
+-#include <poppler/GlobalParams.h>
++#include <PDFDoc.h>
++#include <GlobalParams.h>
+
+ K_PLUGIN_FACTORY(PdfImportFactory, registerPlugin<PdfImport>();)
+ K_EXPORT_PLUGIN(PdfImportFactory("calligrafilters"))
+diff --git a/filters/karbon/pdf/SvgOutputDev.cpp b/filters/karbon/pdf/SvgOutputDev.cpp
+index a9e081a73dd..3a48fbdf9e3 100644
+--- a/filters/karbon/pdf/SvgOutputDev.cpp
++++ b/filters/karbon/pdf/SvgOutputDev.cpp
+@@ -18,10 +18,10 @@
+ */
+
+ #include "SvgOutputDev.h"
+-#include <poppler/Object.h>
+-#include <poppler/GfxState.h>
+-#include <poppler/Stream.h>
+-#include <poppler/GfxFont.h>
++#include <Object.h>
++#include <GfxState.h>
++#include <Stream.h>
++#include <GfxFont.h>
+
+ #include <kdebug.h>
+ #include <QFile>
+diff --git a/filters/karbon/pdf/SvgOutputDev.h b/filters/karbon/pdf/SvgOutputDev.h
+index 85fe55dfff6..1ca04a741de 100644
+--- a/filters/karbon/pdf/SvgOutputDev.h
++++ b/filters/karbon/pdf/SvgOutputDev.h
+@@ -25,8 +25,8 @@
+ #pragma GCC diagnostic ignored "-Wunused-parameter"
+ #endif
+
+-#include <poppler/Object.h>
+-#include <poppler/OutputDev.h>
++#include <Object.h>
++#include <OutputDev.h>
+
+ #include <QString>
+
+--
+2.29.2
+