summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Sanda <ps@twin.jikos.cz>2012-04-03 02:38:45 +0200
committerPavel Sanda <ps@twin.jikos.cz>2012-04-03 02:38:45 +0200
commitc2a5bdf6b1646c648d8ff284a93f51c67f87a4d5 (patch)
treecfc2b5134ac243f044ef5e58108ab62908495ae7 /app-text/xpdf
parentSmall xpdf test (diff)
downloadrebutia-c2a5bdf6b1646c648d8ff284a93f51c67f87a4d5.tar.gz
rebutia-c2a5bdf6b1646c648d8ff284a93f51c67f87a4d5.tar.bz2
rebutia-c2a5bdf6b1646c648d8ff284a93f51c67f87a4d5.zip
Forgot the xpdf ebuild itself
Diffstat (limited to 'app-text/xpdf')
-rw-r--r--app-text/xpdf/xpdf-3.03.ebuild83
1 files changed, 83 insertions, 0 deletions
diff --git a/app-text/xpdf/xpdf-3.03.ebuild b/app-text/xpdf/xpdf-3.03.ebuild
new file mode 100644
index 0000000..6281562
--- /dev/null
+++ b/app-text/xpdf/xpdf-3.03.ebuild
@@ -0,0 +1,83 @@
+# 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="
+ >=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
+}