diff --git a/programming/language/python3/python3-pillow/actions.py b/programming/language/python3/python3-pillow/actions.py index 61835ed62d..1be280fc6c 100644 --- a/programming/language/python3/python3-pillow/actions.py +++ b/programming/language/python3/python3-pillow/actions.py @@ -6,23 +6,30 @@ from pisi.actionsapi import pythonmodules from pisi.actionsapi import shelltools +from pisi.actionsapi import autotools from pisi.actionsapi import pisitools from pisi.actionsapi import get #WorkDir="Imaging-%s" % get.srcVERSION() def build(): - # suppress warnings - pisitools.cflags.add("-Wno-sign-compare") + # suppress compiler warnings + pisitools.cflags.add("-Wno-sign-compare -Wno-pointer-sign") # fix unused direct dependency analysis shelltools.export("LDSHARED", "x86_64-pc-linux-gnu-gcc -Wl,-O1,--as-needed -shared -lpthread") pythonmodules.compile(pyVer="3") + + # build documentation + shelltools.export("PYTHONPATH", "%s/Pillow-%s/build/lib.linux-x86_64-3.8" % (get.workDIR(), get.srcVERSION())) + autotools.make("-C docs html") def install(): pythonmodules.install(pyVer="3") # install header files pisitools.insinto("/usr/include/python3.8/Imaging/", "src/libImaging/*.h") + # install documentation + pisitools.dohtml("docs/_build/html/*") - # 2020-01-15 ToDo - # * Add documentation + + # 2020-04-08 ToDo # * After Qt5 version bump, extract qt5 bindings(python3-pillow-qt5) \ No newline at end of file diff --git a/programming/language/python3/python3-pillow/files/docfix.patch b/programming/language/python3/python3-pillow/files/docfix.patch new file mode 100644 index 0000000000..a477ac789e --- /dev/null +++ b/programming/language/python3/python3-pillow/files/docfix.patch @@ -0,0 +1,22 @@ +From f1f177ce800c5be7d06b0119b979c661c1bfbbb9 Mon Sep 17 00:00:00 2001 +From: Andrew Murray +Date: Mon, 6 Apr 2020 19:41:38 +1000 +Subject: [PATCH] Fixed error making HTML from docs + +--- + docs/reference/plugins.rst | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/docs/reference/plugins.rst b/docs/reference/plugins.rst +index 46f657fce5..cc0742fde4 100644 +--- a/docs/reference/plugins.rst ++++ b/docs/reference/plugins.rst +@@ -229,7 +229,7 @@ Plugin reference + ---------------------------- + + .. automodule:: PIL.PngImagePlugin +- :members: ChunkStream, PngImageFile, PngStream, getchunks, is_cid, putchunk ++ :members: ChunkStream, PngStream, getchunks, is_cid, putchunk + :show-inheritance: + .. autoclass:: PIL.PngImagePlugin.ChunkStream + :members: diff --git a/programming/language/python3/python3-pillow/pspec.xml b/programming/language/python3/python3-pillow/pspec.xml index 2651f29039..bfcd7b1a24 100644 --- a/programming/language/python3/python3-pillow/pspec.xml +++ b/programming/language/python3/python3-pillow/pspec.xml @@ -8,12 +8,12 @@ PisiLinux Community admins@pisilinux.org - BSD programming.language.python3 + BSD library PIL is the fork of Python Imaging Library. Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. As of 2019, Pillow development is supported by Tidelift. - https://github.com/python-pillow/Pillow/archive/7.0.0.tar.gz + https://github.com/python-pillow/Pillow/archive/7.1.1.tar.gz libjpeg-turbo-devel libimagequant-devel @@ -21,10 +21,18 @@ openjpeg2-devel freetype-devel python3-devel + libxcb-devel lcms2-devel tiff-devel webp-devel zlib-devel + + python3-sphinx_rtd_theme + python3-pycparser + python3-olefile + python3-sphinx + python3-cffi + python3-tk - + + + docfix.patch + @@ -46,6 +57,7 @@ openjpeg2 freetype python3 + libxcb lcms2 tiff webp @@ -60,8 +72,8 @@ --> - /usr/lib /usr/share/doc + /usr/lib @@ -79,7 +91,25 @@ + + python3-pillow-docs + Documentation files for python3-pillow + + python3-pillow + + + /usr/share/doc/python3-pillow/html + + + + + 2020-04-07 + 7.1.1 + Minor version bump. + Blue Devil + bluedevil@sctzine.com + 2020-01-15 7.0.0 diff --git a/programming/language/python3/python3-pillow/translations.xml b/programming/language/python3/python3-pillow/translations.xml index 750e383014..2c652478c7 100644 --- a/programming/language/python3/python3-pillow/translations.xml +++ b/programming/language/python3/python3-pillow/translations.xml @@ -12,4 +12,10 @@ python3-pillow için geliştirme dosyaları python3-pillow-devel, python3-pillow için geliştirme dosyalarını içerir. + + + python3-pillow-docs + python3-pillow için belgelendirme dosyaları + python3-pillow-docs, python3-pillow için belgelendirme dosyaları içerir. + \ No newline at end of file