You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
fc849acf01
This includes a backport of https://github.com/python-pillow/Pillow/pull/8050 (https://github.com/python-pillow/Pillow/commit/57399ce204d79c74c80612c622bb788e20d786e8) from Pillow 10.4.0, necessary for Python 3.13 compatibility. See https://github.com/python/cpython/issues/118888.
75 lines
2.4 KiB
Tcl
75 lines
2.4 KiB
Tcl
# -*- 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-Pillow
|
|
version 9.5.0
|
|
revision 1
|
|
categories-append devel
|
|
license BSD
|
|
|
|
python.versions 27 37 38 39 310 311 312 313
|
|
python.pep517 no
|
|
|
|
maintainers {stromnov @stromnov} openmaintainer
|
|
|
|
description Python Imaging Library (fork)
|
|
long_description {*}${description}
|
|
|
|
homepage https://github.com/python-imaging/Pillow
|
|
|
|
checksums rmd160 15a9b4178db7e5995d94650021cdc58631a15226 \
|
|
sha256 bf548479d336726d7a0eceb6e767e179fbde37833ae42794602631a070d630f1 \
|
|
size 50488147
|
|
|
|
if {${name} ne ${subport}} {
|
|
if {${python.version} == 27} {
|
|
conflicts py${python.version}-pil
|
|
version 6.2.2
|
|
revision 0
|
|
checksums md5 46cad14f0044a5ac4b2d801271528893 \
|
|
rmd160 22b39d6d4dff18415340df080e1b598ee204a97e \
|
|
sha256 db9ff0c251ed066d367f53b64827cc9e18ccea001b986d08c265e53625dab950 \
|
|
size 37811273
|
|
|
|
patchfiles-append patch-setup.py_v6.2.1.diff
|
|
} else {
|
|
patchfiles-append patch-setup.py.diff
|
|
|
|
build.args-append --disable-raqm \
|
|
--disable-imagequant \
|
|
--disable-xcb
|
|
|
|
variant raqm description {build with raqm feature} {
|
|
build.args-delete --disable-raqm
|
|
depends_lib-append port:libraqm
|
|
}
|
|
|
|
variant x11 {
|
|
build.args-delete --disable-xcb
|
|
depends_lib-append port:xorg-libxcb
|
|
}
|
|
}
|
|
|
|
build.target build_ext
|
|
|
|
depends_build-append \
|
|
port:py${python.version}-setuptools
|
|
depends_lib-append port:py${python.version}-tkinter \
|
|
port:py${python.version}-olefile \
|
|
port:zlib \
|
|
path:include/turbojpeg.h:libjpeg-turbo \
|
|
port:tiff \
|
|
port:lcms2 \
|
|
port:webp \
|
|
port:openjpeg \
|
|
port:freetype
|
|
|
|
post-patch {
|
|
reinplace "s|@prefix@|${prefix}|g" ${worksrcpath}/setup.py
|
|
}
|
|
|
|
livecheck.type none
|
|
}
|