xap/epdfview: Upgraded to epdfview-0.1.8.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent 8fcf657760
commit 43423a7e76
  1. 33
      xap/epdfview/epdfview-0.1.7-mouse-scroll.diff
  2. 13
      xap/epdfview/epdfview-0.1.7-poppler.diff
  3. 1
      xap/epdfview/epdfview-0.1.7.tar.gz.sha1
  4. 1
      xap/epdfview/epdfview-0.1.8.tar.gz.sha1
  5. 15
      xap/epdfview/epdfview.SlackBuild
  6. 11
      xap/epdfview/epdfview.desktop

@ -1,33 +0,0 @@
--- src/gtk/MainView.cxx~
+++ src/gtk/MainView.cxx
@@ -77,7 +77,7 @@
static void main_window_zoom_out_cb (GtkWidget *, gpointer);
static void main_window_zoom_width_cb (GtkToggleAction *, gpointer);
static void main_window_set_page_mode (GtkRadioAction *, GtkRadioAction *, gpointer);
-static void main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
+static gboolean main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data);
#if defined (HAVE_CUPS)
static void main_window_print_cb (GtkWidget *, gpointer);
@@ -1479,18 +1479,19 @@
pter->setPageMode (mode);
}
-void
+gboolean
main_window_page_scrolled_cb (GtkWidget *widget, GdkEventScroll *event, gpointer data)
{
g_assert ( NULL != data && "The data parameter is NULL.");
MainPter *pter = (MainPter *)data;
// Only zoom when the CTRL-Button is down...
- if ( !(event->state & GDK_CONTROL_MASK) ) return;
+ if ( !(event->state & GDK_CONTROL_MASK) ) return FALSE;
if ( event->direction == GDK_SCROLL_UP ) {
pter->zoomInActivated ();
} else if ( event->direction == GDK_SCROLL_DOWN ) {
pter->zoomOutActivated ();
}
+ return TRUE;
}

@ -1,13 +0,0 @@
diff -Naur epdfview-0.1.7.orig/src/PDFDocument.cxx epdfview-0.1.7/src/PDFDocument.cxx
--- epdfview-0.1.7.orig/src/PDFDocument.cxx 2011-04-29 12:55:28.185708682 +0200
+++ epdfview-0.1.7/src/PDFDocument.cxx 2011-04-29 12:55:46.076504165 +0200
@@ -686,8 +686,7 @@
repairEmpty(textRect);
#if defined (HAVE_POPPLER_0_6_0)
- gchar *text = poppler_page_get_text(page, POPPLER_SELECTION_GLYPH,
- &textRect);
+ gchar *text = poppler_page_get_text(page);
#else // !HAVE_POPPLER_0_6_0
gchar *text = poppler_page_get_text(page, &textRect);
#endif // HAVE_POPPLER_0_6_0

@ -1 +0,0 @@
3d680d2a66deff5bd0a1c37e867c744a310e76aa epdfview-0.1.7.tar.gz

@ -0,0 +1 @@
3137816b580227705db693355c57de070a0ed9b6 epdfview-0.1.8.tar.gz

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2009,2011 Damien Goutte-Gattat
# Copyright (C) 2009,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:-epdfview}
VERSION=${VERSION:-0.1.7}
VERSION=${VERSION:-0.1.8}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
WGET=${WGET:-http://trac.emma-soft.com/epdfview/chrome/site/releases/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-epdfview}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
JOBS=${JOBS:-1}
EXT=${EXT:-txz}
@ -82,25 +82,24 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
patch -p0 < $CWD/epdfview-$VERSION-mouse-scroll.diff
patch -p1 < $CWD/epdfview-$VERSION-poppler.diff
sed -ri 's,glib/gmacros\.h,glib.h,' src/gtk/StockIcons.h
CFLAGS=$CPUOPT \
CXXFLAGS=$CPUOPT \
./configure \
--prefix=/usr \
--mandir=/usr/man \
--with-cups
make -j $JOBS
make install-strip DESTDIR=$PKG
# Install desktop files
mkdir -p $PKG/usr/share/{pixmaps,applications}
install -m 644 $CWD/epdfview.desktop $PKG/usr/share/applications/
mkdir -p $PKG/usr/share/pixmaps
ln -sf /usr/share/epdfview/pixmaps/icon_epdfview-48.png \
$PKG/usr/share/pixmaps/epdfview.png
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME
install -m 644 ABOUT-NLS AUTHORS COPYING NEWS README THANKS $PKG/usr/doc/$NAME
install -m 644 AUTHORS COPYING NEWS README THANKS $PKG/usr/doc/$NAME
# Copy slack-desc file
install -D -m 644 $CWD/slack-desc $PKG/install/slack-desc

@ -1,11 +0,0 @@
[Desktop Entry]
Categories=Viewer;Office;GTK
Comment=Lightweight PDF document viewer
Encoding=UTF-8
Exec=epdfview %f
GenericName=PDF Viewer
Icon=epdfview.png
Name=ePDFView
MimeType=application/pdf
Terminal=false
Type=Application
Loading…
Cancel
Save