Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2012 07:32:24 GMT
From:      Kuan-Chung Chiu <buganini@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166781: [update] graphics/py-poppler 0.12.1
Message-ID:  <201204090732.q397WOGV015304@red.freebsd.org>
Resent-Message-ID: <201204090740.q397eD6j040028@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166781
>Category:       ports
>Synopsis:       [update] graphics/py-poppler 0.12.1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 09 07:40:13 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kuan-Chung Chiu
>Release:        
>Organization:
N/A
>Environment:
>Description:
Update graphics/py-poppler to 0.12.1
and remove some obsolete API bindings.
ref: https://bugs.launchpad.net/poppler-python/+bug/776234

build log: https://redports.org/buildarchive/20120408215648-38214/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN py-poppler.orig/Makefile py-poppler/Makefile
--- py-poppler.orig/Makefile	2012-04-09 05:35:30.000000000 +0800
+++ py-poppler/Makefile	2012-04-09 05:38:07.000000000 +0800
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	poppler
-PORTVERSION=	0.10.1
-PORTREVISION=	5
+PORTVERSION=	0.12.1
 CATEGORIES=	graphics python
 MASTER_SITES=	https://launchpad.net/poppler-python/trunk/development/+download/ \
 		http://launchpadlibrarian.net/30270080/ \
@@ -18,6 +17,8 @@
 MAINTAINER=	romain@FreeBSD.org
 COMMENT=	Python bindings for the Poppler PDF rendering library
 
+FETCH_ARGS=	-pRr
+
 LIB_DEPENDS=	poppler-glib.8:${PORTSDIR}/graphics/poppler-glib
 
 USE_PYTHON=	yes
diff -ruN py-poppler.orig/distinfo py-poppler/distinfo
--- py-poppler.orig/distinfo	2012-04-09 05:35:30.000000000 +0800
+++ py-poppler/distinfo	2012-04-09 05:38:21.000000000 +0800
@@ -1,2 +1,2 @@
-SHA256 (pypoppler-0.10.1.tar.gz) = 0b52212393e392e966c3cf82cd514768e01442100486ab84a5244aed6235c75e
-SIZE (pypoppler-0.10.1.tar.gz) = 312081
+SHA256 (pypoppler-0.12.1.tar.gz) = 322f183d24798a056f3005d1ab8e3ac27d8cfbbf0982725b323bbfec1bab5355
+SIZE (pypoppler-0.12.1.tar.gz) = 318142
diff -ruN py-poppler.orig/files/patch-poppler.defs py-poppler/files/patch-poppler.defs
--- py-poppler.orig/files/patch-poppler.defs	2012-04-09 05:35:30.000000000 +0800
+++ py-poppler/files/patch-poppler.defs	2012-04-09 05:53:15.000000000 +0800
@@ -1,7 +1,65 @@
-diff -up pypoppler-0.12.1/poppler.defs.poppler15 pypoppler-0.12.1/poppler.defs
---- poppler.defs.poppler15	2010-10-06 16:02:47.023101009 -0400
-+++ poppler.defs	2010-10-06 16:10:32.749101000 -0400
-@@ -1760,6 +1760,12 @@
+--- poppler.defs.orig	2009-09-27 17:07:59.000000000 +0800
++++ poppler.defs	2012-04-09 05:50:38.000000000 +0800
+@@ -1646,58 +1646,6 @@
+   (return-type "GType")
+ )
+ 
+-(define-method render_to_pixbuf
+-  (of-object "PopplerPage")
+-  (c-name "poppler_page_render_to_pixbuf")
+-  (return-type "none")
+-  (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")
+-  (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*")
+-)
+-
+-(define-method render_selection_to_pixbuf
+-  (of-object "PopplerPage")
+-  (c-name "poppler_page_render_selection_to_pixbuf")
+-  (return-type "none")
+-  (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")
+@@ -1752,6 +1700,12 @@
    (return-type "int")
  )
  
@@ -14,7 +72,7 @@
  (define-method get_duration
    (of-object "PopplerPage")
    (c-name "poppler_page_get_duration")
-@@ -1805,9 +1811,15 @@
+@@ -1796,9 +1750,15 @@
    (of-object "PopplerPage")
    (c-name "poppler_page_get_text")
    (return-type "char*")
@@ -31,7 +89,7 @@
    )
  )
  
-@@ -1895,6 +1907,16 @@
+@@ -1886,6 +1846,16 @@
    )
  )
  
@@ -48,7 +106,7 @@
  (define-method get_crop_box
    (of-object "PopplerPage")
    (c-name "poppler_page_get_crop_box")
-@@ -1904,6 +1926,16 @@
+@@ -1895,6 +1865,16 @@
    )
  )
  


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201204090732.q397WOGV015304>