git: f100306e835d - main - archivers/pecl-rar: unbreak build with php81+ (+)

From: Dima Panov <fluffy_at_FreeBSD.org>
Date: Wed, 08 Nov 2023 12:12:49 UTC
The branch main has been updated by fluffy:

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

commit f100306e835df5a7d18b5f65eb9e550b5a8a6ec3
Author:     Dima Panov <fluffy@FreeBSD.org>
AuthorDate: 2023-11-08 12:04:32 +0000
Commit:     Dima Panov <fluffy@FreeBSD.org>
CommitDate: 2023-11-08 12:10:30 +0000

    archivers/pecl-rar: unbreak build with php81+ (+)
    
    Backport upstream patch to allow build with PHP >= 8.1
    Drop DEPRECATION mark
    
    Sponsored by:   Serenity Cybersecurity, LLC
---
 archivers/pecl-rar/Makefile | 9 ++++-----
 archivers/pecl-rar/distinfo | 4 +++-
 2 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/archivers/pecl-rar/Makefile b/archivers/pecl-rar/Makefile
index 85932a8f14fd..62a81392abf3 100644
--- a/archivers/pecl-rar/Makefile
+++ b/archivers/pecl-rar/Makefile
@@ -1,19 +1,18 @@
 PORTNAME=	rar
 PORTVERSION=	4.2.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	archivers pear
 
+PATCH_SITES=	https://github.com/cataphract/php-rar/commit/
+PATCHFILES=	ab26d285759e4c917879967b09976a44829ed570.diff:-p1
+
 MAINTAINER=	fluffy@FreeBSD.org
 COMMENT=	PECL extension to create and read RAR files
 WWW=		https://pecl.php.net/package/rar
 
 LICENSE=	PHP301
 
-DEPRECATED=	Requires php80 which is set to expire on 2023-11-26
-EXPIRATION_DATE=	2023-12-31
-
 USES=		compiler:c11 php:build,pecl
-IGNORE_WITH_PHP=	81 82 83
 
 CONFIGURE_ARGS=	--enable-rar
 
diff --git a/archivers/pecl-rar/distinfo b/archivers/pecl-rar/distinfo
index bd52a473a3db..0cb0f32e9097 100644
--- a/archivers/pecl-rar/distinfo
+++ b/archivers/pecl-rar/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1608808400
+TIMESTAMP = 1699432802
 SHA256 (PECL/rar-4.2.0.tgz) = 660d7d6bc97cc45395e56621aa8803a9f9d4b3436c576d67afe712c8f964a4b9
 SIZE (PECL/rar-4.2.0.tgz) = 428258
+SHA256 (PECL/ab26d285759e4c917879967b09976a44829ed570.diff) = a150a78c652d80f8bf33e635b7183895b1147563d07cba4d90d276a787b26c0b
+SIZE (PECL/ab26d285759e4c917879967b09976a44829ed570.diff) = 4622