dev-python/pillow-heif: add 0.18.0

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono
2024-07-29 00:40:00 +09:00
parent be87543472
commit 06b6d98c10
2 changed files with 42 additions and 0 deletions

View File

@@ -0,0 +1,41 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_EXT=1
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi
DESCRIPTION="Python interface for libheif library"
HOMEPAGE="
https://github.com/bigcat88/pillow_heif
https://pypi.org/project/pillow-heif/
"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
!test? (
dev-python/pillow[${PYTHON_USEDEP}]
>=media-libs/libheif-1.17.6:=
)
test? (
dev-python/pillow[jpeg,lcms,webp,zlib,${PYTHON_USEDEP}]
media-libs/libheif:=[x265]
)
"
BDEPEND="
test? (
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
media-libs/opencv[png,python,${PYTHON_USEDEP}]
)
"
PATCHES=( "${FILESDIR}/${PN}-0.15.0-respect-cflags.patch" )
distutils_enable_tests pytest