Follow API change in poppler-0.16.

Index: Makefile
===================================================================
RCS file: /cvs/ports/print/py-poppler/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile    18 May 2011 11:06:24 -0000      1.2
+++ Makefile    23 May 2011 19:56:36 -0000
@@ -6,7 +6,7 @@ DISTNAME=       pypoppler-0.12.1
 PKGNAME=        ${DISTNAME:S/^py/py-/}
 CATEGORIES=    print
 
-REVISION=      0
+REVISION=      1
 
 MAINTAINER=    Ido Admon <ido...@gmail.com>
 
@@ -27,11 +27,11 @@ WANTLIB += Xi Xinerama Xrandr Xrender Xx
 WANTLIB += expat ffi fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
 WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
 WANTLIB += gtk-x11-2.0 jpeg lcms m openjpeg pango-1.0 pangocairo-1.0
-WANTLIB += pangoft2-1.0 pcre pixman-1 png poppler poppler-glib
+WANTLIB += pangoft2-1.0 pcre pixman-1 png poppler>=10 poppler-glib>=8
 WANTLIB += pthread-stubs xcb xcb-render xcb-shm xml2 z
 
 LIB_DEPENDS=           devel/libffi \
-                       print/poppler
+                       print/poppler>=0.16
 BUILD_DEPENDS=         ${RUN_DEPENDS}
 RUN_DEPENDS=           x11/py-gtk2>=2.10
 
Index: patches/patch-poppler_defs
===================================================================
RCS file: patches/patch-poppler_defs
diff -N patches/patch-poppler_defs
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-poppler_defs  23 May 2011 19:56:36 -0000
@@ -0,0 +1,16 @@
+$OpenBSD$
+--- poppler.defs.orig  Sun Sep 27 11:07:59 2009
++++ poppler.defs       Mon May 23 21:42:00 2011
+@@ -1796,6 +1796,12 @@
+   (of-object "PopplerPage")
+   (c-name "poppler_page_get_text")
+   (return-type "char*")
++)
++
++(define-method get_selected_text
++  (of-object "PopplerPage")
++  (c-name "poppler_page_get_selected_text")
++  (return-type "char*")
+   (parameters
+     '("PopplerSelectionStyle" "style")
+     '("PopplerRectangle*" "rect")

Reply via email to