git: 10594b0593a3 - main - devel/libfigpar: New port

From: Dag-Erling Smørgrav <des_at_FreeBSD.org>
Date: Tue, 30 Jun 2026 18:57:02 UTC
The branch main has been updated by des:

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

commit 10594b0593a388b5567116403b93906c11bdcd17
Author:     Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-06-30 18:56:35 +0000
Commit:     Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-06-30 18:56:52 +0000

    devel/libfigpar: New port
    
    Reviewed by:    fuz
    Differential Revision:  https://reviews.freebsd.org/D57958
---
 devel/Makefile            |  1 +
 devel/libfigpar/Makefile  | 21 +++++++++++++++++++++
 devel/libfigpar/distinfo  |  3 +++
 devel/libfigpar/pkg-descr |  6 ++++++
 devel/libfigpar/pkg-plist | 13 +++++++++++++
 5 files changed, 44 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index dce0b2b0bb4f..baef010c9efa 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1321,6 +1321,7 @@
     SUBDIR += libffi
     SUBDIR += libffi321
     SUBDIR += libffi33
+    SUBDIR += libfigpar
     SUBDIR += libfirm
     SUBDIR += libfixposix
     SUBDIR += libfmt
diff --git a/devel/libfigpar/Makefile b/devel/libfigpar/Makefile
new file mode 100644
index 000000000000..a1747bb1de00
--- /dev/null
+++ b/devel/libfigpar/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	libfigpar
+DISTVERSION=	0.20260629
+CATEGORIES=	devel
+
+MAINTAINER=	dteske@FreeBSD.org
+COMMENT=	Configuration parsing library
+
+LICENSE=	BSD2CLAUSE
+
+IGNORE_FreeBSD_14=	FreeBSD 14 has libfigpar in base
+
+USES=		uidfix
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	freebsd
+GH_PROJECT=	dpv
+
+WRKSRC_SUBDIR=	lib/libfigpar
+
+.include <bsd.port.mk>
diff --git a/devel/libfigpar/distinfo b/devel/libfigpar/distinfo
new file mode 100644
index 000000000000..385d5d07ad57
--- /dev/null
+++ b/devel/libfigpar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1782766391
+SHA256 (freebsd-dpv-0.20260629_GH0.tar.gz) = dee41610b613ec26c8726ab1e854e88eac51934804df64fd305f9ea478e11268
+SIZE (freebsd-dpv-0.20260629_GH0.tar.gz) = 45076
diff --git a/devel/libfigpar/pkg-descr b/devel/libfigpar/pkg-descr
new file mode 100644
index 000000000000..29a55d374cb9
--- /dev/null
+++ b/devel/libfigpar/pkg-descr
@@ -0,0 +1,6 @@
+The figpar library provides a light-weight, portable framework for
+parsing configuration files.
+
+Due to the fact that configuration files may have basic syntax
+differences, the library does not attempt to impose any structure on the
+data but instead provides raw data to a set of callback functions.
diff --git a/devel/libfigpar/pkg-plist b/devel/libfigpar/pkg-plist
new file mode 100644
index 000000000000..1b864c6c5286
--- /dev/null
+++ b/devel/libfigpar/pkg-plist
@@ -0,0 +1,13 @@
+include/figpar.h
+include/string_m.h
+lib/libfigpar.a
+lib/libfigpar.so
+lib/libfigpar.so.0
+share/man/man3/figpar.3.gz
+share/man/man3/get_config_option.3.gz
+share/man/man3/parse_config.3.gz
+share/man/man3/replaceall.3.gz
+share/man/man3/strcount.3.gz
+share/man/man3/strexpand.3.gz
+share/man/man3/strexpandnl.3.gz
+share/man/man3/strtolower.3.gz