mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 16:13:21 -04:00
dev-python/pillow-heif: add 0.21.0
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST pillow_heif-0.20.0.tar.gz 16173556 BLAKE2B aa549d4344e2e7f04e85d287e5b800068823dd9c9af22cbc24d6891c7e7c23d2e875979a83aa3cd2fbaf1fe60488a885257d644f2b3528f5029c0900101689ea SHA512 2c11cc0d93b0b684a80c1b2b6c076928417f021cda1aa46f1806c39ed24a5283d7878a679bf7e6293b9e6f90d3c60c10c7ce1597c528c269cd8892dd18a8aa9b
|
||||
DIST pillow_heif-0.21.0.tar.gz 16178019 BLAKE2B 1ac057f4485331c36348f277b31d073dfe5d3aab69baaef0947449002fb095c81ffd562442f059afc29a19cafb3fa898b011c17a622963e6813a53dd2779c2f7 SHA512 9683b3eea9ea4dc0730bfab2e1163545ea31719b62cfd90a4f58aaf7ab401aef27afb7b9458c93daf9e5fa445b8f7f1ec3b3174fa9ae44513d9baaa10e777913
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/setup.py
|
||||
+++ b/setup.py
|
||||
@@ -206,7 +206,7 @@ class PillowHeifBuildExt(build_ext):
|
||||
self._add_directory(library_dirs, "/usr/lib")
|
||||
self._add_directory(library_dirs, "/lib")
|
||||
|
||||
- self._update_extension("_pillow_heif", ["heif"], extra_compile_args=["-O3", "-Werror"])
|
||||
+ self._update_extension("_pillow_heif", ["heif"])
|
||||
|
||||
self.compiler.library_dirs = library_dirs + self.compiler.library_dirs
|
||||
self.compiler.include_dirs = include_dirs + self.compiler.include_dirs
|
||||
48
dev-python/pillow-heif/pillow-heif-0.21.0.ebuild
Normal file
48
dev-python/pillow-heif/pillow-heif-0.21.0.ebuild
Normal file
@@ -0,0 +1,48 @@
|
||||
# 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..13} )
|
||||
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-1.17.6:=[x265]
|
||||
)
|
||||
"
|
||||
BDEPEND="
|
||||
test? (
|
||||
dev-python/defusedxml[${PYTHON_USEDEP}]
|
||||
dev-python/numpy[${PYTHON_USEDEP}]
|
||||
media-libs/opencv[png,python,${PYTHON_USEDEP}]
|
||||
)
|
||||
"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${P}-respect-cflags.patch" )
|
||||
|
||||
EPYTEST_DESELECT=(
|
||||
# only works with libeif-1.19.5
|
||||
# https://github.com/bigcat88/pillow_heif/pull/312/commits/d740dcce7d967d025c4100611cc7a4632aa3fc3a
|
||||
"tests/read_test.py::test_heif_read_images[image_path16]"
|
||||
"tests/read_test.py::test_heif_read_images[image_path43]"
|
||||
)
|
||||
|
||||
distutils_enable_tests pytest
|
||||
Reference in New Issue
Block a user