summaryrefslogtreecommitdiff
path: root/dev-python/pillow/pillow-11.1.0.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/pillow/pillow-11.1.0.ebuild')
-rw-r--r--dev-python/pillow/pillow-11.1.0.ebuild14
1 files changed, 13 insertions, 1 deletions
diff --git a/dev-python/pillow/pillow-11.1.0.ebuild b/dev-python/pillow/pillow-11.1.0.ebuild
index 3080e16268e8..74b4d57ba8d7 100644
--- a/dev-python/pillow/pillow-11.1.0.ebuild
+++ b/dev-python/pillow/pillow-11.1.0.ebuild
@@ -14,6 +14,9 @@ inherit distutils-r1 toolchain-funcs virtualx
MY_PN=Pillow
MY_P=${MY_PN}-${PV}
+# upstream always fetches from main
+TEST_IMAGE_COMMIT="716bdc4adaf97601e5b9a31c9be25f8975381ee1"
+
DESCRIPTION="Python Imaging Library (fork)"
HOMEPAGE="
https://python-pillow.org/
@@ -24,8 +27,12 @@ SRC_URI="
https://github.com/python-pillow/Pillow/archive/${PV}.tar.gz
-> ${P}.gh.tar.gz
https://github.com/python/pythoncapi-compat/raw/c84545f0e1e21757d4901f75c47333d25a3fcff0/pythoncapi_compat.h
+ test? (
+ https://github.com/python-pillow/test-images/archive/${TEST_IMAGE_COMMIT}.tar.gz
+ -> pillow-test-images-${TEST_IMAGE_COMMIT}.gh.tar.gz
+ )
"
-S="${WORKDIR}/${MY_P}"
+S=${WORKDIR}/${MY_P}
LICENSE="HPND"
SLOT="0"
@@ -75,6 +82,11 @@ src_prepare() {
distutils-r1_src_prepare
+ if use test; then
+ mv "${WORKDIR}/test-images-${TEST_IMAGE_COMMIT}"/* \
+ Tests/images || die
+ fi
+
# https://github.com/python-pillow/Pillow/pull/8757
if ! grep -q 0041177c4f348c8952b4c8980b2c90856e61c7c7 \
src/thirdparty/pythoncapi_compat.h