summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wright <gienah@gentoo.org>2013-02-06 12:57:25 +0000
committerMark Wright <gienah@gentoo.org>2013-02-06 12:57:25 +0000
commit841812af8ba9fab8a67bb2cbfced6c81189fbad9 (patch)
tree470c02e7951d6778355d637db6d5d40b1b5e9267 /net-print/cups-filters
parentVersion bump. Use python-any-r1 eclass instead of the deprecated python eclass. (diff)
downloadgentoo-2-841812af8ba9fab8a67bb2cbfced6c81189fbad9.tar.gz
gentoo-2-841812af8ba9fab8a67bb2cbfced6c81189fbad9.tar.bz2
gentoo-2-841812af8ba9fab8a67bb2cbfced6c81189fbad9.zip
Apply patch for upstream bug 1089 to fix build with poppler 0.22.0
(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key 618E971F)
Diffstat (limited to 'net-print/cups-filters')
-rw-r--r--net-print/cups-filters/ChangeLog6
-rw-r--r--net-print/cups-filters/cups-filters-1.0.29.ebuild5
-rw-r--r--net-print/cups-filters/files/cups-filters-1.0.29-poppler-0.22.patch68
3 files changed, 76 insertions, 3 deletions
diff --git a/net-print/cups-filters/ChangeLog b/net-print/cups-filters/ChangeLog
index 77ac86896ecd..9f27d3e78f0d 100644
--- a/net-print/cups-filters/ChangeLog
+++ b/net-print/cups-filters/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-print/cups-filters
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/ChangeLog,v 1.49 2013/02/02 20:26:03 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/ChangeLog,v 1.50 2013/02/06 12:57:25 gienah Exp $
+
+ 06 Feb 2013; Mark Wright <gienah@gentoo.org>
+ +files/cups-filters-1.0.29-poppler-0.22.patch, cups-filters-1.0.29.ebuild:
+ Apply patch for upstream bug 1089 to fix build with poppler 0.22.0
*cups-filters-1.0.29 (02 Feb 2013)
diff --git a/net-print/cups-filters/cups-filters-1.0.29.ebuild b/net-print/cups-filters/cups-filters-1.0.29.ebuild
index 5b5be4558554..bd7294bbae8f 100644
--- a/net-print/cups-filters/cups-filters-1.0.29.ebuild
+++ b/net-print/cups-filters/cups-filters-1.0.29.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/cups-filters-1.0.29.ebuild,v 1.1 2013/02/02 20:26:03 dilfridge Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-print/cups-filters/cups-filters-1.0.29.ebuild,v 1.2 2013/02/06 12:57:25 gienah Exp $
EAPI=4
@@ -42,7 +42,8 @@ RDEPEND="
"
DEPEND="${RDEPEND}"
-PATCHES=( "${FILESDIR}/${PN}-1.0.29-openrc.patch" )
+PATCHES=( "${FILESDIR}/${PN}-1.0.29-openrc.patch"
+ "${FILESDIR}/${PN}-1.0.29-poppler-0.22.patch")
src_prepare() {
base_src_prepare
diff --git a/net-print/cups-filters/files/cups-filters-1.0.29-poppler-0.22.patch b/net-print/cups-filters/files/cups-filters-1.0.29-poppler-0.22.patch
new file mode 100644
index 000000000000..5e8d76e3f819
--- /dev/null
+++ b/net-print/cups-filters/files/cups-filters-1.0.29-poppler-0.22.patch
@@ -0,0 +1,68 @@
+Submitted By: Armin K. <krejzi at email dot com>
+Date: 2013-01-10
+Initial Package Version: 1.0.29
+Upstream Status: Fixed upstream
+Origin: Upstream
+Description: Fixes building with Poppler >= 0.22.0
+
+=== modified file 'NEWS'
+--- NEWS 2013-01-02 18:23:25 +0000
++++ NEWS 2013-01-09 10:42:32 +0000
+@@ -1,6 +1,11 @@
+ NEWS - OpenPrinting CUPS Filters v1.0.29 - 2013-01-02
+ -----------------------------------------------------
+
++CHANGES IN V1.0.30
++
++ - pdftoopvp: Let it build with Poppler 0.22.x. Thanks to Koji Otani
++ from BBR Inc. (Bug #1089).
++
+ CHANGES IN V1.0.29
+
+ - Fixed ./configure option "--with-rcdir=no". Thanks to Jiri
+
+=== modified file 'filter/pdftoopvp/OPVPOutputDev.cxx'
+--- filter/pdftoopvp/OPVPOutputDev.cxx 2012-07-20 08:32:55 +0000
++++ filter/pdftoopvp/OPVPOutputDev.cxx 2013-01-09 10:42:32 +0000
+@@ -1804,8 +1804,14 @@
+ maskSplash = new Splash(maskBitmap, gFalse);
+ maskColor[0] = 0;
+ maskSplash->clear(maskColor);
++#if POPPLER_VERSION_MAJOR <= 0 && (POPPLER_VERSION_MINOR <= 20 || (POPPLER_VERSION_MINOR == 21 && POPPLER_VERSION_MICRO <= 2))
+ maskSplash->drawImage(&imageSrc, &imgMaskData,
+ splashModeMono8, gFalse, maskWidth, maskHeight, mat);
++#else
++ maskSplash->drawImage(&imageSrc, &imgMaskData,
++ splashModeMono8, gFalse, maskWidth, maskHeight,
++ mat,gFalse);
++#endif
+ delete imgMaskData.imgStr;
+ maskStr->close();
+ gfree(imgMaskData.lookup);
+
+=== modified file 'filter/pdftoopvp/oprs/OPRS.cxx'
+--- filter/pdftoopvp/oprs/OPRS.cxx 2012-09-10 19:56:59 +0000
++++ filter/pdftoopvp/oprs/OPRS.cxx 2013-01-09 10:42:32 +0000
+@@ -5,6 +5,9 @@
+ //========================================================================
+
+ #include <config.h>
++#ifdef HAVE_CPP_POPPLER_VERSION_H
++#include "cpp/poppler-version.h"
++#endif
+
+ #ifdef USE_GCC_PRAGMAS
+ #pragma implementation
+@@ -235,7 +238,11 @@
+ SplashColorMode srcMode, GBool srcAlpha,
+ int w, int h, SplashCoord *mat) {
+ if (rasterMode) {
++#if POPPLER_VERSION_MAJOR <= 0 && (POPPLER_VERSION_MINOR <= 20 || (POPPLER_VERSION_MINOR == 21 && POPPLER_VERSION_MICRO <= 2))
+ return splash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat);
++#else
++ return splash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat,gFalse);
++#endif
+ } else {
+ return opvpSplash->drawImage(src,srcData,srcMode,srcAlpha,w,h,mat);
+ }
+