diff --git a/pisi-index.xml b/pisi-index.xml index 64c53dda36..3a67707712 100644 --- a/pisi-index.xml +++ b/pisi-index.xml @@ -24877,6 +24877,70 @@ + + + python-pillow + http://python-pillow.org/ + + PisiLinux Community + admins@pisilinux.org + + as-is + library + programming.language.python + PIL is the Python Imaging Library. + The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities. + https://github.com/python-pillow/Pillow/archive/3.1.0.tar.gz + + python3-tk + python-devel + lcms-devel + python-setuptools + python3-setuptools + python3-qt5-devel + python-qt5-devel + webp-devel + tcltk-devel + tcl-devel + sane-backends-devel + libjpeg-turbo-devel + + programming/language/python/python-pillow/pspec.xml + + + python-pillow + + python3-tk + python + lcms + python-setuptools + python3-setuptools + python3-qt5 + python-qt5 + webp + tcltk + tcl + sane-backends + libjpeg-turbo + xdg-utils + + + /usr/bin + /usr/lib + /usr/include + /usr/share/doc + + + + + 2016-06-18 + 3.1.0 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + python-PyYAML diff --git a/pisi-index.xml.sha1sum b/pisi-index.xml.sha1sum index 2a220c5a47..9d48c7e4af 100644 --- a/pisi-index.xml.sha1sum +++ b/pisi-index.xml.sha1sum @@ -1 +1 @@ -63758fe13070a88ac434c9fbaab18c6c47e7d31e \ No newline at end of file +3a68a3c18b50f22ab15a0d8c29d59a25f40b37a1 \ No newline at end of file diff --git a/pisi-index.xml.xz b/pisi-index.xml.xz index 1d30ea1bc0..1d77860777 100644 Binary files a/pisi-index.xml.xz and b/pisi-index.xml.xz differ diff --git a/pisi-index.xml.xz.sha1sum b/pisi-index.xml.xz.sha1sum index 7ab61ad741..a3827f3e90 100644 --- a/pisi-index.xml.xz.sha1sum +++ b/pisi-index.xml.xz.sha1sum @@ -1 +1 @@ -f6a175126a68d1b06dca2de9443e1dc35fb64eaf \ No newline at end of file +4b080aa4761fdae99ac4da8f4b50c8c2f75bfddc \ No newline at end of file diff --git a/programming/language/python/python-pillow/actions.py b/programming/language/python/python-pillow/actions.py new file mode 100644 index 0000000000..09179eb142 --- /dev/null +++ b/programming/language/python/python-pillow/actions.py @@ -0,0 +1,27 @@ +#!/usr/bin/python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import pisitools +from pisi.actionsapi import pythonmodules +from pisi.actionsapi import shelltools +from pisi.actionsapi import get + +#WorkDir="Imaging-%s" % get.srcVERSION() + +def install(): + pisitools.dosed("_imagingft.c", "", "") + pisitools.dosed("_imagingft.c", "", "") + pythonmodules.install() + + #shelltools.cd("Sane") + #pythonmodules.install() + #shelltools.cd("..") + + for header in ["Imaging.h","ImPlatform.h"]: + pisitools.insinto("/usr/include/%s" % get.curPYTHON(), "libImaging/%s" % header) + + pisitools.dodoc("README.rst") + diff --git a/programming/language/python/python-pillow/files/anka-imaging-tiffendian.patch b/programming/language/python/python-pillow/files/anka-imaging-tiffendian.patch new file mode 100644 index 0000000000..505d95de5b --- /dev/null +++ b/programming/language/python/python-pillow/files/anka-imaging-tiffendian.patch @@ -0,0 +1,38 @@ +--- Imaging-1.1.7-orig/PIL/TiffImagePlugin.py 2009-11-01 02:44:12.000000000 +0200 ++++ Imaging-1.1.7/PIL/TiffImagePlugin.py 2012-11-13 03:45:11.280000132 +0200 +@@ -69,7 +69,7 @@ + def il32(c,o=0): + return ord(c[o]) + (ord(c[o+1])<<8) + (ord(c[o+2])<<16) + (ord(c[o+3])<<24) + def ol16(i): +- return chr(i&255) + chr(i>>8&255) ++ return chr(i>>8&255) + chr(i&255) + def ol32(i): + return chr(i&255) + chr(i>>8&255) + chr(i>>16&255) + chr(i>>24&255) + +@@ -197,6 +197,8 @@ + } + + PREFIXES = ["MM\000\052", "II\052\000", "II\xBC\000"] ++PREFIX_TO_BYTEORDER = {"MM":"b", "II":"l"} ++BYTEORDER_TO_PREFIX = {"b":"MM", "l":"II"} + + def _accept(prefix): + return prefix[:4] in PREFIXES +@@ -219,6 +221,8 @@ + self.o16, self.o32 = ol16, ol32 + else: + raise SyntaxError("not a TIFF IFD") ++ self.byteorder = PREFIX_TO_BYTEORDER[self.prefix] ++ + self.reset() + + def reset(self): +@@ -749,7 +753,7 @@ + def _save(im, fp, filename): + + try: +- rawmode, prefix, photo, format, bits, extra = SAVE_INFO[im.mode] ++ rawmode, prefix, byteorder, photo, format, bits, extra = SAVE_INFO[im.mode] + except KeyError: + raise IOError, "cannot write mode %s as TIFF" % im.mode + diff --git a/programming/language/python/python-pillow/files/gentoo-imaging-giftrans.patch b/programming/language/python/python-pillow/files/gentoo-imaging-giftrans.patch new file mode 100644 index 0000000000..1a109d28ee --- /dev/null +++ b/programming/language/python/python-pillow/files/gentoo-imaging-giftrans.patch @@ -0,0 +1,14 @@ +--- Imaging-1.1.6.orig/PIL/GifImagePlugin.py 2006-12-03 11:37:15.000000000 +0000 ++++ Imaging-1.1.6/PIL/GifImagePlugin.py 2008-10-02 14:51:43.000000000 +0100 +@@ -352,6 +352,11 @@ + for i in range(maxcolor): + s.append(chr(i) * 3) + ++ if im.info.has_key('transparency'): ++ transparentIndex = im.info['transparency'] ++ s.append('!' + chr(0xf9) + chr(4) + chr(1) + chr(0) + chr(0) + ++ chr(transparentIndex) + chr(0)) ++ + return s + + def getdata(im, offset = (0, 0), **params): diff --git a/programming/language/python/python-pillow/files/gentoo-imaging-sane.patch b/programming/language/python/python-pillow/files/gentoo-imaging-sane.patch new file mode 100644 index 0000000000..4970e50033 --- /dev/null +++ b/programming/language/python/python-pillow/files/gentoo-imaging-sane.patch @@ -0,0 +1,13 @@ +--- Imaging-1.1.6/Sane/_sane.c.orig 2006-12-03 13:12:22.000000000 +0100 ++++ Imaging-1.1.6/Sane/_sane.c 2009-02-28 11:41:19.000000000 +0200 +@@ -1152,8 +1152,8 @@ + static PyObject * + PySane_get_devices(PyObject *self, PyObject *args) + { +- SANE_Device **devlist; +- SANE_Device *dev; ++ const SANE_Device **devlist; ++ const SANE_Device *dev; + SANE_Status st; + PyObject *list; + int local_only, i; diff --git a/programming/language/python/python-pillow/files/local_only_initial_value.patch b/programming/language/python/python-pillow/files/local_only_initial_value.patch new file mode 100644 index 0000000000..00a3da75aa --- /dev/null +++ b/programming/language/python/python-pillow/files/local_only_initial_value.patch @@ -0,0 +1,11 @@ +--- python-imaging-1.1.6.old/Sane/_sane.c 2006-12-03 07:12:22.000000000 -0500 ++++ python-imaging-1.1.6/Sane/_sane.c 2007-04-03 22:08:41.000000000 -0400 +@@ -1156,7 +1156,7 @@ + SANE_Device *dev; + SANE_Status st; + PyObject *list; +- int local_only, i; ++ int local_only=0, i; + + if (!PyArg_ParseTuple(args, "|i", &local_only)) + { diff --git a/programming/language/python/python-pillow/pspec.xml b/programming/language/python/python-pillow/pspec.xml new file mode 100644 index 0000000000..b5abeba2e6 --- /dev/null +++ b/programming/language/python/python-pillow/pspec.xml @@ -0,0 +1,66 @@ + + + + + python-pillow + http://python-pillow.org/ + + PisiLinux Community + admins@pisilinux.org + + as-is + library + PIL is the Python Imaging Library. + The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library supports many file formats, and provides powerful image processing and graphics capabilities. + https://github.com/python-pillow/Pillow/archive/3.1.0.tar.gz + + python3-tk + python-devel + lcms-devel + python-setuptools + python3-setuptools + python3-qt5-devel + python-qt5-devel + webp-devel + tcltk-devel + tcl-devel + sane-backends-devel + libjpeg-turbo-devel + + + + + python-pillow + + python3-tk + python + lcms + python-setuptools + python3-setuptools + python3-qt5 + python-qt5 + webp + tcltk + tcl + sane-backends + libjpeg-turbo + xdg-utils + + + /usr/bin + /usr/lib + /usr/include + /usr/share/doc + + + + + + 2016-06-18 + 3.1.0 + Version bump. + Stefan Gronewold(groni) + groni@pisilinux.org + + + diff --git a/programming/language/python/python-pillow/translations.xml b/programming/language/python/python-pillow/translations.xml new file mode 100644 index 0000000000..8d274bd7be --- /dev/null +++ b/programming/language/python/python-pillow/translations.xml @@ -0,0 +1,8 @@ + + + + python-imaging + Python Görüntü İşleme Kitaplığı + La librería Python Imaging Library (PIL) facilita el procesamiento de imágenes desde Python. Esta librería soporta muchos formatos de archivos y provee potentes facilidades de procesamiento de gráficos. + +