git: ec7e5f0dd7de - main - archivers/lzfse: Update to 1.0

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 16 Nov 2024 18:30:37 UTC
The branch main has been updated by diizzy:

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

commit ec7e5f0dd7def0d86262ab9b07087cac9534fd49
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-11-16 09:56:58 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-11-16 18:29:08 +0000

    archivers/lzfse: Update to 1.0
    
    * Switch to CMake
    * Import upstream PR#60
    
    Reference:
    https://github.com/lzfse/lzfse/pull/60
    
    PR:             282362
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 archivers/lzfse/Makefile  | 15 +++++++++++----
 archivers/lzfse/distinfo  |  8 +++++---
 archivers/lzfse/pkg-plist |  6 ++++--
 3 files changed, 20 insertions(+), 9 deletions(-)

diff --git a/archivers/lzfse/Makefile b/archivers/lzfse/Makefile
index 78df75a5fdf2..4d69602fdda6 100644
--- a/archivers/lzfse/Makefile
+++ b/archivers/lzfse/Makefile
@@ -1,7 +1,12 @@
 PORTNAME=	lzfse
-PORTVERSION=	20160707
+DISTVERSIONPREFIX=	${PORTNAME}-
+DISTVERSION=	1.0
+PORTEPOCH=	1
 CATEGORIES=	archivers
 
+PATCH_SITES=	https://github.com/lzfse/lzfse/commit/
+PATCHFILES=	570967857b31ff77eb355cdf8eb583fbb4d70177.patch:-p1
+
 MAINTAINER=	skreuzer@FreeBSD.org
 COMMENT=	Lempel-Ziv style data compression algorithm
 WWW=		https://github.com/lzfse/lzfse
@@ -9,10 +14,12 @@ WWW=		https://github.com/lzfse/lzfse
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+USES=		cmake
+
 USE_GITHUB=	yes
-GH_TAGNAME=	4591228
 
-USES=	gmake
-MAKE_ARGS+=	INSTALL_PREFIX="${STAGEDIR}${PREFIX}"
+TEST_TARGET=	test
+
+CMAKE_OFF=	CMAKE_C_EXTENSIONS
 
 .include <bsd.port.mk>
diff --git a/archivers/lzfse/distinfo b/archivers/lzfse/distinfo
index 70683c1203fa..5eb9508248a0 100644
--- a/archivers/lzfse/distinfo
+++ b/archivers/lzfse/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1467897116
-SHA256 (lzfse-lzfse-20160707-4591228_GH0.tar.gz) = a6b8609947ed610d52f8438ad67c3fd6589f0ae831feae2ef10c2cfc2568d11f
-SIZE (lzfse-lzfse-20160707-4591228_GH0.tar.gz) = 45414
+TIMESTAMP = 1730048988
+SHA256 (lzfse-lzfse-lzfse-1.0_GH0.tar.gz) = cf85f373f09e9177c0b21dbfbb427efaedc02d035d2aade65eb58a3cbf9ad267
+SIZE (lzfse-lzfse-lzfse-1.0_GH0.tar.gz) = 50694
+SHA256 (570967857b31ff77eb355cdf8eb583fbb4d70177.patch) = 2aaebcf4ee0ec9a272a30bd10d6570ced46e90fe21b30d3b6629f09bd3adad59
+SIZE (570967857b31ff77eb355cdf8eb583fbb4d70177.patch) = 596
diff --git a/archivers/lzfse/pkg-plist b/archivers/lzfse/pkg-plist
index f66cbd6580c8..4c35ffb42fb6 100644
--- a/archivers/lzfse/pkg-plist
+++ b/archivers/lzfse/pkg-plist
@@ -1,3 +1,5 @@
-include/lzfse.h
-lib/liblzfse.a
 bin/lzfse
+include/lzfse.h
+lib/liblzfse.so
+lib/liblzfse.so.1
+lib/liblzfse.so.1.0