pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/py-sigal
Module Name: pkgsrc
Committed By: wiz
Date: Wed Mar 8 21:05:59 UTC 2023
Modified Files:
pkgsrc/www/py-sigal: Makefile distinfo
Added Files:
pkgsrc/www/py-sigal/patches: patch-sigal_gallery.py
patch-sigal_image.py
Log Message:
py-sigal: add optional HEIF support (needs py-pillow_heif installed)
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/www/py-sigal/Makefile \
pkgsrc/www/py-sigal/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/www/py-sigal/patches/patch-sigal_gallery.py \
pkgsrc/www/py-sigal/patches/patch-sigal_image.py
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/py-sigal/Makefile
diff -u pkgsrc/www/py-sigal/Makefile:1.1 pkgsrc/www/py-sigal/Makefile:1.2
--- pkgsrc/www/py-sigal/Makefile:1.1 Fri Dec 16 19:34:44 2022
+++ pkgsrc/www/py-sigal/Makefile Wed Mar 8 21:05:58 2023
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.1 2022/12/16 19:34:44 wiz Exp $
+# $NetBSD: Makefile,v 1.2 2023/03/08 21:05:58 wiz Exp $
DISTNAME= sigal-2.3
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=s/sigal/}
Index: pkgsrc/www/py-sigal/distinfo
diff -u pkgsrc/www/py-sigal/distinfo:1.1 pkgsrc/www/py-sigal/distinfo:1.2
--- pkgsrc/www/py-sigal/distinfo:1.1 Fri Dec 16 19:34:44 2022
+++ pkgsrc/www/py-sigal/distinfo Wed Mar 8 21:05:58 2023
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.1 2022/12/16 19:34:44 wiz Exp $
+$NetBSD: distinfo,v 1.2 2023/03/08 21:05:58 wiz Exp $
BLAKE2s (sigal-2.3.tar.gz) = a8b9a0f0f937e287b1283a2a9fe7551e268c1438235db8a27e9ca3fa9c002856
SHA512 (sigal-2.3.tar.gz) = e7eafc3c624497f19fdc9eb96fce67789db027b3c34c28eadcc162dd176a2462e101f16ffd54e08ee85baf1a9d264c5657e6cd264c40e155def4eee539242597
Size (sigal-2.3.tar.gz) = 4652875 bytes
+SHA1 (patch-sigal_gallery.py) = a59c0e1cb954b9045be3436c4686f073d099b1e0
+SHA1 (patch-sigal_image.py) = ab9da9578da4c3a7d364f05978803fd538fdc886
Added files:
Index: pkgsrc/www/py-sigal/patches/patch-sigal_gallery.py
diff -u /dev/null pkgsrc/www/py-sigal/patches/patch-sigal_gallery.py:1.1
--- /dev/null Wed Mar 8 21:05:59 2023
+++ pkgsrc/www/py-sigal/patches/patch-sigal_gallery.py Wed Mar 8 21:05:58 2023
@@ -0,0 +1,15 @@
+$NetBSD: patch-sigal_gallery.py,v 1.1 2023/03/08 21:05:58 wiz Exp $
+
+Fix bug in img_format configuration parameter.
+https://github.com/saimn/sigal/issues/436
+
+--- sigal/gallery.py.orig 2022-04-08 18:19:56.000000000 +0000
++++ sigal/gallery.py
+@@ -235,6 +235,7 @@ class Image(Media):
+ super().__init__(filename, path, settings)
+ imgformat = settings.get('img_format')
+
++ PILImage.registered_extensions()
+ if imgformat and PILImage.EXTENSION[self.src_ext] != imgformat.upper():
+ # Find the extension that should match img_format
+ extensions = {v: k for k, v in PILImage.EXTENSION.items()}
Index: pkgsrc/www/py-sigal/patches/patch-sigal_image.py
diff -u /dev/null pkgsrc/www/py-sigal/patches/patch-sigal_image.py:1.1
--- /dev/null Wed Mar 8 21:05:59 2023
+++ pkgsrc/www/py-sigal/patches/patch-sigal_image.py Wed Mar 8 21:05:58 2023
@@ -0,0 +1,19 @@
+$NetBSD: patch-sigal_image.py,v 1.1 2023/03/08 21:05:58 wiz Exp $
+
+Add HEIF support using pillow_heif, if it's installed.
+https://github.com/saimn/sigal/issues/436
+
+--- sigal/image.py.orig 2022-04-08 18:19:56.000000000 +0000
++++ sigal/image.py
+@@ -56,6 +56,11 @@ except ImportError:
+ # Force loading of truncated files
+ ImageFile.LOAD_TRUNCATED_IMAGES = True
+
++try:
++ from pillow_heif import HeifImagePlugin
++except ImportError:
++ HeifImagePlugin = None
++
+
+ def _has_exif_tags(img):
+ return hasattr(img, 'info') and 'exif' in img.info
Home |
Main Index |
Thread Index |
Old Index