git: 9d96527a9280 - main - devel/iniparser: Update to 4.2.4

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 16 Jun 2024 16:37:58 UTC
The branch main has been updated by diizzy:

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

commit 9d96527a928006f4b8f76ffa3d65c695168d9905
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-06-16 16:32:25 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-06-16 16:35:53 +0000

    devel/iniparser: Update to 4.2.4
    
    * Switch to CMake which cleans up Makefile and makes port more easily
      available for consumers
    * Drop "make test" due to new and unported dependencies
    
    Changelog: https://github.com/ndevilla/iniparser/releases/tag/v4.2.4
    
    PR:             279782
    Reviewed by:    eduardo (maintainer)
---
 devel/iniparser/Makefile  | 27 +++++++++------------------
 devel/iniparser/distinfo  |  6 +++---
 devel/iniparser/pkg-plist | 13 +++++++++++++
 3 files changed, 25 insertions(+), 21 deletions(-)

diff --git a/devel/iniparser/Makefile b/devel/iniparser/Makefile
index eab8f8f5b951..917cd3fd710f 100644
--- a/devel/iniparser/Makefile
+++ b/devel/iniparser/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	iniparser
 DISTVERSIONPREFIX=	v
-DISTVERSION=	4.2.1
+DISTVERSION=	4.2.4
 CATEGORIES=	devel
 
 MAINTAINER=	eduardo@FreeBSD.org
@@ -10,26 +10,17 @@ WWW=		https://github.com/ndevilla/iniparser
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-TEST_DEPENDS=	bash>0:shells/bash
+USES=		cmake pathfix
+USE_LDCONFIG=	yes
 
-USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	ndevilla
 
-ALL_TARGET=	default
-TEST_TARGET=	check
-
-PLIST_FILES=	include/dictionary.h \
-		include/iniparser.h \
-		lib/libiniparser.a \
-		lib/libiniparser.so \
-		lib/libiniparser.so.1
-
-do-install:
-	${INSTALL_DATA} ${WRKSRC}/src/dictionary.h ${STAGEDIR}${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/src/iniparser.h ${STAGEDIR}${PREFIX}/include
-	${INSTALL_DATA} ${WRKSRC}/libiniparser.a ${STAGEDIR}${PREFIX}/lib
-	${INSTALL_LIB} ${WRKSRC}/libiniparser.so.1 ${STAGEDIR}${PREFIX}/lib
-	@${LN} -sf libiniparser.so.1 ${STAGEDIR}${PREFIX}/lib/libiniparser.so
+PORTDOCS=	*
+
+OPTIONS_DEFINE=	DOCS
+
+DOCS_BUILD_DEPENDS=	doxygen:devel/doxygen
+DOCS_CMAKE_BOOL=	BUILD_DOCS
 
 .include <bsd.port.mk>
diff --git a/devel/iniparser/distinfo b/devel/iniparser/distinfo
index 226dcc5ce3b5..5db31b74da48 100644
--- a/devel/iniparser/distinfo
+++ b/devel/iniparser/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1715847729
-SHA256 (ndevilla-iniparser-v4.2.1_GH0.tar.gz) = 9120fd13260be1dbec74b8aaf47777c434976626f3b3288c0d17b70e21cce2d2
-SIZE (ndevilla-iniparser-v4.2.1_GH0.tar.gz) = 66524
+TIMESTAMP = 1718526163
+SHA256 (ndevilla-iniparser-v4.2.4_GH0.tar.gz) = c05bb41df87f31a029516943ebb7f38ca1f0e38ff36f3836f1163a9a529857df
+SIZE (ndevilla-iniparser-v4.2.4_GH0.tar.gz) = 37993
diff --git a/devel/iniparser/pkg-plist b/devel/iniparser/pkg-plist
new file mode 100644
index 000000000000..5bf7452bd301
--- /dev/null
+++ b/devel/iniparser/pkg-plist
@@ -0,0 +1,13 @@
+include/iniparser/dictionary.h
+include/iniparser/iniparser.h
+lib/cmake/iniparser/iniparser-config-version.cmake
+lib/cmake/iniparser/iniparser-config.cmake
+lib/cmake/iniparser/iniparser-sharedTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/iniparser/iniparser-sharedTargets.cmake
+lib/cmake/iniparser/iniparser-staticTargets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/iniparser/iniparser-staticTargets.cmake
+lib/libiniparser.a
+lib/libiniparser.so
+lib/libiniparser.so.4
+lib/libiniparser.so.4.2.4
+libdata/pkgconfig/iniparser.pc