summaryrefslogtreecommitdiff
path: root/app-text/xpdf
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/xpdf')
-rw-r--r--app-text/xpdf/Manifest5
-rw-r--r--app-text/xpdf/files/xpdf-3.02-poppler-0.16.patch13
-rw-r--r--app-text/xpdf/files/xpdf-3.03-poppler-0.16.patch13
-rw-r--r--app-text/xpdf/xpdf-3.03.ebuild84
4 files changed, 115 insertions, 0 deletions
diff --git a/app-text/xpdf/Manifest b/app-text/xpdf/Manifest
new file mode 100644
index 00000000..dbf83aaa
--- /dev/null
+++ b/app-text/xpdf/Manifest
@@ -0,0 +1,5 @@
+AUX xpdf-3.02-poppler-0.16.patch 508 SHA256 1eba6540056c72c71db9845dac660398b27f228fe50dd0e7dd548101f94aa013 SHA512 4281a2ef8e95b8d79fe039357da6295778096ab0a9cc7d337bd94afc86d0d86a11859b74b065a08024b4a2fba0d48cf8b0080d7f3856e6ca6d5c84bcb825023b WHIRLPOOL b258e4688d0480a30aa191643370ae11b601e34bcda159cb867fbcdbd63d335d3f283e39f043b7df87500a0a67a6f4cac75b65878ac01a94426f11f01c5251fd
+AUX xpdf-3.03-poppler-0.16.patch 508 SHA256 1eba6540056c72c71db9845dac660398b27f228fe50dd0e7dd548101f94aa013 SHA512 4281a2ef8e95b8d79fe039357da6295778096ab0a9cc7d337bd94afc86d0d86a11859b74b065a08024b4a2fba0d48cf8b0080d7f3856e6ca6d5c84bcb825023b WHIRLPOOL b258e4688d0480a30aa191643370ae11b601e34bcda159cb867fbcdbd63d335d3f283e39f043b7df87500a0a67a6f4cac75b65878ac01a94426f11f01c5251fd
+DIST xpdf-3.03-patchset.tgz 9494 SHA256 0d8611f2d4f4a0f8ccc1f004779ff8442b5a6bde4eaed17e042460f41c19bd37 SHA512 995ac5f58a2a53969f402a3fad6d8b847462ecdf4dfa5a66001955508b934085f4a82a60c372606a0e84ba27a6aa94764b217d46d9a5a3a25453ba01883d9271 WHIRLPOOL c8988df2ee7af140f6d12052aab2ab8aafcc89ea5ea9b0e2d3c3391eb7e082c7241740e12521f9ffe9e5122aa21b22f1839c3faf04cf4e8827f8fdf0448974c3
+DIST xpdf-3.03-poppler.tgz 131039 SHA256 d86d8bc34d38de342e1f8adc7994499c36db6b0756c61f05712a0c9101c9860a SHA512 b3f9db8e4f6c2f1d9d580c177e569415fa31ca565085e1b1438c70d52f4f6b71f4f576d08c1a3c59832a3afa4dcabd10f04903cbd99ba8ca868166d0baba484c WHIRLPOOL 3af57170e515ba00fda8447db2788e9ead5511906598ca13ccea50c6a517b67e46cdf186b96df45ecbfe91d2197f2f6dfd305928c437f00f5971a2bac1d39b86
+EBUILD xpdf-3.03.ebuild 1916 SHA256 a1ac8fd6ed717423f1021b493c51a9a95a5186b267d30ad4334a626a8ecc5b96 SHA512 d61ec6c0bb23f85f756bdf2d9213420cb6e0f247a8a46d02fe30291e3524d33d002fb6e9bd491c849f1916ceced93c77a102dd931c529b7930cb5357bb68e708 WHIRLPOOL 2a0634e4c499fc247c36f6561cbd538f9974655d96c40907cc06bc77e77b7a1c370ff702415d2e73230c5ef86633362becc0fa81f51df25fd7829a23c84a3c2a
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 00000000..ea2d5ee2
--- /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/files/xpdf-3.03-poppler-0.16.patch b/app-text/xpdf/files/xpdf-3.03-poppler-0.16.patch
new file mode 100644
index 00000000..ea2d5ee2
--- /dev/null
+++ b/app-text/xpdf/files/xpdf-3.03-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.03.ebuild b/app-text/xpdf/xpdf-3.03.ebuild
new file mode 100644
index 00000000..9d71d91d
--- /dev/null
+++ b/app-text/xpdf/xpdf-3.03.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://195.113.26.193/~sanda/mirror/${P}-poppler.tgz
+ http://195.113.26.193/~sanda/mirror/xpdf-3.03-patchset.tgz"
+
+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
+}