git: b242f7333170 - main - textproc/py-tomlpp: Add new port

From: Gabriel M. Dutra <dutra_at_FreeBSD.org>
Date: Wed, 21 Aug 2024 23:03:00 UTC
The branch main has been updated by dutra:

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

commit b242f7333170c76621f66bbd09632d979934485a
Author:     Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2024-08-21 21:48:54 +0000
Commit:     Gabriel M. Dutra <dutra@FreeBSD.org>
CommitDate: 2024-08-21 23:01:13 +0000

    textproc/py-tomlpp: Add new port
    
    pytomlpp is a python wrapper for toml++
    
    PR:             278970
---
 textproc/Makefile              |  1 +
 textproc/py-pytomlpp/Makefile  | 23 +++++++++++++++++++++++
 textproc/py-pytomlpp/distinfo  |  3 +++
 textproc/py-pytomlpp/pkg-descr | 16 ++++++++++++++++
 4 files changed, 43 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index f25d42f5c71c..fdb5e34afdec 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1549,6 +1549,7 @@
     SUBDIR += py-pytidylib
     SUBDIR += py-pytkdocs
     SUBDIR += py-pytoml
+    SUBDIR += py-pytomlpp
     SUBDIR += py-pyx12
     SUBDIR += py-pyxlsb2
     SUBDIR += py-qrcode
diff --git a/textproc/py-pytomlpp/Makefile b/textproc/py-pytomlpp/Makefile
new file mode 100644
index 000000000000..4e5526f4213c
--- /dev/null
+++ b/textproc/py-pytomlpp/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	pytomlpp
+DISTVERSION=	1.0.13
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	DtxdF@disroot.org
+COMMENT=	Python wrapper for toml++
+WWW=		https://pypi.org/project/${PORTNAME}/ \
+		https://github.com/bobfang1992/${PORTNAME}
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_impl.cpython-${PYTHON_VER:S/.//}.so
+
+.include <bsd.port.mk>
diff --git a/textproc/py-pytomlpp/distinfo b/textproc/py-pytomlpp/distinfo
new file mode 100644
index 000000000000..1ebef0e598d9
--- /dev/null
+++ b/textproc/py-pytomlpp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1715548613
+SHA256 (pytomlpp-1.0.13.tar.gz) = a0bd639a8f624d1bdf5b3ea94363ca23dbfef38ab7b5b9348881a84afab434ad
+SIZE (pytomlpp-1.0.13.tar.gz) = 1309165
diff --git a/textproc/py-pytomlpp/pkg-descr b/textproc/py-pytomlpp/pkg-descr
new file mode 100644
index 000000000000..d38fc06d549e
--- /dev/null
+++ b/textproc/py-pytomlpp/pkg-descr
@@ -0,0 +1,16 @@
+pytomlpp is a python wrapper for toml++.
+
+Some points you may want to know before use:
+
+* Using toml++ means that this module is fully compatible with TOML
+  v1.0.0.
+* We convert toml structure to native python data structures
+  (dict/list etc.) when parsing, this is more inline with what json
+  module does.
+* The binding is using pybind11.
+* The project is tested using toml-test and pytest.
+* We support all major platforms
+  (Linux, Mac OSX and Windows), for both CPython and Pypy and all
+  recent Python versions. You just need to pip install and we have a
+  pre-compiled binaries ready. No need to play with clang, cmake or
+  any C++ toolchains.