mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
python/pypoppler: Reverted pypoppler-0.12.1-76_75.diff
Removed patch "pypoppler-0.12.1-76_75.diff" due to issues displaying PDF files in pdfshuffler. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
977a5c5339
commit
9c7d60c179
3 changed files with 4 additions and 70 deletions
|
@ -1,66 +0,0 @@
|
|||
--- poppler.override
|
||||
+++ poppler.override
|
||||
@@ -600,3 +600,62 @@
|
||||
return PycairoSurface_FromSurface(surface, NULL, NULL);
|
||||
#endif
|
||||
}
|
||||
+%%
|
||||
+override poppler_page_render_to_pixbuf kwargs
|
||||
+static PyObject *
|
||||
+_wrap_poppler_page_render_to_pixbuf(PyGObject *self,
|
||||
+ PyObject *args,
|
||||
+ PyObject *kwargs)
|
||||
+{
|
||||
+ static char *kwlist[] = { "src_x", "src_y", "src_width",
|
||||
+ "src_height", "scale", "rotation", NULL };
|
||||
+ int src_x, src_y, src_width, src_height, rotation;
|
||||
+ double scale;
|
||||
+ GdkPixbuf *pixbuf = NULL;
|
||||
+
|
||||
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
+ "iiiidi:Poppler.Page.render_to_pixbuf",
|
||||
+ kwlist, &src_x, &src_y, &src_width,
|
||||
+ &src_height, &scale, &rotation))
|
||||
+ return NULL;
|
||||
+
|
||||
+ pyg_begin_allow_threads;
|
||||
+
|
||||
+ poppler_page_render_to_pixbuf(POPPLER_PAGE(self->obj), src_x, src_y,
|
||||
+ src_width, src_height, scale,
|
||||
+ rotation, pixbuf);
|
||||
+
|
||||
+ pyg_end_allow_threads;
|
||||
+
|
||||
+ return pygobject_new((GObject *)pixbuf);
|
||||
+}
|
||||
+%%
|
||||
+override poppler_page_render_to_pixbuf_for_printing kwargs
|
||||
+static PyObject *
|
||||
+_wrap_poppler_page_render_to_pixbuf_for_printing(PyGObject *self,
|
||||
+ PyObject *args,
|
||||
+ PyObject *kwargs)
|
||||
+{
|
||||
+ static char *kwlist[] = { "src_x", "src_y", "src_width",
|
||||
+ "src_height", "scale", "rotation", NULL };
|
||||
+ int src_x, src_y, src_width, src_height, rotation;
|
||||
+ double scale;
|
||||
+ GdkPixbuf *pixbuf = NULL;
|
||||
+
|
||||
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs,
|
||||
+ "iiiidi:Poppler.Page.render_to_pixbuf_for_printing",
|
||||
+ kwlist, &src_x, &src_y, &src_width,
|
||||
+ &src_height, &scale, &rotation))
|
||||
+ return NULL;
|
||||
+
|
||||
+ pyg_begin_allow_threads;
|
||||
+
|
||||
+ poppler_page_render_to_pixbuf_for_printing(POPPLER_PAGE(self->obj),
|
||||
+ src_x, src_y, src_width,
|
||||
+ src_height, scale,
|
||||
+ rotation, pixbuf);
|
||||
+
|
||||
+ pyg_end_allow_threads;
|
||||
+
|
||||
+ return pygobject_new((GObject *)pixbuf);
|
||||
+}
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
PRGNAM=pypoppler
|
||||
VERSION=0.12.1
|
||||
BUILD=${BUILD:-2}
|
||||
BUILD=${BUILD:-3}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
if [ -z "$ARCH" ]; then
|
||||
|
@ -30,7 +30,6 @@ elif [ "$ARCH" = "x86_64" ]; then
|
|||
SLKCFLAGS="-O2 -fPIC"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e
|
||||
|
@ -50,10 +49,11 @@ find . \
|
|||
|
||||
# Fix building with poppler 0.15+ and some upstream fixes.
|
||||
patch -p0 < $CWD/patches/pypoppler-0.12.1-75_74.diff
|
||||
patch -p0 < $CWD/patches/pypoppler-0.12.1-76_75.diff
|
||||
patch -p0 < $CWD/patches/pypoppler-0.12.1-79_78.diff
|
||||
patch -p0 < $CWD/patches/poppler0.15.0-changes.patch
|
||||
|
||||
autoreconf -ivf
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Larry Hajali"
|
||||
EMAIL="larryhaja[at]gmail[dot]com"
|
||||
APPROVED="dsomero"
|
||||
APPROVED="rworkman"
|
||||
|
|
Loading…
Reference in a new issue