diff options
author | Pavel Sanda <ps@twin.jikos.cz> | 2012-02-14 23:49:16 +0100 |
---|---|---|
committer | Pavel Sanda <ps@twin.jikos.cz> | 2012-02-14 23:49:16 +0100 |
commit | 3a8dd8b041075d3c44d916d716ec7315caf6608c (patch) | |
tree | 62f944cf185fc129c8985f3a073debfa066cb30c /app-text/xpdf | |
parent | bump esmska (diff) | |
download | rebutia-3a8dd8b041075d3c44d916d716ec7315caf6608c.tar.gz rebutia-3a8dd8b041075d3c44d916d716ec7315caf6608c.tar.bz2 rebutia-3a8dd8b041075d3c44d916d716ec7315caf6608c.zip |
Migrate xpdf from portage before removal
Diffstat (limited to 'app-text/xpdf')
-rw-r--r-- | app-text/xpdf/Manifest | 4 | ||||
-rw-r--r-- | app-text/xpdf/files/xpdf-3.02-poppler-0.16.patch | 13 | ||||
-rw-r--r-- | app-text/xpdf/xpdf-3.02-r4.ebuild | 84 |
3 files changed, 101 insertions, 0 deletions
diff --git a/app-text/xpdf/Manifest b/app-text/xpdf/Manifest new file mode 100644 index 0000000..9814652 --- /dev/null +++ b/app-text/xpdf/Manifest @@ -0,0 +1,4 @@ +AUX xpdf-3.02-poppler-0.16.patch 508 RMD160 f671fc6f8951f1e09adb885015d2b4028e14fe94 SHA1 77add0ae138490718c08193f4e066c790c5613c7 SHA256 1eba6540056c72c71db9845dac660398b27f228fe50dd0e7dd548101f94aa013 +DIST xpdf-3.02-patchset-03.tar.xz 8892 RMD160 f9a8bf9b1793cdcc2573b416d105f84253d0dbfe SHA1 e6b787e747bd0990c9ffe063c184eafc2782716b SHA256 b95521deaf4e646e3d0c97cbce50bfb52f8e761609f9803b5472ea30aaa00e4b +DIST xpdf-3.02-poppler-20071121.tar.bz2 107935 RMD160 faf276c824ef12f44609ef7610dc309c87ee3c96 SHA1 bb548689ca2107e99e51b48060e0b583ed9e10ed SHA256 5e04476110ef9ec122e5aa427b4be5e79a003d2740ec8c65b32f526a03b52ed5 +EBUILD xpdf-3.02-r4.ebuild 1940 RMD160 4a62bde4d9f1931e1a96b420d144e350f1fcd376 SHA1 8dc3d859069023a59068de9065f8c6744dea6e95 SHA256 9641931177d4ad36c73a9f68e35b56a3ca3d56d37a08f249f0ba118965488da2 diff --git a/app-text/xpdf/files/xpdf-3.02-poppler-0.16.patch b/app-text/xpdf/files/xpdf-3.02-poppler-0.16.patch new file mode 100644 index 0000000..ea2d5ee --- /dev/null +++ b/app-text/xpdf/files/xpdf-3.02-poppler-0.16.patch @@ -0,0 +1,13 @@ +Index: xpdf-3.02-poppler/XPDFViewer.cc +=================================================================== +--- xpdf-3.02-poppler.orig/XPDFViewer.cc ++++ xpdf-3.02-poppler/XPDFViewer.cc +@@ -3447,7 +3447,7 @@ void XPDFViewer::printPrintCbk(Widget wi + lastPage = doc->getNumPages(); + } + +- psOut = new PSOutputDev(psFileName->getCString(), doc->getXRef(), ++ psOut = new PSOutputDev(psFileName->getCString(), doc, doc->getXRef(), + doc->getCatalog(), + NULL, + firstPage, lastPage, psModePS); diff --git a/app-text/xpdf/xpdf-3.02-r4.ebuild b/app-text/xpdf/xpdf-3.02-r4.ebuild new file mode 100644 index 0000000..6f6cf08 --- /dev/null +++ b/app-text/xpdf/xpdf-3.02-r4.ebuild @@ -0,0 +1,84 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/xpdf-3.02-r4.ebuild,v 1.12 2011/10/18 21:56:02 dilfridge Exp $ + +EAPI=4 + +inherit fdo-mime gnome2 eutils flag-o-matic toolchain-funcs + +DESCRIPTION="An X Viewer for PDF Files" +HOMEPAGE="http://www.foolabs.com/xpdf/" +SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}-poppler-20071121.tar.bz2 + http://dev.gentoo.org/~scarabeus/xpdf-3.02-patchset-03.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="nodrm" + +RDEPEND=" + >=app-text/poppler-0.18.0[xpdf-headers] + >=x11-libs/openmotif-2.3:0 + x11-libs/libX11 + x11-libs/libXpm + " + +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +S=${WORKDIR}/${P}-poppler + +PATCHDIR="${WORKDIR}/${PV}" + +pkg_setup() { + append-flags '-DSYSTEM_XPDFRC="\"/etc/xpdfrc\""' + # We know it's there, probably won't get rid of it, so let's make + # the build output readable by removing it. + einfo "Suppressing warning overload with -Wno-write-strings" + append-cxxflags -Wno-write-strings +} + +src_prepare() { + export EPATCH_SUFFIX=patch + export EPATCH_SOURCE="${PATCHDIR}" + epatch + use nodrm && epatch "${PATCHDIR}/xpdf-3.02-poppler-nodrm.patch" + has_version '>=app-text/poppler-0.16' && epatch "${FILESDIR}/${P}-poppler-0.16.patch" + mv parseargs.c parseargs.cc +} + +src_configure() { + : +} + +src_compile() { + tc-export CXX + emake +} + +src_install() { + dobin xpdf + doman xpdf.1 + insinto /etc + doins "${PATCHDIR}"/xpdfrc + dodoc README ANNOUNCE CHANGES + doicon "${PATCHDIR}"/xpdf.png + insinto /usr/share/applications + doins "${PATCHDIR}"/xpdf.desktop +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} |