import py-Pillow-1.7.8

Pillow is the "friendly" PIL fork. PIL is the Python Imaging Library.

The Python Imaging Library (PIL) adds image processing capabilities to
your Python environment. This library provides extensive file format
support, an efficient internal representation, and powerful image
processing capabilities.

feedback/ok fgsch@
This commit is contained in:
jasper 2013-01-28 07:55:58 +00:00
parent 0d5dac8792
commit 67dbb8fe08
6 changed files with 295 additions and 0 deletions

View File

@ -0,0 +1,49 @@
# $OpenBSD: Makefile,v 1.1.1.1 2013/01/28 07:55:58 jasper Exp $
COMMENT= Python Imaging Library (fork)
MODPY_EGG_VERSION= 1.7.8
DISTNAME= Pillow-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= graphics
HOMEPAGE= https://github.com/python-imaging/Pillow
# PIL Software License
# Permission to use, copy, modify and distribute freely.
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_PYPI:=P/Pillow/}
EXTRACT_SUFX= .zip
WANTLIB= freetype jpeg lcms pthread z \
${MODPY_WANTLIB} ${MODTK_WANTLIB}
MODULES= lang/python \
x11/tk
# ${MODPY_TKINTER_DEPENDS} appends ,tkinter to devel/setuptools too.
BUILD_DEPENDS= ${RUN_DEPENDS}
RUN_DEPENDS= lang/python/${MODPY_VERSION},-tkinter
LIB_DEPENDS= graphics/lcms \
${MODTK_LIB_DEPENDS}
MODPY_SETUPTOOLS= Yes
NO_REGRESS= Yes
INCL_DIR= ${PREFIX}/include/python${MODPY_VERSION}
MODPY_ADJ_FILES= Scripts/*.py
post-install:
for s in ${WRKSRC}/Scripts/*.py; do \
${INSTALL_SCRIPT} $$s ${PREFIX}/bin/`basename $$s .py`; \
done
${INSTALL_DATA_DIR} ${INCL_DIR}
${INSTALL_DATA} ${WRKSRC}/libImaging/{ImPlatform,Imaging}.h ${INCL_DIR}
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (Pillow-1.7.8.zip) = kH9TQrHfHSd9zBDfKuq8YQmeWgfgZ2ufzRu3N5iQwO4=
SIZE (Pillow-1.7.8.zip) = 410745

View File

@ -0,0 +1,8 @@
$OpenBSD: patch-Scripts_pilfont_py,v 1.1.1.1 2013/01/28 07:55:58 jasper Exp $
--- Scripts/pilfont.py.orig Thu Nov 1 17:08:52 2012
+++ Scripts/pilfont.py Wed Jan 23 09:32:50 2013
@@ -1,3 +1,4 @@
+# /usr/local/bin/python
#
# The Python Imaging Library
# $Id: patch-Scripts_pilfont_py,v 1.1.1.1 2013/01/28 07:55:58 jasper Exp $

View File

@ -0,0 +1,50 @@
$OpenBSD: patch-setup_py,v 1.1.1.1 2013/01/28 07:55:58 jasper Exp $
--- setup.py.orig Thu Nov 1 17:09:06 2012
+++ setup.py Mon Jan 14 09:43:04 2013
@@ -139,6 +139,13 @@ class pil_build_ext(build_ext):
if _tkinter:
TCL_VERSION = _tkinter.TCL_VERSION[:3]
+ TK_VERSION = _tkinter.TK_VERSION[:3]
+ _add_directory(include_dirs,
+ os.path.join(os.getenv("LOCALBASE"),
+ "include/tcl%s" % TCL_VERSION))
+ _add_directory(include_dirs,
+ os.path.join(os.getenv("LOCALBASE"),
+ "include/tk%s" % TK_VERSION))
if _tkinter and not TCL_ROOT:
# we have Tkinter but the TCL_ROOT variable was not set;
@@ -187,12 +194,15 @@ class pil_build_ext(build_ext):
_add_directory(include_dirs, tcl_dir)
# standard locations
- _add_directory(library_dirs, "/usr/local/lib")
- _add_directory(include_dirs, "/usr/local/include")
+ _add_directory(library_dirs, os.path.join(os.getenv("LOCALBASE"), "lib"))
+ _add_directory(include_dirs, os.path.join(os.getenv("LOCALBASE"), "include"))
_add_directory(library_dirs, "/usr/lib")
_add_directory(include_dirs, "/usr/include")
+ _add_directory(library_dirs, os.path.join(os.getenv("X11BASE"), "lib"))
+ _add_directory(include_dirs, os.path.join(os.getenv("X11BASE"), "include"))
+
#
# insert new dirs *before* default libs, to avoid conflicts
# between Python PYD stub libs and real libraries
@@ -293,7 +303,7 @@ class pil_build_ext(build_ext):
if feature.freetype_version == 20:
defs.append(("USE_FREETYPE_2_0", None))
exts.append(Extension(
- "_imagingft", ["_imagingft.c"], libraries=["freetype"],
+ "_imagingft", ["_imagingft.c"], libraries=["freetype", "z"],
define_macros=defs))
if os.path.isfile("_imagingtiff.c") and feature.tiff:
@@ -466,5 +476,4 @@ setup(
cmdclass={"build_ext": pil_build_ext},
ext_modules=[Extension("_imaging", ["_imaging.c"])],
packages=find_packages(),
- scripts=glob.glob("Scripts/pil*.py"),
)

View File

@ -0,0 +1,6 @@
Pillow is the "friendly" PIL fork. PIL is the Python Imaging Library.
The Python Imaging Library (PIL) adds image processing capabilities to
your Python environment. This library provides extensive file format
support, an efficient internal representation, and powerful image
processing capabilities.

View File

@ -0,0 +1,180 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2013/01/28 07:55:58 jasper Exp $
@conflict py-Imaging-*
bin/pilconvert
bin/pildriver
bin/pilfile
bin/pilfont
bin/pilprint
include/python${MODPY_VERSION}/ImPlatform.h
include/python${MODPY_VERSION}/Imaging.h
lib/python${MODPY_VERSION}/site-packages/PIL/
lib/python${MODPY_VERSION}/site-packages/PIL/ArgImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/ArgImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/BdfFontFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/BdfFontFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/BmpImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/BmpImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/BufrStubImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/BufrStubImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ContainerIO.py
lib/python${MODPY_VERSION}/site-packages/PIL/ContainerIO.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/CurImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/CurImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/DcxImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/DcxImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/EpsImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/EpsImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ExifTags.py
lib/python${MODPY_VERSION}/site-packages/PIL/ExifTags.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/FitsStubImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/FitsStubImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/FliImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/FliImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/FontFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/FontFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/FpxImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/FpxImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/GbrImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/GbrImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/GdImageFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/GdImageFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/GifImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/GifImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/GimpGradientFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/GimpGradientFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/GimpPaletteFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/GimpPaletteFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/GribStubImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/GribStubImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/Hdf5StubImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/Hdf5StubImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/IcnsImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/IcnsImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/IcoImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/IcoImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/Image.py
lib/python${MODPY_VERSION}/site-packages/PIL/Image.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageChops.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageChops.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageCms.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageCms.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageColor.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageColor.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageDraw.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageDraw.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageDraw2.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageDraw2.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageEnhance.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageEnhance.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFileIO.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFileIO.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFilter.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFilter.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFont.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageFont.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageGL.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageGL.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageGrab.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageGrab.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageMath.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageMath.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageMode.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageMode.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageOps.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageOps.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImagePalette.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImagePalette.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImagePath.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImagePath.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageQt.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageQt.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageSequence.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageSequence.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageShow.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageShow.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageStat.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageStat.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageTk.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageTk.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageTransform.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageTransform.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImageWin.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImageWin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/ImtImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/ImtImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/IptcImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/IptcImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/JpegImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/JpegImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/McIdasImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/McIdasImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/MicImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/MicImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/MpegImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/MpegImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/MspImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/MspImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/OleFileIO.py
lib/python${MODPY_VERSION}/site-packages/PIL/OleFileIO.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PSDraw.py
lib/python${MODPY_VERSION}/site-packages/PIL/PSDraw.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PaletteFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/PaletteFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PalmImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PalmImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PcdImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PcdImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PcfFontFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/PcfFontFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PcxImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PcxImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PdfImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PdfImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PixarImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PixarImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PngImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PngImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PpmImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PpmImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/PsdImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/PsdImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/SgiImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/SgiImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/SpiderImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/SpiderImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/SunImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/SunImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/TarIO.py
lib/python${MODPY_VERSION}/site-packages/PIL/TarIO.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/TgaImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/TgaImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/TiffImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/TiffImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/TiffTags.py
lib/python${MODPY_VERSION}/site-packages/PIL/TiffTags.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/WalImageFile.py
lib/python${MODPY_VERSION}/site-packages/PIL/WalImageFile.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/WmfImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/WmfImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/XVThumbImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/XVThumbImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/XbmImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/XbmImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/XpmImagePlugin.py
lib/python${MODPY_VERSION}/site-packages/PIL/XpmImagePlugin.pyc
lib/python${MODPY_VERSION}/site-packages/PIL/__init__.py
lib/python${MODPY_VERSION}/site-packages/PIL/__init__.pyc
lib/python${MODPY_VERSION}/site-packages/Pillow-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/Pillow-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/Pillow-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/Pillow-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/Pillow-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/_imaging.so
lib/python${MODPY_VERSION}/site-packages/_imagingcms.so
lib/python${MODPY_VERSION}/site-packages/_imagingft.so
lib/python${MODPY_VERSION}/site-packages/_imagingmath.so
lib/python${MODPY_VERSION}/site-packages/_imagingtk.so