summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Sapp <nixphoeni@gentoo.org>2013-11-19 02:45:49 +0000
committerJoe Sapp <nixphoeni@gentoo.org>2013-11-19 02:45:49 +0000
commit68d61072d5406d405f1d3ec8728ed9bf0f3dc48e (patch)
tree27a983a079138eb7185d3814cc877173f7a36a17 /app-misc/gourmet/files
parentInitial commit (diff)
downloadgentoo-2-68d61072d5406d405f1d3ec8728ed9bf0f3dc48e.tar.gz
gentoo-2-68d61072d5406d405f1d3ec8728ed9bf0f3dc48e.tar.bz2
gentoo-2-68d61072d5406d405f1d3ec8728ed9bf0f3dc48e.zip
Fix deps; add/fix USE flags; add patch to improve support for PIL
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 341D8825)
Diffstat (limited to 'app-misc/gourmet/files')
-rw-r--r--app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch b/app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch
new file mode 100644
index 000000000000..2ddbd553222f
--- /dev/null
+++ b/app-misc/gourmet/files/gourmet-0.16.1-PIL-png.patch
@@ -0,0 +1,29 @@
+From 4eb110bbbc58af97fd6994b96d9482783037058d Mon Sep 17 00:00:00 2001
+From: Bernhard Reiter <ockham@raz.or.at>
+Date: Wed, 13 Nov 2013 15:24:09 +0100
+Subject: [PATCH] Fix another PIL import.
+
+Reported at https://answers.launchpad.net/gourmet/+question/238352#comment-6
+---
+ gourmet/gtk_extras/thumbnail.py | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/gourmet/gtk_extras/thumbnail.py b/gourmet/gtk_extras/thumbnail.py
+index d096126..ea7e72c 100644
+--- a/gourmet/gtk_extras/thumbnail.py
++++ b/gourmet/gtk_extras/thumbnail.py
+@@ -81,7 +81,10 @@ def create_thumbnail (path, thumbpath, uri, type="large"):
+ info['Software']='Gourmet Recipe Manager'
+ info['URI']=str(uri)
+ # now we must create our image guy
+- import PngImagePlugin
++ try:
++ from PIL import PngImagePlugin
++ except ImportError:
++ import PngImagePlugin
+ pnginfo = PngImagePlugin.PngInfo()
+
+ for k,v in info.items():
+--
+1.8.4
+