# -*- 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 PortSystem 1.0 PortGroup python 1.0 name py-gmic version 2.9.4-alpha1 revision 6 # py-gmic is broken and no longer actively being developed upstream known_fail yes # gmic and py-gmic should be the same version set gmic_version 2.9.4 categories-append science license CeCILL maintainers {mps @Schamschula} openmaintainer description Python binding for G'MIC - A Full-Featured Open-Source Framework for Image Processing long_description {*}${description} platforms darwin homepage https://gmic.eu master_sites https://github.com/myselfhimself/gmic-py/archive/:py-gmic \ https://gmic.eu/files/source/:gmic distfiles v${version}${extract.suffix}:py-gmic \ gmic_${gmic_version}${extract.suffix}:gmic python.versions 39 checksums v${version}${extract.suffix} \ rmd160 11db37d67af0d451661562a3cae66b4b18a9b0fb \ sha256 da38a9afecbc20dfc5dade26c5be94d13514dbc8498aba5f7277107cee26712e \ size 13255511 \ gmic_${gmic_version}${extract.suffix} \ rmd160 f2b8179bd16d7a04b8c47355bb5582c268edb075 \ sha256 790bee48f496765f6b59067dfb10dc34e1eb576caf9a95f30af0d567026eacc7 \ size 7279628 if {${name} ne ${subport}} { build.dir ${workpath}/gmic-py-${version} depends_build-append \ port:py${python.version}-pkgconfig \ port:py${python.version}-setuptools depends_lib-append \ port:curl \ path:lib/libavcodec.dylib:ffmpeg \ port:fftw-3 \ port:jpeg \ port:libpng \ port:libomp \ path:lib/opencv4/libopencv_core.dylib:opencv4 \ port:py${python.version}-numpy \ port:py${python.version}-Pillow \ port:py${python.version}-psutil \ port:py${python.version}-wurlitzer \ port:tiff \ port:xorg-libX11 \ port:xorg-libXext \ port:xorg-libice \ port:xorg-libsm \ port:zlib build.env-append \ PKG_CONFIG_PATH=${prefix}/lib/opencv4/pkgconfig patch.dir ${build.dir} patchfiles patch-setup.py.diff post-patch { reinplace "s|%PREFIX%|${prefix}|g" ${build.dir}/setup.py xinstall -d ${build.dir}/src/gmic move ${workpath}/gmic-${gmic_version}/src ${build.dir}/src/gmic } } livecheck.url https://github.com/myselfhimself/gmic-py/tags livecheck.regex tag/v(\[0-9.\]+(-alpha\[0-9.\])?)