summaryrefslogtreecommitdiffstats
path: root/x11-libs/cairo
diff options
context:
space:
mode:
authorBor Kraljič2010-09-15 15:10:50 +0200
committerBor Kraljič2010-09-15 15:11:25 +0200
commit83ffe4c618ac6d2ee0cb24c28a0beb505b32050f (patch)
tree10fd23023c66f9a201065237583cb40582caaa7b /x11-libs/cairo
parentb45dbb7aaf4a853887ae14414d6b854f41fc722a (diff)
cairo: patch for gentoo bug #336696
Diffstat (limited to 'x11-libs/cairo')
-rwxr-xr-xx11-libs/cairo/DETAILS2
-rw-r--r--x11-libs/cairo/HISTORY5
-rwxr-xr-xx11-libs/cairo/PRE_BUILD4
-rw-r--r--x11-libs/cairo/cairo-1.10.0-buggy_gradients.patch14
4 files changed, 25 insertions, 0 deletions
diff --git a/x11-libs/cairo/DETAILS b/x11-libs/cairo/DETAILS
index 870fe5bd71..f35970f548 100755
--- a/x11-libs/cairo/DETAILS
+++ b/x11-libs/cairo/DETAILS
@@ -1,12 +1,14 @@
SPELL=cairo
if [[ $CAIRO_DEVEL == y ]]; then
VERSION=1.10.0
+ PATCHLEVEL=1
SOURCE_HASH=sha512:5595e15dcfbf67f0c148bb9587472d2125be3eb524491f9780098b1303e9a08d3431a07cbccffb9601be0852d05c4a6f7cfc71c4fa13f7972b457e2f8a5b10f6
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_URL[0]=http://cairographics.org/releases/$SOURCE
# SOURCE_GPG=gurus.gpg:$SOURCE.sig
else
VERSION=1.10.0
+ PATCHLEVEL=1
SOURCE_HASH=sha512:5595e15dcfbf67f0c148bb9587472d2125be3eb524491f9780098b1303e9a08d3431a07cbccffb9601be0852d05c4a6f7cfc71c4fa13f7972b457e2f8a5b10f6
SOURCE=$SPELL-$VERSION.tar.gz
SOURCE_URL[0]=http://cairographics.org/releases/$SOURCE
diff --git a/x11-libs/cairo/HISTORY b/x11-libs/cairo/HISTORY
index 1b550d52d1..1964c3e11d 100644
--- a/x11-libs/cairo/HISTORY
+++ b/x11-libs/cairo/HISTORY
@@ -1,3 +1,8 @@
+2010-09-15 Bor Kraljič <pyrobor@ver.si>
+ * cairo-1.10.0-buggy_gradients.patch: patch for gentoo bug #336696
+ * PRE_BUILD: apply the patch
+ * DETAILS: PATCHLEVEL++
+
2010-09-10 George Sherwood <gsherwood@sourcemage.org>
* DETAILS: Updated devel and stable to 1.10.0
* libpng14.patch: removed, no longer needed
diff --git a/x11-libs/cairo/PRE_BUILD b/x11-libs/cairo/PRE_BUILD
new file mode 100755
index 0000000000..682b8e2b76
--- /dev/null
+++ b/x11-libs/cairo/PRE_BUILD
@@ -0,0 +1,4 @@
+mk_source_dir $SOURCE_DIRECTORY &&
+ unpack_file &&
+# http://bugs.gentoo.org/show_bug.cgi?id=336696
+patch -p1 -d $SOURCE_DIRECTORY < $SPELL_DIRECTORY/cairo-1.10.0-buggy_gradients.patch
diff --git a/x11-libs/cairo/cairo-1.10.0-buggy_gradients.patch b/x11-libs/cairo/cairo-1.10.0-buggy_gradients.patch
new file mode 100644
index 0000000000..a3a4a96120
--- /dev/null
+++ b/x11-libs/cairo/cairo-1.10.0-buggy_gradients.patch
@@ -0,0 +1,14 @@
+--- a/src/cairo-xlib-display.c.ubuntu 2010-08-04 11:57:49.000000000 +0200
++++ b/src/cairo-xlib-display.c 2010-08-04 11:58:28.000000000 +0200
+@@ -353,11 +353,7 @@
+ /* Prior to Render 0.10, there is no protocol support for gradients and
+ * we call function stubs instead, which would silently consume the drawing.
+ */
+-#if RENDER_MAJOR == 0 && RENDER_MINOR < 10
+ display->buggy_gradients = TRUE;
+-#else
+- display->buggy_gradients = FALSE;
+-#endif
+ display->buggy_pad_reflect = FALSE;
+ display->buggy_repeat = FALSE;
+