<pre style='margin:0'>
Marius Schamschula (Schamschula) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/d7dadcd2fbd79a53eaea4f70328bc1429ad4727d">https://github.com/macports/macports-ports/commit/d7dadcd2fbd79a53eaea4f70328bc1429ad4727d</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new d7dadcd2fbd py-imagecodecs 2020.5.30: new port
</span>d7dadcd2fbd is described below

<span style='display:block; white-space:pre;color:#808000;'>commit d7dadcd2fbd79a53eaea4f70328bc1429ad4727d
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Tue Sep 15 16:12:37 2020 -0500

<span style='display:block; white-space:pre;color:#404040;'>    py-imagecodecs 2020.5.30: new port
</span>---
 python/py-imagecodecs/Portfile                     | 56 ++++++++++++++++++++++
 .../files/patch-imagecodecs-_zopfli.c.diff         | 11 +++++
 python/py-imagecodecs/files/patch-setup.py.diff    | 50 +++++++++++++++++++
 3 files changed, 117 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-imagecodecs/Portfile b/python/py-imagecodecs/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..92b0f343d76
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-imagecodecs/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,56 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem          1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup           python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name                py-imagecodecs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version             2020.5.30
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append   graphics
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms           darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license             BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers         {mps @Schamschula} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description         Image transformation, compression, and decompression codecs
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description    ${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage            https://www.lfd.uci.edu/~gohlke/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  a50a9a8014d82672e9f6ea4fa73a370b6ffae2e0 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  c8c776922d3a60824d8d3d31ba674a250d1b4d429e81349b5c88c34d4353ddb5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    8993252
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions     37 38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-setuptools
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:blosc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:brotli \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:brunsli \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:bzip2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:charls \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:giflib5 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:jpeg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:libaec \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:openjpeg \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-cython \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-numpy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:py${python.version}-pyobjc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:snappy \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:tiff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:webp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:zopfli \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    port:zstd
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles      patch-setup.py.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    patch-imagecodecs-_zopfli.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace "s|%PREFIX%|${prefix}|g" \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${worksrcpath}/setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-imagecodecs/files/patch-imagecodecs-_zopfli.c.diff b/python/py-imagecodecs/files/patch-imagecodecs-_zopfli.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..a19f8b85b3d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-imagecodecs/files/patch-imagecodecs-_zopfli.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- imagecodecs/_zopfli.c.orig     2020-05-30 19:35:37.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ imagecodecs/_zopfli.c  2020-07-25 13:14:02.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -600,7 +600,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "numpy/ufuncobject.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdint.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include "zopfli/zopfli.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "zopfli.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "pythread.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "pystate.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef _OPENMP
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-imagecodecs/files/patch-setup.py.diff b/python/py-imagecodecs/files/patch-setup.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c06b5d0c4ed
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-imagecodecs/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,50 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py.orig  2020-05-30 18:50:56.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py       2020-08-02 10:19:30.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -82,7 +82,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ EXTENSIONS = {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'shared': dict(),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'imcd': dict(sources=['imagecodecs/imcd.c']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    'aec': dict(libraries=['aec']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    'aec': dict(libraries=['aec'], 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        include_dirs=['%PREFIX%/lib/libaec/include'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        library_dirs=['%PREFIX%/lib/libaec/lib']
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        ),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'bitshuffle': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         sources=[
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+             'bitshuffle-0.3.5/bitshuffle_core.c',
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -93,15 +96,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'blosc': dict(libraries=['blosc']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'brotli': dict(libraries=['brotlienc', 'brotlidec', 'brotlicommon']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'bz2': dict(libraries=['bz2']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    'gif': dict(libraries=['gif']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    'gif': dict(libraries=['gif'], 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++          include_dirs=['%PREFIX%/include/giflib5']
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++          ),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'jpeg2k': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         sources=['imagecodecs/opj_color.c'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        include_dirs=['%PREFIX%/include/openjpeg-2.3'], 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         libraries=['openjp2', 'lcms2'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         define_macros=[('OPJ_HAVE_LIBLCMS2', 1)]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         ),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'jpeg8': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         libraries=['jpeg'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        cython_compile_env={'HAVE_LIBJPEG_TURBO': True}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++        cython_compile_env={'HAVE_LIBJPEG_TURBO': False}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         ),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'jpeg12': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+         libraries=['jpeg12'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -111,10 +117,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'jpegls': dict(libraries=['charls']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'jpegsof3': dict(sources=['imagecodecs/jpegsof3.cpp']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'jpegxl': dict(libraries=['brunslidec-c', 'brunslienc-c']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    'jpegxr': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        libraries=['jpegxr', 'jxrglue'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        define_macros=[('__ANSI__', 1)] if sys.platform != 'win32' else []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-        ),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    #'jpegxr': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    #    libraries=['jpegxr', 'jxrglue'],
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    #    define_macros=[('__ANSI__', 1)] if sys.platform != 'win32' else []
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    #    ),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'lerc': dict(libraries=['lerc']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'lz4': dict(libraries=['lz4']),
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     'lzf': dict(
</span></pre><pre style='margin:0'>

</pre>