From 068f6943bd4d57b3979f99233a4ba4ebe696a3b6 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Fri, 10 Aug 2012 01:00:16 +0200 Subject: [PATCH] Fix pdftoipe for poppler-0.20 Patch converts error to fprintf, taken from http://sourceforge.net/apps/mantisbt/ipe7/view.php?id=112 --- media-gfx/pdftoipe/Manifest | 2 + media-gfx/pdftoipe/files/poppler-0.20.patch | 11 +++++ .../pdftoipe/pdftoipe-20110916-r2.ebuild | 44 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 media-gfx/pdftoipe/files/poppler-0.20.patch create mode 100644 media-gfx/pdftoipe/pdftoipe-20110916-r2.ebuild diff --git a/media-gfx/pdftoipe/Manifest b/media-gfx/pdftoipe/Manifest index 210ab9d..efc6fd9 100644 --- a/media-gfx/pdftoipe/Manifest +++ b/media-gfx/pdftoipe/Manifest @@ -1,8 +1,10 @@ AUX poppler-0.18.patch 308 RMD160 085464fd7238e9785bcc6e62bccb5383fda0aab2 SHA1 85a0a0cc79d3920e0ec46c59273b280380b5d7ca SHA256 f2a0ba22b1eb052fe6a671bbcc7c83be0a2f4e8ff3f49e21b68dec64c875f8ca +AUX poppler-0.20.patch 281 RMD160 08523ef33c18841ac1148894c0f00ef5b1f1b7e7 SHA1 1da2c4f4f43347d99c5a915e5753af046eb7ebb6 SHA256 08a8ad78369a1062a840d48c7d85fe0dbcc507d1e2565ef357be62e5d3503def 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-r2.ebuild 774 RMD160 327f34be3f62d6ef58c0c84cc7098bc472051413 SHA1 c703cbdf90d563dd4e20d4242ba5ddc6be6aecb9 SHA256 aa441d138b71fe097b5dc5ceebb0bc1d1d6b71144950c2260dc155cf991dfabe EBUILD pdftoipe-20110916.ebuild 642 RMD160 6fb974db9dd4dddee2a981ac2549c214ce65d193 SHA1 d2bb114603ca7d2938981564a32e1bf2e1b9b83a SHA256 0b1544e728e545dd6f620ed0138e39d5cc9bf4e659724f4f9ad25981dc9a87a4 diff --git a/media-gfx/pdftoipe/files/poppler-0.20.patch b/media-gfx/pdftoipe/files/poppler-0.20.patch new file mode 100644 index 0000000..d55ff64 --- /dev/null +++ b/media-gfx/pdftoipe/files/poppler-0.20.patch @@ -0,0 +1,11 @@ +--- a/xmloutputdev.cpp ++++ b/xmloutputdev.cpp +@@ -30,7 +30,7 @@ + FILE *f; + + if (!(f = fopen(fileName, "wb"))) { +- error(-1, "Couldn't open output file '%s'", fileName); ++ fprintf(stderr, "Couldn't open output file '%s'\n", fileName); + ok = gFalse; + return; + } diff --git a/media-gfx/pdftoipe/pdftoipe-20110916-r2.ebuild b/media-gfx/pdftoipe/pdftoipe-20110916-r2.ebuild new file mode 100644 index 0000000..668cb37 --- /dev/null +++ b/media-gfx/pdftoipe/pdftoipe-20110916-r2.ebuild @@ -0,0 +1,44 @@ +# 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 + epatch "${FILESDIR}"/poppler-0.20.patch || die +} + +src_compile() { + emake || die +} + +src_install() { + exeinto /usr/bin/ + doexe $S/pdftoipe + doman $S/pdftoipe.1 + dodoc $S/readme.txt +} + + -- 2.39.5