summaryrefslogtreecommitdiff
path: root/community/python-pillow
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-10-05 01:28:55 -0700
committerroot <root@rshg054.dnsready.net>2013-10-05 01:28:55 -0700
commit9478c3c735c37ebdda0eb99126f5925790fb3e55 (patch)
tree15eefbfb45c57203f177ece35f81ae6fe4cf1cdb /community/python-pillow
parenta1e8649c27451ac75f05b9b520d52b78e9f2913d (diff)
Sat Oct 5 01:28:41 PDT 2013
Diffstat (limited to 'community/python-pillow')
-rw-r--r--community/python-pillow/PKGBUILD14
-rw-r--r--community/python-pillow/pull325.diff38
2 files changed, 5 insertions, 47 deletions
diff --git a/community/python-pillow/PKGBUILD b/community/python-pillow/PKGBUILD
index 3cf4c2a3c..6ef3cd700 100644
--- a/community/python-pillow/PKGBUILD
+++ b/community/python-pillow/PKGBUILD
@@ -1,22 +1,19 @@
-# $Id: PKGBUILD 97882 2013-09-30 13:00:41Z bgyorgy $
+# $Id: PKGBUILD 98021 2013-10-04 01:35:36Z kkeen $
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: minder
pkgbase=python-pillow
pkgname=(python-pillow python2-pillow)
_appname=Pillow
-pkgver=2.1.0
-pkgrel=5
+pkgver=2.2.1
+pkgrel=1
pkgdesc="Python Imaging Library (PIL) fork. Python3 version."
arch=('i686' 'x86_64')
url="http://python-imaging.github.io/"
license=('BSD')
makedepends=('python-setuptools' 'python2-setuptools' 'lcms' 'libwebp' 'tk' 'sane')
-# remove pull325.diff on 2.1.1 release, fixes FS#36945
-source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip"
- "pull325.diff")
-md5sums=('ec630d8ae15d4a3c4ae7b7efdeac8200'
- 'aa3fa12bd2d61041f6d01fedddab39fb')
+source=("http://pypi.python.org/packages/source/P/$_appname/$_appname-$pkgver.zip")
+md5sums=('d1d20d3db5d1ab312da0951ff061e6bf')
build() {
cd "$srcdir"
@@ -52,7 +49,6 @@ package_python2-pillow() {
conflicts=('python-imaging' 'python2-imaging')
replaces=('python2-imaging')
cd "$srcdir/${_appname}2-$pkgver"
- patch -Np1 -i ../pull325.diff
python2 setup.py install --root="$pkgdir/" --optimize=0
pushd Sane
python2 setup.py install --root="$pkgdir/" --optimize=0
diff --git a/community/python-pillow/pull325.diff b/community/python-pillow/pull325.diff
deleted file mode 100644
index 48b36ab48..000000000
--- a/community/python-pillow/pull325.diff
+++ /dev/null
@@ -1,38 +0,0 @@
-diff --git a/PIL/Image.py b/PIL/Image.py
-index bb15aaa..2e120e5 100644
---- a/PIL/Image.py
-+++ b/PIL/Image.py
-@@ -706,7 +706,7 @@ def convert(self, mode=None, data=None, dither=None,
- if self.mode == "L" and mode == "RGBA" and "transparency" in self.info:
- from PIL import ImagePalette
- self.mode = "P"
-- bytePalette = bytes([i//3 for i in range(768)])
-+ bytePalette = bytes(bytearray([i//3 for i in range(768)]))
- self.palette = ImagePalette.raw("RGB", bytePalette)
- self.palette.dirty = 1
- self.load()
-diff --git a/_imaging.c b/_imaging.c
-index 9f48030..84f06e9 100644
---- a/_imaging.c
-+++ b/_imaging.c
-@@ -287,6 +287,7 @@ int PyImaging_GetBuffer(PyObject* buffer, Py_buffer *view)
- static const char* wrong_raw_mode = "unrecognized raw mode";
- static const char* outside_image = "image index out of range";
- static const char* outside_palette = "palette index out of range";
-+static const char* wrong_palette_size = "invalid palette size";
- static const char* no_palette = "image has no palette";
- static const char* readonly = "image is readonly";
- /* static const char* no_content = "image has no content"; */
-@@ -1413,6 +1414,11 @@ int PyImaging_GetBuffer(PyObject* buffer, Py_buffer *view)
- return NULL;
- }
-
-+ if ( palettesize * 8 / bits > 256) {
-+ PyErr_SetString(PyExc_ValueError, wrong_palette_size);
-+ return NULL;
-+ }
-+
- ImagingPaletteDelete(self->image->palette);
-
- strcpy(self->image->mode, "P");
-