pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/graphics/py-pillow_heif
Module Name: pkgsrc
Committed By: wiz
Date: Thu Mar 9 06:55:30 UTC 2023
Added Files:
pkgsrc/graphics/py-pillow_heif: DESCR Makefile PLIST distinfo
pkgsrc/graphics/py-pillow_heif/patches:
patch-libheif_linux__build__libs.py
Log Message:
graphics/py-pillow_heif: re-import py-pillow_heif-0.10.0
Fix _ -> - in package directory.
Python bindings to libheif for working with HEIF images and plugin
for Pillow.
Features:
* Decoding of 8, 10, 12 bit HEIC and AVIF files.
* Encoding of 8, 10, 12 bit HEIC and AVIF files.
* EXIF, XMP, IPTC read & write support.
* Support of multiple images in one file and a PrimaryImage attribute.
* Adding & removing thumbnails.
* Adding HEIF support to Pillow in one line of code as a plugin.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/py-pillow_heif/DESCR \
pkgsrc/graphics/py-pillow_heif/Makefile \
pkgsrc/graphics/py-pillow_heif/PLIST \
pkgsrc/graphics/py-pillow_heif/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/graphics/py-pillow_heif/patches/patch-libheif_linux__build__libs.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/graphics/py-pillow_heif/DESCR
diff -u /dev/null pkgsrc/graphics/py-pillow_heif/DESCR:1.1
--- /dev/null Thu Mar 9 06:55:30 2023
+++ pkgsrc/graphics/py-pillow_heif/DESCR Thu Mar 9 06:55:30 2023
@@ -0,0 +1,11 @@
+Python bindings to libheif for working with HEIF images and plugin
+for Pillow.
+
+Features:
+
+* Decoding of 8, 10, 12 bit HEIC and AVIF files.
+* Encoding of 8, 10, 12 bit HEIC and AVIF files.
+* EXIF, XMP, IPTC read & write support.
+* Support of multiple images in one file and a PrimaryImage attribute.
+* Adding & removing thumbnails.
+* Adding HEIF support to Pillow in one line of code as a plugin.
Index: pkgsrc/graphics/py-pillow_heif/Makefile
diff -u /dev/null pkgsrc/graphics/py-pillow_heif/Makefile:1.1
--- /dev/null Thu Mar 9 06:55:30 2023
+++ pkgsrc/graphics/py-pillow_heif/Makefile Thu Mar 9 06:55:30 2023
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2023/03/09 06:55:30 wiz Exp $
+
+DISTNAME= pillow_heif-0.10.0
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= graphics
+MASTER_SITES= ${MASTER_SITE_PYPI:=p/pillow_heif/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/bigcat88/pillow_heif
+COMMENT= Python interface for libheif library
+LICENSE= gnu-gpl-v2
+
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+DEPENDS+= ${PYPKGPREFIX}-Pillow-[0-9]*:../../graphics/py-Pillow
+
+PYTHON_VERSIONS_INCOMPATIBLE= 27
+
+.include "../../lang/python/wheel.mk"
+BUILDLINK_API_DEPENDS.libheif+= libheif>=1.12.0
+.include "../../graphics/libheif/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libaom+= libaom>=3.3.0
+.include "../../multimedia/libaom/buildlink3.mk"
+BUILDLINK_API_DEPENDS.libde265+= libde265>=1.0.8
+.include "../../multimedia/libde265/buildlink3.mk"
+.include "../../multimedia/x265/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/py-pillow_heif/PLIST
diff -u /dev/null pkgsrc/graphics/py-pillow_heif/PLIST:1.1
--- /dev/null Thu Mar 9 06:55:30 2023
+++ pkgsrc/graphics/py-pillow_heif/PLIST Thu Mar 9 06:55:30 2023
@@ -0,0 +1,31 @@
+@comment $NetBSD: PLIST,v 1.1 2023/03/09 06:55:30 wiz Exp $
+${PYSITELIB}/_pillow_heif.so
+${PYSITELIB}/${WHEEL_INFODIR}/INSTALLER
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSES_bundled.txt
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/REQUESTED
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/direct_url.json
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
+${PYSITELIB}/pillow_heif/AvifImagePlugin.py
+${PYSITELIB}/pillow_heif/AvifImagePlugin.pyc
+${PYSITELIB}/pillow_heif/HeifImagePlugin.py
+${PYSITELIB}/pillow_heif/HeifImagePlugin.pyc
+${PYSITELIB}/pillow_heif/__init__.py
+${PYSITELIB}/pillow_heif/__init__.pyc
+${PYSITELIB}/pillow_heif/_lib_info.py
+${PYSITELIB}/pillow_heif/_lib_info.pyc
+${PYSITELIB}/pillow_heif/_version.py
+${PYSITELIB}/pillow_heif/_version.pyc
+${PYSITELIB}/pillow_heif/as_plugin.py
+${PYSITELIB}/pillow_heif/as_plugin.pyc
+${PYSITELIB}/pillow_heif/constants.py
+${PYSITELIB}/pillow_heif/constants.pyc
+${PYSITELIB}/pillow_heif/heif.py
+${PYSITELIB}/pillow_heif/heif.pyc
+${PYSITELIB}/pillow_heif/misc.py
+${PYSITELIB}/pillow_heif/misc.pyc
+${PYSITELIB}/pillow_heif/options.py
+${PYSITELIB}/pillow_heif/options.pyc
Index: pkgsrc/graphics/py-pillow_heif/distinfo
diff -u /dev/null pkgsrc/graphics/py-pillow_heif/distinfo:1.1
--- /dev/null Thu Mar 9 06:55:30 2023
+++ pkgsrc/graphics/py-pillow_heif/distinfo Thu Mar 9 06:55:30 2023
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2023/03/09 06:55:30 wiz Exp $
+
+BLAKE2s (pillow_heif-0.10.0.tar.gz) = 399b35dc7c4d5e58f8c03698ea58a426597d2a9f77c15ec9cc76bc705c246a90
+SHA512 (pillow_heif-0.10.0.tar.gz) = ee9db238876dda26201d51288fa2df1bd0962988b6d3d98ddee9ea70a6c45507a0a187ee1830d0e5da47b9e8cee15d836c558893db995a624a34afb7815f014a
+Size (pillow_heif-0.10.0.tar.gz) = 7579395 bytes
+SHA1 (patch-libheif_linux__build__libs.py) = 27a9b7e53305fd8a9e77307416349fd9f0c834f4
Index: pkgsrc/graphics/py-pillow_heif/patches/patch-libheif_linux__build__libs.py
diff -u /dev/null pkgsrc/graphics/py-pillow_heif/patches/patch-libheif_linux__build__libs.py:1.1
--- /dev/null Thu Mar 9 06:55:30 2023
+++ pkgsrc/graphics/py-pillow_heif/patches/patch-libheif_linux__build__libs.py Thu Mar 9 06:55:30 2023
@@ -0,0 +1,22 @@
+$NetBSD: patch-libheif_linux__build__libs.py,v 1.1 2023/03/09 06:55:30 wiz Exp $
+
+Skip detection and build of libraries - provided by pkgsrc.
+
+--- libheif/linux_build_libs.py.orig 2023-02-24 09:04:12.000000000 +0000
++++ libheif/linux_build_libs.py
+@@ -77,6 +77,7 @@ def tool_check_version(name: str, min_ve
+
+
+ def check_install_nasm(version: str):
++ return True
+ if not match("(i[3-6]86|x86_64)$", machine()):
+ return True
+ if tool_check_version("nasm", version):
+@@ -105,6 +106,7 @@ def is_musllinux() -> bool:
+
+
+ def is_library_installed(name: str) -> bool:
++ return True
+ if name.find("main") != -1 and name.find("reference") != -1:
+ raise Exception("`name` param can not contain `main` and `reference` substrings.")
+ _r = run(f"gcc -l{name}".split(), stdout=PIPE, stderr=STDOUT, check=False)
Home |
Main Index |
Thread Index |
Old Index