summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2014-10-11 10:48:02 +0000
committerAndreas K. Hüttel <dilfridge@gentoo.org>2014-10-11 10:48:02 +0000
commit33ea3dd7334bf247169c2c86153c6a9f66c2f10b (patch)
tree753fc1a1e6ae4fadd4ebf8331449317c1015dc60 /dev-tex/luatex
parentbump to texlive 2014 version (diff)
downloadgentoo-2-33ea3dd7334bf247169c2c86153c6a9f66c2f10b.tar.gz
gentoo-2-33ea3dd7334bf247169c2c86153c6a9f66c2f10b.tar.bz2
gentoo-2-33ea3dd7334bf247169c2c86153c6a9f66c2f10b.zip
Backport the poppler-0.26 patch to luatex-0.70 and apply it conditionally, bug 511508
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key EBE6A336BE19039C!)
Diffstat (limited to 'dev-tex/luatex')
-rw-r--r--dev-tex/luatex/ChangeLog7
-rw-r--r--dev-tex/luatex/files/poppler026-backport.patch99
-rw-r--r--dev-tex/luatex/luatex-0.70.1-r2.ebuild3
3 files changed, 107 insertions, 2 deletions
diff --git a/dev-tex/luatex/ChangeLog b/dev-tex/luatex/ChangeLog
index 77a0ea1c2036..2008ad0c1c1e 100644
--- a/dev-tex/luatex/ChangeLog
+++ b/dev-tex/luatex/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-tex/luatex
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/ChangeLog,v 1.139 2014/08/10 21:27:15 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/ChangeLog,v 1.140 2014/10/11 10:48:02 dilfridge Exp $
+
+ 11 Oct 2014; Andreas K. Huettel <dilfridge@gentoo.org>
+ luatex-0.70.1-r2.ebuild, +files/poppler026-backport.patch:
+ Backport the poppler-0.26 patch to luatex-0.70 and apply it conditionally,
+ bug 511508
10 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> luatex-0.70.1-r2.ebuild,
luatex-0.76.0.ebuild:
diff --git a/dev-tex/luatex/files/poppler026-backport.patch b/dev-tex/luatex/files/poppler026-backport.patch
new file mode 100644
index 000000000000..ee151a30b47f
--- /dev/null
+++ b/dev-tex/luatex/files/poppler026-backport.patch
@@ -0,0 +1,99 @@
+diff -ruN luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/image/epdf.h luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/image/epdf.h
+--- luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/image/epdf.h 2011-05-19 07:38:37.000000000 +0200
++++ luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/image/epdf.h 2014-10-11 12:17:00.028331243 +0200
+@@ -33,6 +33,7 @@
+ # include <sys/stat.h>
+ # include <dirent.h>
+ # include <poppler-config.h>
++# include <StructTreeRoot.h>
+ # include <goo/GooString.h>
+ # include <goo/gmem.h>
+ # include <goo/gfile.h>
+diff -ruN luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/lua/lepdflib.cc
+--- luatex-beta-0.70.1.patched.orig/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:24:52.509357663 +0200
++++ luatex-beta-0.70.1.patched/source/texk/web2c/luatexdir/lua/lepdflib.cc 2014-10-11 12:42:03.665415321 +0200
+@@ -48,23 +48,24 @@
+
+ //**********************************************************************
+
+-#define M_Annot "Annot"
+-#define M_Annots "Annots"
+-#define M_Array "Array"
+-#define M_Catalog "Catalog"
+-#define M_Dict "Dict"
+-#define M_GooString "GooString"
+-#define M_LinkDest "LinkDest"
+-#define M_Link "Link"
+-#define M_Links "Links"
+-#define M_Object "Object"
+-#define M_Page "Page"
+-#define M_PDFDoc "PDFDoc"
+-#define M_PDFRectangle "PDFRectangle"
+-#define M_Ref "Ref"
+-#define M_Stream "Stream"
+-#define M_XRefEntry "XRefEntry"
+-#define M_XRef "XRef"
++#define M_Annot "epdf.Annot" /* ls-hh: epdf.* gives better protection in registry */
++#define M_Annots "epdf.Annots"
++#define M_Array "epdf.Array"
++#define M_Catalog "epdf.Catalog"
++#define M_Dict "epdf.Dict"
++#define M_GooString "epdf.GooString"
++#define M_LinkDest "epdf.LinkDest"
++#define M_Link "epdf.Link"
++#define M_Links "epdf.Links"
++#define M_Object "epdf.Object"
++#define M_Page "epdf.Page"
++#define M_PDFDoc "epdf.PDFDoc"
++#define M_PDFRectangle "epdf.PDFRectangle"
++#define M_Ref "epdf.Ref"
++#define M_Stream "epdf.Stream"
++#define M_StructTreeRoot "epdf.StructTreeRoot"
++#define M_XRef "epdf.XRef"
++#define M_XRefEntry "epdf.XRefEntry"
+
+ //**********************************************************************
+
+@@ -92,6 +93,7 @@
+ new_poppler_userdata(PDFRectangle);
+ new_poppler_userdata(Ref);
+ new_poppler_userdata(Stream);
++new_poppler_userdata(StructTreeRoot);
+ new_poppler_userdata(XRef);
+
+ //**********************************************************************
+@@ -565,7 +567,11 @@
+
+ m_poppler_get_GOOSTRING(Catalog, getBaseURI);
+ m_poppler_get_GOOSTRING(Catalog, readMetadata);
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ m_poppler_get_poppler(Catalog, Object, getStructTreeRoot);
++#else
++m_poppler_get_poppler(Catalog, StructTreeRoot, getStructTreeRoot);
++#endif
+
+ static int m_Catalog_findPage(lua_State * L)
+ {
+@@ -2048,14 +2054,22 @@
+
+ static int m_PDFDoc_getStructTreeRoot(lua_State * L)
+ {
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ Object *obj;
++#else
++ StructTreeRoot *obj;
++#endif
+ udstruct *uin, *uout;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_PDFDoc);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+ if (((PdfDocument *) uin->d)->doc->getCatalog()->isOk()) {
+ obj = ((PdfDocument *) uin->d)->doc->getStructTreeRoot();
++#ifdef GETSTRUCTTREEROOT_RETURNS_OBJECT
+ uout = new_Object_userdata(L);
++#else
++ uout = new_StructTreeRoot_userdata(L);
++#endif
+ uout->d = obj;
+ uout->pc = uin->pc;
+ uout->pd = uin->pd;
diff --git a/dev-tex/luatex/luatex-0.70.1-r2.ebuild b/dev-tex/luatex/luatex-0.70.1-r2.ebuild
index 08dddd02ca6a..952ef7837143 100644
--- a/dev-tex/luatex/luatex-0.70.1-r2.ebuild
+++ b/dev-tex/luatex/luatex-0.70.1-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r2.ebuild,v 1.13 2014/08/10 21:27:15 slyfox Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-tex/luatex/luatex-0.70.1-r2.ebuild,v 1.14 2014/10/11 10:48:02 dilfridge Exp $
EAPI=5
@@ -33,6 +33,7 @@ src_prepare() {
has_version '>=app-text/poppler-0.18.0:0' && epatch "${FILESDIR}/poppler018.patch"
has_version '>=app-text/poppler-0.20.0:0' && epatch "${FILESDIR}/poppler020.patch"
has_version '>=app-text/poppler-0.22.0:0' && epatch "${FILESDIR}/poppler022.patch"
+ has_version '>=app-text/poppler-0.26.0:0' && epatch "${FILESDIR}/poppler026-backport.patch"
epatch "${FILESDIR}/kpathsea2012.patch" \
"${FILESDIR}/remove-zlib-version-check.patch"
S="${S}/build-aux" elibtoolize --shallow