git: 3593a1ea44a6 - main - graphics/libheif: Use upstream release archive and backport bugfixes

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 25 Sep 2022 22:49:46 UTC
The branch main has been updated by diizzy:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3593a1ea44a6f1fed6022e48dc2381af55bdf883

commit 3593a1ea44a6f1fed6022e48dc2381af55bdf883
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-09-25 17:57:28 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-09-25 22:46:47 +0000

    graphics/libheif: Use upstream release archive and backport bugfixes
    
    - Use upstream release archive as recommended by Porters Handbook
      (USE_GITHUB section)
    - Backport upstream commits a01baccaf40bafcabddba47846f5e914ca0724f6
      and d506bccdcecd7133ab12daa4ebcfbbb75d40641f
    
    References:
    https://github.com/strukturag/libheif/commit/a01baccaf40bafcabddba47846f5e914ca0724f6
    https://github.com/strukturag/libheif/commit/d506bccdcecd7133ab12daa4ebcfbbb75d40641f
    
    PR:             266346
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 graphics/libheif/Makefile | 10 ++++++----
 graphics/libheif/distinfo | 10 +++++++---
 2 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/graphics/libheif/Makefile b/graphics/libheif/Makefile
index 66604e0e253c..56db9b93e820 100644
--- a/graphics/libheif/Makefile
+++ b/graphics/libheif/Makefile
@@ -1,7 +1,12 @@
 PORTNAME=	libheif
-DISTVERSIONPREFIX=	v
 DISTVERSION=	1.13.0
+PORTREVISION=	1
 CATEGORIES=	graphics
+MASTER_SITES=	https://github.com/strukturag/${PORTNAME}/releases/download/v${DISTVERSION}/
+
+PATCH_SITES=	https://github.com/strukturag/${PORTNAME}/commit/
+PATCHFILES=	a01baccaf40bafcabddba47846f5e914ca0724f6.patch:-p1 \
+		d506bccdcecd7133ab12daa4ebcfbbb75d40641f.patch:-p1
 
 MAINTAINER=	makc@FreeBSD.org
 COMMENT=	ISO/IEC 23008-12:2017 HEIF file format de- and encoder
@@ -16,9 +21,6 @@ CPE_VENDOR=	struktur
 USE_GNOME=	gdkpixbuf2 glib20
 USE_LDCONFIG=	yes
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	strukturag
-
 OPTIONS_DEFINE=		AOM DAV1D EXAMPLES LIBDE265 RAV1E X265
 OPTIONS_DEFAULT=	AOM DAV1D LIBDE265 X265
 
diff --git a/graphics/libheif/distinfo b/graphics/libheif/distinfo
index 226832c383f4..88674da0c28b 100644
--- a/graphics/libheif/distinfo
+++ b/graphics/libheif/distinfo
@@ -1,3 +1,7 @@
-TIMESTAMP = 1662147626
-SHA256 (strukturag-libheif-v1.13.0_GH0.tar.gz) = 50def171af4bc8991211d6027f3cee4200a86bbe60fddb537799205bf216ddca
-SIZE (strukturag-libheif-v1.13.0_GH0.tar.gz) = 1275481
+TIMESTAMP = 1662837293
+SHA256 (libheif-1.13.0.tar.gz) = c20ae01bace39e89298f6352f1ff4a54b415b33b9743902da798e8a1e51d7ca1
+SIZE (libheif-1.13.0.tar.gz) = 1703950
+SHA256 (a01baccaf40bafcabddba47846f5e914ca0724f6.patch) = 0f910768a2e031b2171c477bcfb9e82d03d970abcd1bbd6dc0ec3ce06fa2ec2c
+SIZE (a01baccaf40bafcabddba47846f5e914ca0724f6.patch) = 1484
+SHA256 (d506bccdcecd7133ab12daa4ebcfbbb75d40641f.patch) = aa6d600969f624bb69e1f4516bfb618998e74fbff96a414322f2e7cfc5e0a4f7
+SIZE (d506bccdcecd7133ab12daa4ebcfbbb75d40641f.patch) = 2138