summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Böck <hanno@gentoo.org>2010-12-28 10:48:33 +0000
committerHanno Böck <hanno@gentoo.org>2010-12-28 10:48:33 +0000
commit42c6a073d92d3eee3352df20519384f350ce6221 (patch)
treee998fbd45dee4cd0e33ff699e228f5a886be342d /media-gfx/inkscape
parentVersion bump with a huge amount of improvements and bug fixes over the 0.10.1... (diff)
downloadgentoo-2-42c6a073d92d3eee3352df20519384f350ce6221.tar.gz
gentoo-2-42c6a073d92d3eee3352df20519384f350ce6221.tar.bz2
gentoo-2-42c6a073d92d3eee3352df20519384f350ce6221.zip
inkscape poppler 0.16 fix
(Portage version: 2.1.9.26/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/inkscape')
-rw-r--r--media-gfx/inkscape/ChangeLog6
-rw-r--r--media-gfx/inkscape/files/inkscape-0.48.0-poppler-0.16.patch93
-rw-r--r--media-gfx/inkscape/inkscape-0.48.0.ebuild8
3 files changed, 104 insertions, 3 deletions
diff --git a/media-gfx/inkscape/ChangeLog b/media-gfx/inkscape/ChangeLog
index 13c462c2aad7..50aae8cd3d38 100644
--- a/media-gfx/inkscape/ChangeLog
+++ b/media-gfx/inkscape/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for media-gfx/inkscape
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/ChangeLog,v 1.150 2010/12/28 01:44:39 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/ChangeLog,v 1.151 2010/12/28 10:48:32 hanno Exp $
+
+ 28 Dec 2010; Hanno Boeck <hanno@gentoo.org> inkscape-0.48.0.ebuild,
+ +files/inkscape-0.48.0-poppler-0.16.patch:
+ Upstream fix for poppler 0.16.
28 Dec 2010; Brent Baude <ranger@gentoo.org> inkscape-0.48.0.ebuild:
stable ppc64, bug 343371
diff --git a/media-gfx/inkscape/files/inkscape-0.48.0-poppler-0.16.patch b/media-gfx/inkscape/files/inkscape-0.48.0-poppler-0.16.patch
new file mode 100644
index 000000000000..25327d9d1736
--- /dev/null
+++ b/media-gfx/inkscape/files/inkscape-0.48.0-poppler-0.16.patch
@@ -0,0 +1,93 @@
+=== modified file 'configure.ac'
+--- configure.ac 2010-11-15 01:32:59 +0000
++++ configure.ac 2010-11-21 12:38:01 +0000
+@@ -611,11 +611,12 @@
+ AC_DEFINE(POPPLER_NEW_GFXFONT, 1, [Use GfxFont from Poppler >= 0.8.3])
+ fi
+
+-AC_MSG_CHECKING(for new color space API in Poppler)
+ ink_svd_CPPFLAGS=$CPPFLAGS
+ ink_svd_LIBS=$LIBS
+ CPPFLAGS="$CPPFLAGS $POPPLER_CFLAGS"
+ LIBS="$LIBS $POPPLER_LIBS"
++
++AC_MSG_CHECKING(for new color space API in Poppler)
+ popplercolor="no"
+ AC_COMPILE_IFELSE([
+ #include <GfxState.h>
+@@ -627,16 +628,36 @@
+ return 0;
+ }
+ ], [popplercolor=yes])
++if test "x$popplercolor" = "xyes"; then
++ AC_DEFINE(POPPLER_NEW_COLOR_SPACE_API, 1, [Use color space API from Poppler >= 0.12.2])
++ AC_MSG_RESULT(yes)
++else
++ AC_MSG_RESULT(no)
++fi
++
++# Poppler's b604a008 commit changes this
++AC_MSG_CHECKING([whether Poppler's GfxPatch no longer uses GfxColor])
++popplergfxcolor="no"
++AC_COMPILE_IFELSE([
++#include <GfxState.h>
++
++int main() {
++ GfxPatch::ColorValue color = {c: {0}};
++ GfxPatch patch;
++ patch.color[[0]][[0]] = color;
++ return 0;
++}
++], [popplergfxcolor=yes])
++if test "x$popplergfxcolor" = "xyes"; then
++ AC_DEFINE(POPPLER_NEW_GFXPATCH, 1, [GfxPatch no longer uses GfxColor in >= 0.15.1])
++ AC_MSG_RESULT(yes)
++else
++ AC_MSG_RESULT(no)
++fi
++
+ CPPFLAGS=$ink_svd_CPPFLAGS
+ LIBS=$ink_svd_LIBS
+
+-if test "x$popplercolor" = "xyes"; then
+- AC_DEFINE(POPPLER_NEW_COLOR_SPACE_API, 1, [Use color space API from Poppler >= 0.12.2])
+- AC_MSG_RESULT(yes)
+-else
+- AC_MSG_RESULT(no)
+-fi
+-
+ dnl ******************************
+ dnl Inkboard dependency checking
+ dnl ******************************
+
+=== modified file 'src/extension/internal/pdfinput/pdf-parser.cpp'
+--- src/extension/internal/pdfinput/pdf-parser.cpp 2010-03-21 01:53:59 +0000
++++ src/extension/internal/pdfinput/pdf-parser.cpp 2010-11-21 12:38:01 +0000
+@@ -1874,6 +1874,9 @@
+
+ void PdfParser::fillPatch(GfxPatch *patch, int nComps, int depth) {
+ GfxPatch patch00, patch01, patch10, patch11;
++#ifdef POPPLER_NEW_GFXPATCH
++ GfxColor color;
++#endif
+ double xx[4][8], yy[4][8];
+ double xxm, yym;
+ double patchColorDelta = colorDeltas[pdfPatchMeshShading-1];
+@@ -1890,9 +1893,16 @@
+ > patchColorDelta) {
+ break;
+ }
++#ifdef POPPLER_NEW_GFXPATCH
++ color.c[i] = GfxColorComp(patch->color[0][0].c[i]);
++#endif
+ }
+ if (i == nComps || depth == maxDepths[pdfPatchMeshShading-1]) {
++#ifdef POPPLER_NEW_GFXPATCH
++ state->setFillColor(&color);
++#else
+ state->setFillColor(&patch->color[0][0]);
++#endif
+ state->moveTo(patch->x[0][0], patch->y[0][0]);
+ state->curveTo(patch->x[0][1], patch->y[0][1],
+ patch->x[0][2], patch->y[0][2],
+
diff --git a/media-gfx/inkscape/inkscape-0.48.0.ebuild b/media-gfx/inkscape/inkscape-0.48.0.ebuild
index 42f1692b6675..362ea98452d2 100644
--- a/media-gfx/inkscape/inkscape-0.48.0.ebuild
+++ b/media-gfx/inkscape/inkscape-0.48.0.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/inkscape-0.48.0.ebuild,v 1.8 2010/12/28 01:44:39 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/inkscape/inkscape-0.48.0.ebuild,v 1.9 2010/12/28 10:48:32 hanno Exp $
EAPI=2
inherit eutils flag-o-matic autotools gnome2
@@ -14,7 +14,7 @@ HOMEPAGE="http://www.inkscape.org/"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
-KEYWORDS="amd64 hppa ppc ppc64 ~sparc x86"
+KEYWORDS="amd64 hppa ppc ~ppc64 ~sparc x86"
IUSE="dia gnome gs inkjar lcms nls spell wmf"
RESTRICT="test"
@@ -81,6 +81,10 @@ pkg_setup() {
src_prepare() {
gnome2_src_prepare
epatch "${FILESDIR}"/${P}-spell.patch
+
+ # Upstream commit:
+ # http://bazaar.launchpad.net/~inkscape.dev/inkscape/RELEASE_0_48_BRANCH/revision/9727
+ epatch "${FILESDIR}"/${P}-poppler-0.16.patch
eautoreconf
}