git: 91ac20d70240 - main - devel/libfsfat: new port

From: Antoine Brodin <antoine_at_FreeBSD.org>
Date: Wed, 22 Feb 2023 13:20:53 UTC
The branch main has been updated by antoine:

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

commit 91ac20d70240ff991f0b27c96b557f11bbae3c85
Author:     Antoine Brodin <antoine@FreeBSD.org>
AuthorDate: 2023-02-22 13:20:00 +0000
Commit:     Antoine Brodin <antoine@FreeBSD.org>
CommitDate: 2023-02-22 13:20:00 +0000

    devel/libfsfat: new port
    
    Library and tools to access the File Allocation Table (FAT) file system
    WWW: https://github.com/libyal/libfsfat
---
 devel/Makefile           |  1 +
 devel/libfsfat/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/libfsfat/distinfo  |  3 +++
 devel/libfsfat/pkg-descr |  1 +
 devel/libfsfat/pkg-plist | 19 +++++++++++++++++++
 5 files changed, 53 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 193199edd634..3eb45773467b 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -1230,6 +1230,7 @@
     SUBDIR += libfreefare
     SUBDIR += libfsapfs
     SUBDIR += libfsext
+    SUBDIR += libfsfat
     SUBDIR += libfshfs
     SUBDIR += libfsntfs
     SUBDIR += libfsxfs
diff --git a/devel/libfsfat/Makefile b/devel/libfsfat/Makefile
new file mode 100644
index 000000000000..abab5144d5e9
--- /dev/null
+++ b/devel/libfsfat/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	libfsfat
+# If/When moving from experimental to alpha, switch to DISTVERSIONPREFIX to prevent PORTEPOCH
+DISTVERSION=	experimental-20220925
+CATEGORIES=	devel
+MASTER_SITES=	https://github.com/libyal/libfsfat/releases/download/${PORTVERSION:E}/ \
+		LOCAL/antoine
+
+MAINTAINER=	antoine@FreeBSD.org
+COMMENT=	Library and tools to access the File Allocation Table File System
+WWW=		https://github.com/libyal/libfsfat
+
+LICENSE=	LGPL3+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--enable-python --with-openssl=no
+CONFIGURE_ENV=	PYTHON_CONFIG=${PYTHON_CMD}-config
+USES=		fuse libtool pathfix pkgconfig python
+USE_LDCONFIG=	yes
+INSTALL_TARGET=	install-strip
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION:E}
+
+OPTIONS_DEFINE=	NLS
+
+NLS_USES=	gettext
+NLS_CONFIGURE_ON=	--with-libintl-prefix=${LOCALBASE}
+NLS_CONFIGURE_OFF=	--disable-nls
+
+.include <bsd.port.mk>
diff --git a/devel/libfsfat/distinfo b/devel/libfsfat/distinfo
new file mode 100644
index 000000000000..79676a186a72
--- /dev/null
+++ b/devel/libfsfat/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1676995935
+SHA256 (libfsfat-experimental-20220925.tar.gz) = 8e161d46088c62be3d6277cf660d45886e0ad3da905473e5046fff033edc0c35
+SIZE (libfsfat-experimental-20220925.tar.gz) = 1692529
diff --git a/devel/libfsfat/pkg-descr b/devel/libfsfat/pkg-descr
new file mode 100644
index 000000000000..f303433616cc
--- /dev/null
+++ b/devel/libfsfat/pkg-descr
@@ -0,0 +1 @@
+Library and tools to access the File Allocation Table (FAT) file system
diff --git a/devel/libfsfat/pkg-plist b/devel/libfsfat/pkg-plist
new file mode 100644
index 000000000000..6d9182daf24b
--- /dev/null
+++ b/devel/libfsfat/pkg-plist
@@ -0,0 +1,19 @@
+bin/fsfatinfo
+bin/fsfatmount
+include/libfsfat.h
+include/libfsfat/codepage.h
+include/libfsfat/definitions.h
+include/libfsfat/error.h
+include/libfsfat/extern.h
+include/libfsfat/features.h
+include/libfsfat/types.h
+lib/libfsfat.a
+lib/libfsfat.so
+lib/libfsfat.so.1
+lib/libfsfat.so.1.0.0
+%%PYTHON_SITELIBDIR%%/pyfsfat.a
+%%PYTHON_SITELIBDIR%%/pyfsfat.so
+libdata/pkgconfig/libfsfat.pc
+man/man1/fsfatinfo.1.gz
+man/man1/fsfatmount.1.gz
+man/man3/libfsfat.3.gz