summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonardo Boshell <leonardop@gentoo.org>2005-08-15 19:22:56 +0000
committerLeonardo Boshell <leonardop@gentoo.org>2005-08-15 19:22:56 +0000
commit293b6038b36ce33c96b65b38350ba34f18818c71 (patch)
tree66540c919ee1474e31487167150cf02e8073413c /x11-libs/pango
parentRemoving obsolete ebuilds. (diff)
downloadhistorical-293b6038b36ce33c96b65b38350ba34f18818c71.tar.gz
historical-293b6038b36ce33c96b65b38350ba34f18818c71.tar.bz2
historical-293b6038b36ce33c96b65b38350ba34f18818c71.zip
Added patch to pango-1.9.1 to fix compilation with latest cairo.
Package-Manager: portage-2.0.51.22-r2
Diffstat (limited to 'x11-libs/pango')
-rw-r--r--x11-libs/pango/ChangeLog6
-rw-r--r--x11-libs/pango/Manifest21
-rw-r--r--x11-libs/pango/files/pango-1.9.1-example_update.patch127
-rw-r--r--x11-libs/pango/pango-1.9.1.ebuild7
4 files changed, 148 insertions, 13 deletions
diff --git a/x11-libs/pango/ChangeLog b/x11-libs/pango/ChangeLog
index 61356734bede..c72d1552ca82 100644
--- a/x11-libs/pango/ChangeLog
+++ b/x11-libs/pango/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for x11-libs/pango
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/ChangeLog,v 1.101 2005/08/13 23:27:47 hansmi Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/ChangeLog,v 1.102 2005/08/15 19:22:56 leonardop Exp $
+
+ 15 Aug 2005; Leonardo Boshell <leonardop@gentoo.org>
+ +files/pango-1.9.1-example_update.patch, pango-1.9.1.ebuild:
+ Added patch from upstream's CVS to fix compilation with latest cairo.
13 Aug 2005; Michael Hanselmann <hansmi@gentoo.org> pango-1.8.1-r1.ebuild:
Stable on ppc.
diff --git a/x11-libs/pango/Manifest b/x11-libs/pango/Manifest
index ebc5b237cce5..4c0d36a8ef5e 100644
--- a/x11-libs/pango/Manifest
+++ b/x11-libs/pango/Manifest
@@ -1,16 +1,17 @@
+MD5 1d04a7f3b6ef97fdf1fe2824e737fb76 ChangeLog 11452
MD5 03ad2e6c4ab41244af1015a8bbb0b39f metadata.xml 158
-MD5 6677d22868244a855a3c96864c68d678 pango-1.8.1-r1.ebuild 1981
-MD5 f02c8ff7cfe04d567af300b41997d0fd ChangeLog 11258
MD5 a4d0ffeb51ccd5e32c1bdecbe004ab3e pango-1.4.1-r1.ebuild 1881
-MD5 47612e4ba2b80cb47840de1e417a2d80 pango-1.9.1.ebuild 1974
-MD5 724ba9499e8fd9e01e37131a0622919e pango-1.8.1.ebuild 1908
MD5 8d043b3f2faa24b8dd62c812b4f268ef pango-1.8.2.ebuild 1849
-MD5 2c7eef6720e5a5aecb7406200c6ede31 files/pango-1.2.5-lib64.patch 1107
-MD5 f4bdf9776f30cba53c77463c3226440d files/digest-pango-1.9.1 65
-MD5 54a56a572951b08340d08e10e4d93414 files/pango-1.0.99.020606-xfonts.patch 4560
+MD5 724ba9499e8fd9e01e37131a0622919e pango-1.8.1.ebuild 1908
+MD5 6677d22868244a855a3c96864c68d678 pango-1.8.1-r1.ebuild 1981
+MD5 46f0200d9612a2c8f9b7f4a716f27930 pango-1.9.1.ebuild 2089
MD5 64bcab7976f0bf42506cf97f7336e0c1 files/digest-pango-1.8.2 65
-MD5 54474022d422b0d0cf4b473cfcf5fffb files/digest-pango-1.8.1 64
-MD5 8de5114d2f4367487b3d70b712115ec4 files/pango-1.8.1-fontfix.patch 1320
MD5 941770096c4a3927b2acb1b81f90b915 files/digest-pango-1.4.1-r1 64
-MD5 54474022d422b0d0cf4b473cfcf5fffb files/digest-pango-1.8.1-r1 64
+MD5 60b907b8b96d2afc19f76b87b4a723b2 files/pango-1.9.1-example_update.patch 3713
+MD5 54a56a572951b08340d08e10e4d93414 files/pango-1.0.99.020606-xfonts.patch 4560
MD5 ee91ace9933dbdbea591e08b6a82bb44 files/pango-1.2.2-slighthint.patch 1124
+MD5 2c7eef6720e5a5aecb7406200c6ede31 files/pango-1.2.5-lib64.patch 1107
+MD5 54474022d422b0d0cf4b473cfcf5fffb files/digest-pango-1.8.1 64
+MD5 54474022d422b0d0cf4b473cfcf5fffb files/digest-pango-1.8.1-r1 64
+MD5 8de5114d2f4367487b3d70b712115ec4 files/pango-1.8.1-fontfix.patch 1320
+MD5 f4bdf9776f30cba53c77463c3226440d files/digest-pango-1.9.1 65
diff --git a/x11-libs/pango/files/pango-1.9.1-example_update.patch b/x11-libs/pango/files/pango-1.9.1-example_update.patch
new file mode 100644
index 000000000000..7f4a62d00669
--- /dev/null
+++ b/x11-libs/pango/files/pango-1.9.1-example_update.patch
@@ -0,0 +1,127 @@
+diff -NurdB pango-1.9.1/examples/cairoview.c pango-1.9.1-patched/examples/cairoview.c
+--- pango-1.9.1/examples/cairoview.c 2005-07-26 08:44:07.000000000 -0500
++++ pango-1.9.1-patched/examples/cairoview.c 2005-08-15 14:05:15.000000000 -0500
+@@ -33,9 +33,8 @@
+
+ #include <pango/pangocairo.h>
+ #include <cairo-xlib.h>
+-#include <pixman.h>
+
+-static pixman_region16_t *update_region = NULL;
++static Region update_region = NULL;
+ static PangoContext *context;
+ static Display *display;
+ int screen;
+@@ -131,18 +130,14 @@
+ cairo_t *cr;
+ Pixmap pixmap;
+ GC gc;
+- pixman_box16_t *extents;
++ XRectangle extents;
+ int width, height;
+- int n_rects;
+- pixman_box16_t *rects;
+- XRectangle *xrects;
+- int i;
+
+ /* Create a temporary pixmap and a Cairo context pointing to it */
+- extents = pixman_region_extents (update_region);
++ XClipBox (update_region, &extents);
+
+- width = extents->x2 - extents->x1;
+- height = extents->y2 - extents->y1;
++ width = extents.width;
++ height = extents.height;
+
+ pixmap = XCreatePixmap (display, window, width, height,
+ DefaultDepth (display, screen));
+@@ -155,26 +150,13 @@
+ cr = render_data.cr = cairo_create (surface);
+ cairo_surface_destroy (surface);
+
+- render_data.x_offset = - extents->x1;
+- render_data.y_offset = - extents->y1;
++ render_data.x_offset = - extents.x;
++ render_data.y_offset = - extents.y;
+
+ do_cairo_transform (context, NULL, &render_data);
+
+ /* Clip to the current update region and fill with white */
+- n_rects = pixman_region_num_rects (update_region);
+- rects = pixman_region_rects (update_region);
+- xrects = g_new (XRectangle, n_rects);
+-
+- for (i = 0; i < n_rects; i++)
+- {
+- xrects[i].x = rects[i].x1;
+- xrects[i].y = rects[i].y1;
+- xrects[i].width = rects[i].x2 - rects[i].x1;
+- xrects[i].height = rects[i].y2 - rects[i].y1;
+-
+- cairo_rectangle (cr, xrects[i].x, xrects[i].y,
+- xrects[i].width, xrects[i].height);
+- }
++ cairo_rectangle (cr, extents.x, extents.y, extents.width, extents.height);
+
+ cairo_clip (cr);
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+@@ -187,29 +169,30 @@
+
+ /* Copy the updated area onto the window */
+ gc = XCreateGC (display, pixmap, 0, NULL);
+- XSetClipRectangles (display, gc, 0, 0, xrects, n_rects, YXBanded);
+
+ XCopyArea (display, pixmap, window, gc,
+ 0, 0,
+- extents->x2 - extents->x1, extents->y2 - extents->y1,
+- extents->x1, extents->y1);
++ extents.width, extents.height, extents.x, extents.y);
+
+- g_free (xrects);
+ XFreeGC (display, gc);
+ XFreePixmap (display, pixmap);
+
+- pixman_region_destroy (update_region);
++ XDestroyRegion (update_region);
+ update_region = NULL;
+ }
+
+ void
+ expose (XExposeEvent *xev)
+ {
++ XRectangle r;
+ if (!update_region)
+- update_region = pixman_region_create ();
++ update_region = XCreateRegion ();
+
+- pixman_region_union_rect (update_region, update_region,
+- xev->x, xev->y, xev->width, xev->height);
++ r.x = xev->x;
++ r.y = xev->y;
++ r.width = xev->width;
++ r.height = xev->height;
++ XUnionRectWithRegion (&r, update_region, update_region);
+ }
+
+ int main (int argc, char **argv)
+@@ -281,12 +264,17 @@
+ goto done;
+ else if (xev.xkey.keycode == borders_keycode)
+ {
++ XRectangle r;
+ show_borders = !show_borders;
++
+ if (!update_region)
+- update_region = pixman_region_create ();
++ update_region = XCreateRegion ();
+
+- pixman_region_union_rect (update_region, update_region,
+- 0, 0, width, height);
++ r.x = 0;
++ r.y = 0;
++ r.width = width;
++ r.height = height;
++ XUnionRectWithRegion (&r, update_region, update_region);
+ }
+ break;
+ case Expose:
diff --git a/x11-libs/pango/pango-1.9.1.ebuild b/x11-libs/pango/pango-1.9.1.ebuild
index 18ce0d22fb89..d3b43a97b17c 100644
--- a/x11-libs/pango/pango-1.9.1.ebuild
+++ b/x11-libs/pango/pango-1.9.1.ebuild
@@ -1,8 +1,8 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.9.1.ebuild,v 1.2 2005/07/31 14:46:14 foser Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-libs/pango/pango-1.9.1.ebuild,v 1.3 2005/08/15 19:22:56 leonardop Exp $
-inherit gnome2 eutils
+inherit eutils gnome2
DESCRIPTION="Text rendering and layout library"
HOMEPAGE="http://www.pango.org/"
@@ -34,6 +34,9 @@ src_unpack() {
epatch ${FILESDIR}/pango-1.0.99.020606-xfonts.patch
epatch ${FILESDIR}/${PN}-1.2.2-slighthint.patch
+ # Patch from upstream CVS to fix compilation with latest cairo
+ epatch ${FILESDIR}/${P}-example_update.patch
+
# make config file location host specific so that a 32bit and 64bit pango
# wont fight with each other on a multilib system
use amd64 && epatch ${FILESDIR}/pango-1.2.5-lib64.patch