media-gfx/pdftoipe: add poppler patch
authorStefan Huber <shuber2@gmx.at>
Sun, 4 Dec 2011 23:00:22 +0000 (00:00 +0100)
committerStefan Huber <shuber2@gmx.at>
Sun, 4 Dec 2011 23:00:22 +0000 (00:00 +0100)
Adds a patch that fixes pdftoipe with >=poppler-0.18. Patch and ebuild
(modified) were contributed by August Hörandl.

media-gfx/pdftoipe/Manifest
media-gfx/pdftoipe/files/poppler-0.18.patch [new file with mode: 0644]
media-gfx/pdftoipe/pdftoipe-20110916-r1.ebuild [new file with mode: 0644]

index fd81e85..210ab9d 100644 (file)
@@ -1,6 +1,8 @@
+AUX poppler-0.18.patch 308 RMD160 085464fd7238e9785bcc6e62bccb5383fda0aab2 SHA1 85a0a0cc79d3920e0ec46c59273b280380b5d7ca SHA256 f2a0ba22b1eb052fe6a671bbcc7c83be0a2f4e8ff3f49e21b68dec64c875f8ca
 DIST pdftoipe-20110116.tar.gz 11835 RMD160 3210a1d5889299cb2b6ae8fa45af960ea080d06a SHA1 6e4a7072e5bd05f941f8d3a0aab92ab1d3bb6aab SHA256 962b6382c05f62f7bfb004e06bb6ed1d1e0f0d1effa3437096f4019b7f90845d
 DIST pdftoipe-20110517.tar.gz 105601 RMD160 d787fa0ec866efc0983abf5b9a91788384e0073d SHA1 1d21e01ebf6f3ab92c4166c0b9c93716a5d2fd59 SHA256 718c6ed137ac1ef49c40d5961b9a085e588ca60cb581e4fea2ca6f78f3d239e5
 DIST pdftoipe-20110916.tar.gz 105648 RMD160 67d27456a1f7e46aa27eb67054c91ad52f51b0c3 SHA1 2cd4f70ebafa0310bbc3a0217f7d6acad2eda10f SHA256 0c331d7d5ce7d0cca5d64e5f26a3a24934810896cdcbb4a18ce30b9245bdcfae
 EBUILD pdftoipe-20110116.ebuild 591 RMD160 e0710bf2a973f5fd868356d10b8133cbed86e07a SHA1 09feb9f74aa336d390cc6ac5c7adf5fd197a62e3 SHA256 b144f10a51c6cdf828931058394d7ec6ae20c98c7eae747723291ca0e1fe1b39
 EBUILD pdftoipe-20110517.ebuild 621 RMD160 adeb5d683557739729df95f114e297a7ffbab195 SHA1 9d2d11256dbdfb9aadd79f2203fe9377ed63f83b SHA256 4df68b8be46c0e3bfda078b47a615bc06ceea6f7a967a05416777daa54b5cf34
+EBUILD pdftoipe-20110916-r1.ebuild 726 RMD160 cb2d50ed4d074d33a2b5c387f7d64bfb65f2f10a SHA1 e88a8b122785d0cf2e6fd75bf46317db36a4ffbe SHA256 92e297257aaddcede263854f891c63b22b22b81400423a5052a9e72dafe762d0
 EBUILD pdftoipe-20110916.ebuild 642 RMD160 6fb974db9dd4dddee2a981ac2549c214ce65d193 SHA1 d2bb114603ca7d2938981564a32e1bf2e1b9b83a SHA256 0b1544e728e545dd6f620ed0138e39d5cc9bf4e659724f4f9ad25981dc9a87a4
diff --git a/media-gfx/pdftoipe/files/poppler-0.18.patch b/media-gfx/pdftoipe/files/poppler-0.18.patch
new file mode 100644 (file)
index 0000000..5713ad8
--- /dev/null
@@ -0,0 +1,11 @@
+--- xmloutputdev.cpp
++++ xmloutputdev.cpp
+@@ -336,7 +336,7 @@
+     // dump JPEG stream
+     std::vector<char> buffer;
+     // initialize stream
+-    str = ((DCTStream *)str)->getRawStream();
++    str = str->getNextStream();
+     str->reset();
+     // copy the stream
+     while ((c = str->getChar()) != EOF)
diff --git a/media-gfx/pdftoipe/pdftoipe-20110916-r1.ebuild b/media-gfx/pdftoipe/pdftoipe-20110916-r1.ebuild
new file mode 100644 (file)
index 0000000..c8fe6f4
--- /dev/null
@@ -0,0 +1,43 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit eutils
+
+DESCRIPTION="Converts pdf files to Ipe xml files"
+HOMEPAGE="http://ipe7.sourceforge.net/"
+PEXT="${P}-src"
+SRC_URI="http://sourceforge.net/projects/ipe7/files%2Ftools%2F${PEXT}.tar.gz/download
+               -> ${P}.tar.gz"
+
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+RESTRICT="mirror"
+IUSE=""
+S="${WORKDIR}/${PEXT}"
+
+DEPEND="app-text/poppler
+       >=media-gfx/ipe-7.0.0"
+RDEPEND="${DEPEND}"
+
+
+src_prepare() {
+       epatch "${FILESDIR}"/poppler-0.18.patch || die
+}
+
+src_compile() {
+       emake || die
+}
+
+src_install() {
+       exeinto /usr/bin/
+       doexe $S/pdftoipe
+       doman $S/pdftoipe.1
+       dodoc $S/readme.txt
+}
+
+