xap/evince: Upgraded to evince-3.4.0.

slackware-14.2
Damien Goutte-Gattat 11 years ago
parent d46e102192
commit 8fcf657760

@ -1,35 +0,0 @@
diff -Naur evince-2.30.3.orig/backend/pdf/ev-poppler.cc evince-2.30.3/backend/pdf/ev-poppler.cc
--- evince-2.30.3.orig/backend/pdf/ev-poppler.cc 2010-06-24 10:19:28.000000000 +0200
+++ evince-2.30.3/backend/pdf/ev-poppler.cc 2011-05-26 16:28:01.115974121 +0200
@@ -1975,21 +1975,25 @@
{
PopplerPage *poppler_page;
PopplerRectangle r;
- double height;
- char *retval;
+ char *retval, *c;
poppler_page = POPPLER_PAGE (rc->page->backend_page);
- poppler_page_get_size (poppler_page, NULL, &height);
r.x1 = points->x1;
- r.y1 = height - points->y2;
+ r.y1 = points->y1;
r.x2 = points->x2;
- r.y2 = height - points->y1;
+ r.y2 = points->y2;
- retval = poppler_page_get_text (poppler_page,
+ retval = c = poppler_page_get_selected_text (poppler_page,
(PopplerSelectionStyle)style,
&r);
+ while ( *c ) {
+ if ( *c == '\n' )
+ *c = ' ';
+ c += 1;
+ }
+
return retval;
}

@ -1 +0,0 @@
381730a6fc66bbd823edbd0aa50b480e5d40f130 evince-2.30.3.tar.bz2

@ -0,0 +1 @@
7159f4b1486fc07b5be93c3034965395d41c458a evince-3.4.0.tar.xz

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2011 Damien Goutte-Gattat
# Copyright (C) 2011,2012 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -27,13 +27,13 @@
# Source package infos
NAMESRC=${NAMESRC:-evince}
VERSION=${VERSION:-2.30.3}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.bz2}
WGET=${WGET:-http://ftp.gnome.org/pub/GNOME/sources/evince/2.30/$ARCHIVE}
VERSION=${VERSION:-3.4.0}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.xz}
WGET=${WGET:-http://ftp.gnome.org/pub/GNOME/sources/evince/3.4/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-evince}
BUILD=${BUILD:-3GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -84,7 +84,6 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p 1 < $CWD/evince-2.30.3-poppler.diff
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
@ -92,8 +91,7 @@ CXXFLAGS=$CPUOPT \
--libdir=/usr/lib$LIBDIRSUFFIX \
--mandir=/usr/man \
--docdir=/usr/doc/$NAME \
--without-keyring \
--without-gconf \
--disable-static \
--disable-nautilus \
--disable-scrollkeeper
make -j $JOBS

Loading…
Cancel
Save