From 9ac64013666e0a79f2cbfd034335ac379c3fbeac Mon Sep 17 00:00:00 2001
From: Erik Hanson <erik@slackbuilds.org>
Date: Tue, 10 May 2011 17:09:43 -0500
Subject: office/evince: Added various patches to fix things.

  No idea which patch(es) fixes the segfault,
  don't really care to find out.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
---
 office/evince/evince.SlackBuild | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

(limited to 'office/evince/evince.SlackBuild')

diff --git a/office/evince/evince.SlackBuild b/office/evince/evince.SlackBuild
index dce97bd9cddbe..b5f8a78f4ce9c 100644
--- a/office/evince/evince.SlackBuild
+++ b/office/evince/evince.SlackBuild
@@ -25,7 +25,7 @@
 
 PRGNAM=evince
 VERSION=${VERSION:-2.32.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
 TAG=${TAG=_SBo}
 
 if [ -z "$ARCH" ]; then
@@ -72,6 +72,14 @@ find . \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;
 
+#  http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-text/evince/files/
+for PATCH in $CWD/patches/* ; do
+  echo $PATCH
+  patch -p1 < $PATCH
+done
+
+autoreconf # we need to do this after the poppler api update patch
+
 if [ "$NLS" != "YES" ]; then
     # disable NLS - we're going for a small package here.
     rm po/*.po
@@ -79,10 +87,6 @@ if [ "$NLS" != "YES" ]; then
       -e 's/ENABLE_NLS 1/ENABLE_NLS 0/g' configure
 fi
 
-# Make evince compile against the newer poppler. Patch with
-# much thanks to Niels Horn.
-# patch -p1 < $CWD/evince_poppler016.patch
-
 CFLAGS="$SLKCFLAGS" \
 CXXFLAGS="$SLKCFLAGS" \
 ./configure \
-- 
cgit v1.2.3