<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/cf6402af5977d14b3795acc5e9211f615c326171">https://github.com/macports/macports-ports/commit/cf6402af5977d14b3795acc5e9211f615c326171</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 cf6402af597 py-imagecodecs: update to 2020.12.24
</span>cf6402af597 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cf6402af5977d14b3795acc5e9211f615c326171
</span>Author: Marius Schamschula <mps@macports.org>
AuthorDate: Fri Dec 25 09:50:04 2020 -0600
<span style='display:block; white-space:pre;color:#404040;'> py-imagecodecs: update to 2020.12.24
</span>---
python/py-imagecodecs/Portfile | 12 ++--
.../files/patch-imagecodecs-_zopfli.c.diff | 11 ---
.../files/patch-imagecodecs-zopfli.diff | 11 +++
python/py-imagecodecs/files/patch-setup.py.diff | 80 ++++++++--------------
4 files changed, 47 insertions(+), 67 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-imagecodecs/Portfile b/python/py-imagecodecs/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba1674b94a0..a2a477782ed 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-imagecodecs/Portfile
</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;'>@@ -4,7 +4,7 @@ PortSystem 1.0
</span> PortGroup python 1.0
name py-imagecodecs
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2020.5.30
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2020.12.24
</span> revision 0
categories-append graphics
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -17,9 +17,9 @@ long_description ${description}
</span>
homepage https://www.lfd.uci.edu/~gohlke/
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 a50a9a8014d82672e9f6ea4fa73a370b6ffae2e0 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 c8c776922d3a60824d8d3d31ba674a250d1b4d429e81349b5c88c34d4353ddb5 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 8993252
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 5ff061523f8d3f8e29e65b3c5421fbbd4c21a2ce \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 bcfb909c38fc0460f24ab75f58c643f2c50a10d0fa49ac07d5ea7b780765e7bd \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 9271204
</span>
python.versions 37 38 39
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -46,8 +46,8 @@ if {${name} ne ${subport}} {
</span> port:zopfli \
port:zstd
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles patch-setup.py.diff \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patch-imagecodecs-_zopfli.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-imagecodecs-zopfli.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-setup.py.diff
</span>
post-patch {
reinplace "s|%PREFIX%|${prefix}|g" \
<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>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index a19f8b85b3d..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-imagecodecs/files/patch-imagecodecs-_zopfli.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,11 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- imagecodecs/_zopfli.c.orig 2020-05-30 19:35:37.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ imagecodecs/_zopfli.c 2020-07-25 13:14:02.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -600,7 +600,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "numpy/ufuncobject.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdint.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--#include "zopfli/zopfli.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include "zopfli.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "pythread.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include "pystate.h"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #ifdef _OPENMP
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-imagecodecs/files/patch-imagecodecs-zopfli.diff b/python/py-imagecodecs/files/patch-imagecodecs-zopfli.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..76ca82aaafb
</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.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.pxd.orig 2020-10-19 19:59:45.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ imagecodecs/zopfli.pxd 2020-12-25 09:27:14.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -4,7 +4,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Cython declarations for the `Zopfli 1.0.3` library.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/google/zopfli
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-cdef extern from 'zopfli/zopfli.h':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++cdef extern from 'zopfli.h':
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ctypedef struct ZopfliOptions:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int verbose
</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><span style='display:block; white-space:pre;color:#808080;'>index c06b5d0c4ed..e0422caf0ed 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-imagecodecs/files/patch-setup.py.diff
</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;'>@@ -1,50 +1,30 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- setup.py.orig 2020-05-30 18:50:56.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ setup.py 2020-08-02 10:19:30.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -82,7 +82,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- EXTENSIONS = {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'shared': dict(),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'imcd': dict(sources=['imagecodecs/imcd.c']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- 'aec': dict(libraries=['aec']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ 'aec': dict(libraries=['aec'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ include_dirs=['%PREFIX%/lib/libaec/include'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ library_dirs=['%PREFIX%/lib/libaec/lib']
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'bitshuffle': dict(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sources=[
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'bitshuffle-0.3.5/bitshuffle_core.c',
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -93,15 +96,18 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'blosc': dict(libraries=['blosc']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'brotli': dict(libraries=['brotlienc', 'brotlidec', 'brotlicommon']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'bz2': dict(libraries=['bz2']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- 'gif': dict(libraries=['gif']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ 'gif': dict(libraries=['gif'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ include_dirs=['%PREFIX%/include/giflib5']
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ ),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'jpeg2k': dict(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sources=['imagecodecs/opj_color.c'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ include_dirs=['%PREFIX%/include/openjpeg-2.3'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- libraries=['openjp2', 'lcms2'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- define_macros=[('OPJ_HAVE_LIBLCMS2', 1)]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'jpeg8': dict(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- libraries=['jpeg'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- cython_compile_env={'HAVE_LIBJPEG_TURBO': True}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ cython_compile_env={'HAVE_LIBJPEG_TURBO': False}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'jpeg12': dict(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- libraries=['jpeg12'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -111,10 +117,10 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'jpegls': dict(libraries=['charls']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'jpegsof3': dict(sources=['imagecodecs/jpegsof3.cpp']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'jpegxl': dict(libraries=['brunslidec-c', 'brunslienc-c']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- 'jpegxr': dict(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- libraries=['jpegxr', 'jxrglue'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- define_macros=[('__ANSI__', 1)] if sys.platform != 'win32' else []
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-- ),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ #'jpegxr': dict(
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # libraries=['jpegxr', 'jxrglue'],
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # define_macros=[('__ANSI__', 1)] if sys.platform != 'win32' else []
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ # ),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'lerc': dict(libraries=['lerc']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'lz4': dict(libraries=['lz4']),
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 'lzf': dict(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py.orig 2020-12-25 09:29:15.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py 2020-12-25 09:29:41.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -381,16 +381,17 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ try:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ from imagecodecs_distributor_setup import customize_build
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ except ImportError:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- if os.environ.get('COMPUTERNAME', '').startswith('CG-'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- customize_build = customize_build_cg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- elif os.environ.get('CONDA_BUILD', ''):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- customize_build = customize_build_cf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- elif os.environ.get('LD_LIBRARY_PATH', os.environ.get('LIBRARY_PATH', '')):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- customize_build = customize_build_ci
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- elif shutil.which('port'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- customize_build = customize_build_macports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- customize_build = customize_build_default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# if os.environ.get('COMPUTERNAME', '').startswith('CG-'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# customize_build = customize_build_cg
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif os.environ.get('CONDA_BUILD', ''):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# customize_build = customize_build_cf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif os.environ.get('LD_LIBRARY_PATH', os.environ.get('LIBRARY_PATH', '')):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# customize_build = customize_build_ci
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# elif shutil.which('port'):
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# customize_build = customize_build_macports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# else:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++# customize_build = customize_build_default
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ customize_build = customize_build_macports
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ customize_build(EXTENSIONS, OPTIONS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>