Date: Sunday, September 15, 2013 @ 16:21:10
  Author: bgyorgy
Revision: 97229

upgpkg: screenlets-pack-basic 0.1.6-3

Rebuild for Pillow

Added:
  screenlets-pack-basic/trunk/screenlets-pack-basic-pillow.patch
Modified:
  screenlets-pack-basic/trunk/PKGBUILD

------------------------------------+
 PKGBUILD                           |   13 ++++++++----
 screenlets-pack-basic-pillow.patch |   36 +++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-09-15 14:02:27 UTC (rev 97228)
+++ PKGBUILD    2013-09-15 14:21:10 UTC (rev 97229)
@@ -4,7 +4,7 @@
 pkgname=screenlets-pack-basic
 _pkgname=indiv-screenlets
 pkgver=0.1.6
-pkgrel=2
+pkgrel=3
 pkgdesc="Desktop widgets for Screenlets"
 arch=('any')
 url="http://screenlets.org/";
@@ -13,12 +13,14 @@
 makedepends=('dos2unix')
 optdepends=('python2-feedparser: Clear Rss Screenlet'
             'python2-pytz: Freemeteo Weather Screenlet'
-            'python2-imaging: Lipik Screenlet'
+            'python2-pillow: Lipik, Lyrics Screenlets'
             'python2-numpy: Lipik Screenlet')
 
source=(https://launchpad.net/indiv-screenlets/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.bz2
-        drop-gnomevfs.patch)
+        drop-gnomevfs.patch
+        screenlets-pack-basic-pillow.patch)
 md5sums=('d908308a60eecbee13a21917d36b10bc'
-         '0ee366b0eafea6b646a7a5f02df2a65c')
+         '0ee366b0eafea6b646a7a5f02df2a65c'
+         '4e30b2ad949e05f2a32770c95f95cd8f')
 
 build() {
   cd "$srcdir/$_pkgname-$pkgver"
@@ -27,6 +29,9 @@
   # 
https://code.launchpad.net/~ballogy/indiv-screenlets/lyrics-replace-gnomevfs/+merge/104175
   patch -Np1 -i "$srcdir/drop-gnomevfs.patch"
 
+  # Port to Pillow
+  patch -Np1 -i "$srcdir/screenlets-pack-basic-pillow.patch"
+
   # Some files are distributed in DOS format...
   find . -name \*.py -exec dos2unix -q '{}' \;
 

Added: screenlets-pack-basic-pillow.patch
===================================================================
--- screenlets-pack-basic-pillow.patch                          (rev 0)
+++ screenlets-pack-basic-pillow.patch  2013-09-15 14:21:10 UTC (rev 97229)
@@ -0,0 +1,36 @@
+diff -Naur indiv-screenlets-0.1.6.orig/src/dayNight/dayNightScreenlet.py 
indiv-screenlets-0.1.6/src/dayNight/dayNightScreenlet.py
+--- indiv-screenlets-0.1.6.orig/src/dayNight/dayNightScreenlet.py      
2012-01-27 22:51:45.000000000 +0100
++++ indiv-screenlets-0.1.6/src/dayNight/dayNightScreenlet.py   2013-09-15 
16:12:07.698782839 +0200
+@@ -32,7 +32,7 @@
+ import pango
+ import math
+ import os
+-import Image
++from PIL import Image
+ import time
+ import datetime
+ import Sun
+diff -Naur indiv-screenlets-0.1.6.orig/src/Lipik/LipikScreenlet.py 
indiv-screenlets-0.1.6/src/Lipik/LipikScreenlet.py
+--- indiv-screenlets-0.1.6.orig/src/Lipik/LipikScreenlet.py    2012-01-27 
22:51:45.000000000 +0100
++++ indiv-screenlets-0.1.6/src/Lipik/LipikScreenlet.py 2013-09-15 
16:12:07.695449426 +0200
+@@ -33,7 +33,7 @@
+ from screenlets.options import FontOption, ColorOption
+ 
+ import gtk
+-import Image
++from PIL import Image
+ import os
+ from gtk import gdk
+ import cairo
+diff -Naur indiv-screenlets-0.1.6.orig/src/Lyrics/gui/utils.py 
indiv-screenlets-0.1.6/src/Lyrics/gui/utils.py
+--- indiv-screenlets-0.1.6.orig/src/Lyrics/gui/utils.py        2011-08-22 
08:54:04.000000000 +0200
++++ indiv-screenlets-0.1.6/src/Lyrics/gui/utils.py     2013-09-15 
16:12:07.698782839 +0200
+@@ -127,7 +127,7 @@
+     except:
+         pass
+ """
+-import Image
++from PIL import Image
+ def thumbnail(path):
+     image = Image.open(path)
+     print dir(image)

Reply via email to