Skip to content

Commit

Permalink
net-im/jabber-pyicq: switch from py-imaging to py-pillow
Browse files Browse the repository at this point in the history
- USES python

With hat:	python
Approved by:	portmgr (bdrewery, implicit)
  • Loading branch information
william-gr committed Oct 7, 2014
1 parent b380b86 commit df0e7ad
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
6 changes: 3 additions & 3 deletions net-im/jabber-pyicq/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

PORTNAME= pyicq
PORTVERSION= 0.8.1.5
PORTREVISION= 1
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= net-im
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
Expand All @@ -17,7 +17,7 @@ COMMENT= Python ICQ-Transport for Jabber
LICENSE= GPLv2

RUN_DEPENDS= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl \
${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
${PYTHON_PKGNAMEPREFIX}pillow>0:${PORTSDIR}/graphics/py-pillow

PROJECTHOST= pyicqt
OPTIONS_DEFINE= DOCS EXAMPLES MYSQL TWISTED
Expand All @@ -31,7 +31,7 @@ DAEMON_DESC= Use builtin daemon
TWISTED_DESC= Use py-twisted

NO_BUILD= yes
USE_PYTHON= yes
USES= python
USE_RC_SUBR= jabber-pyicq-transport
LOCAL_PYTHON= ${PYTHON_CMD}

Expand Down
11 changes: 11 additions & 0 deletions net-im/jabber-pyicq/files/patch-src__contact.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/contact.py.orig 2014-10-06 16:48:44 UTC
+++ src/contact.py
@@ -13,7 +13,7 @@
import globals
import base64
if not config.disableAvatars:
- import Image
+ from PIL import Image
import StringIO


11 changes: 11 additions & 0 deletions net-im/jabber-pyicq/files/patch-src__imgmanip.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- src/imgmanip.py.orig 2014-10-06 16:49:20 UTC
+++ src/imgmanip.py
@@ -5,7 +5,7 @@

if not config.disableAvatars:
try:
- import Image
+ from PIL import Image
import StringIO

def convertToPNG(imageData):
11 changes: 11 additions & 0 deletions net-im/jabber-pyicq/files/patch-tools__infodump.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- tools/infodump.py.orig 2014-10-06 16:48:04 UTC
+++ tools/infodump.py
@@ -41,7 +41,7 @@
print "Nevow Version: Unknown or Not Installed"

try:
- from Image import VERSION
+ from PIL.Image import VERSION
print "Python Imaging Library (PIL) Version: " + VERSION
except:
print "Python Imaging Library (PIL) Version: Unknown or Not Installed"

0 comments on commit df0e7ad

Please sign in to comment.