mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-06 08:25:01 +01:00
seafile-pro-server: pillow 10.0.0 patch
This commit is contained in:
parent
f5d196f7dd
commit
1058e2c17e
2 changed files with 13 additions and 1 deletions
11
www-apps/seafile-pro-server/files/pillow-10.patch
Normal file
11
www-apps/seafile-pro-server/files/pillow-10.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
--- a/seahub/seahub/avatar/settings.py.orig 2023-09-07 15:09:20.602374375 +0800
|
||||
+++ b/seahub/seahub/avatar/settings.py 2023-09-07 15:09:54.182346509 +0800
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
### Common settings ###
|
||||
AVATAR_FILE_STORAGE = getattr(settings, 'AVATAR_FILE_STORAGE', '')
|
||||
-AVATAR_RESIZE_METHOD = getattr(settings, 'AVATAR_RESIZE_METHOD', Image.ANTIALIAS)
|
||||
+AVATAR_RESIZE_METHOD = getattr(settings, 'AVATAR_RESIZE_METHOD', Image.Resampling.LANCZOS)
|
||||
AVATAR_GRAVATAR_BACKUP = getattr(settings, 'AVATAR_GRAVATAR_BACKUP', True)
|
||||
AVATAR_GRAVATAR_DEFAULT = getattr(settings, 'AVATAR_GRAVATAR_DEFAULT', None)
|
||||
AVATAR_MAX_AVATARS_PER_USER = getattr(settings, 'AVATAR_MAX_AVATARS_PER_USER', 42)
|
||||
|
|
@ -23,7 +23,7 @@ RDEPEND="${PYTHON_DEPS}
|
|||
=app-misc/elasticsearch-8*
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/future[${PYTHON_USEDEP}]
|
||||
dev-python/pillow[${PYTHON_USEDEP}]
|
||||
>=dev-python/pillow-10.0.0[${PYTHON_USEDEP}]
|
||||
dev-python/pylibmc[${PYTHON_USEDEP}]
|
||||
dev-python/django-simple-captcha[${PYTHON_USEDEP}]
|
||||
|
||||
|
|
@ -51,6 +51,7 @@ DEPEND="${RDEPEND}"
|
|||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
|
||||
src_prepare() {
|
||||
eapply "${FILESDIR}"/pillow-10.patch
|
||||
#match with cffi in RDEPEND section
|
||||
# sed -e "s|1.14.0|${CFFI_PV}|" -i seahub/thirdpart/cffi/__init__.py || die "sed failed"
|
||||
rm -r seahub/thirdpart/{cffi*,requests*}
|
||||
|
|
|
|||
Loading…
Reference in a new issue