diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-04 12:39:27 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-05 20:10:31 -0500 |
commit | 5673fd51af72062da4b80c7c20ee291e5a361682 (patch) | |
tree | 861222ebba50ffcbdbb8eceee687e4aa905a24e7 /python | |
parent | 6394ae7a41aedd9f94f93200b99e9142093263fd (diff) |
python/pypoppler: Included a patch inspired from Fedora.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'python')
-rw-r--r-- | python/pypoppler/patches/pypoppler-0.12.1-poppler-0.18.0-minimal-fix-revisited.patch | 69 | ||||
-rw-r--r-- | python/pypoppler/pypoppler.SlackBuild | 3 |
2 files changed, 71 insertions, 1 deletions
diff --git a/python/pypoppler/patches/pypoppler-0.12.1-poppler-0.18.0-minimal-fix-revisited.patch b/python/pypoppler/patches/pypoppler-0.12.1-poppler-0.18.0-minimal-fix-revisited.patch new file mode 100644 index 0000000000000..00d668b5be39d --- /dev/null +++ b/python/pypoppler/patches/pypoppler-0.12.1-poppler-0.18.0-minimal-fix-revisited.patch @@ -0,0 +1,69 @@ +derived from here:
+http://pkgs.fedoraproject.org/cgit/pypoppler.git/commit/?id=f7475801b5176fd8523cc1ff354ab954f3cd44b4
+
+diff -Naur pypoppler-0.12.1.orig/poppler.defs pypoppler-0.12.1/poppler.defs
+--- pypoppler-0.12.1.orig/poppler.defs 2012-08-28 19:30:12.804472077 +0200
++++ pypoppler-0.12.1/poppler.defs 2012-08-28 19:31:28.035467000 +0200
+@@ -1646,62 +1646,6 @@
+ (return-type "GType")
+ )
+
+-(define-method render_to_pixbuf
+- (of-object "PopplerPage")
+- (c-name "poppler_page_render_to_pixbuf")
+- (return-type "none")
+- (unblock-threads #t)
+- (parameters
+- '("int" "src_x")
+- '("int" "src_y")
+- '("int" "src_width")
+- '("int" "src_height")
+- '("double" "scale")
+- '("int" "rotation")
+- '("GdkPixbuf*" "pixbuf")
+- )
+-)
+-
+-(define-method render_to_pixbuf_for_printing
+- (of-object "PopplerPage")
+- (c-name "poppler_page_render_to_pixbuf_for_printing")
+- (return-type "none")
+- (unblock-threads #t)
+- (parameters
+- '("int" "src_x")
+- '("int" "src_y")
+- '("int" "src_width")
+- '("int" "src_height")
+- '("double" "scale")
+- '("int" "rotation")
+- '("GdkPixbuf*" "pixbuf")
+- )
+-)
+-
+-(define-method get_thumbnail_pixbuf
+- (of-object "PopplerPage")
+- (c-name "poppler_page_get_thumbnail_pixbuf")
+- (return-type "GdkPixbuf*")
+- (unblock-threads #t)
+-)
+-
+-(define-method render_selection_to_pixbuf
+- (of-object "PopplerPage")
+- (c-name "poppler_page_render_selection_to_pixbuf")
+- (return-type "none")
+- (unblock-threads #t)
+- (parameters
+- '("gdouble" "scale")
+- '("int" "rotation")
+- '("GdkPixbuf*" "pixbuf")
+- '("PopplerRectangle*" "selection")
+- '("PopplerRectangle*" "old_selection")
+- '("PopplerSelectionStyle" "style")
+- '("GdkColor*" "glyph_color")
+- '("GdkColor*" "background_color")
+- )
+-)
+-
+ (define-method render
+ (of-object "PopplerPage")
+ (c-name "poppler_page_render")
\ No newline at end of file diff --git a/python/pypoppler/pypoppler.SlackBuild b/python/pypoppler/pypoppler.SlackBuild index 5dd92b55539b7..733946949da74 100644 --- a/python/pypoppler/pypoppler.SlackBuild +++ b/python/pypoppler/pypoppler.SlackBuild @@ -6,7 +6,7 @@ PRGNAM=pypoppler VERSION=0.12.1 -BUILD=${BUILD:-3} +BUILD=${BUILD:-4} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -51,6 +51,7 @@ find . \ patch -p0 < $CWD/patches/pypoppler-0.12.1-75_74.diff patch -p0 < $CWD/patches/pypoppler-0.12.1-79_78.diff patch -p0 < $CWD/patches/poppler0.15.0-changes.patch +patch -p1 < $CWD/patches/pypoppler-0.12.1-poppler-0.18.0-minimal-fix-revisited.patch autoreconf -ivf |