git: 032f8f48d9e6 - main - devel/py-oyaml: Add py-oyaml 1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 27 Nov 2023 18:08:23 UTC
The branch main has been updated by sunpoet:

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

commit 032f8f48d9e65243597befec3fc5e1f4c8da43fc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-27 17:39:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-27 18:07:44 +0000

    devel/py-oyaml: Add py-oyaml 1.0
    
    oyaml is a drop-in replacement for PyYAML which preserves dict ordering. You'll
    no longer be annoyed by screwed-up mappings when dumping/loading.
---
 devel/Makefile           |  1 +
 devel/py-oyaml/Makefile  | 21 +++++++++++++++++++++
 devel/py-oyaml/distinfo  |  3 +++
 devel/py-oyaml/pkg-descr |  2 ++
 4 files changed, 27 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 57c88a49ee2a..268cc60777a9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5095,6 +5095,7 @@
     SUBDIR += py-overrides
     SUBDIR += py-ovs
     SUBDIR += py-ovsdbapp
+    SUBDIR += py-oyaml
     SUBDIR += py-p4python
     SUBDIR += py-packaging
     SUBDIR += py-parallax
diff --git a/devel/py-oyaml/Makefile b/devel/py-oyaml/Makefile
new file mode 100644
index 000000000000..bf2aab88987b
--- /dev/null
+++ b/devel/py-oyaml/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	oyaml
+PORTVERSION=	1.0
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Ordered YAML: drop-in replacement for PyYAML which preserves dict ordering
+WWW=		https://github.com/wimglenn/oyaml
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=0:devel/py-yaml@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-oyaml/distinfo b/devel/py-oyaml/distinfo
new file mode 100644
index 000000000000..2842cff0fbe5
--- /dev/null
+++ b/devel/py-oyaml/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1701083334
+SHA256 (oyaml-1.0.tar.gz) = ed8fc096811f4763e1907dce29c35895d6d5936c4d0400fe843a91133d4744ed
+SIZE (oyaml-1.0.tar.gz) = 2914
diff --git a/devel/py-oyaml/pkg-descr b/devel/py-oyaml/pkg-descr
new file mode 100644
index 000000000000..7829e7925559
--- /dev/null
+++ b/devel/py-oyaml/pkg-descr
@@ -0,0 +1,2 @@
+oyaml is a drop-in replacement for PyYAML which preserves dict ordering. You'll
+no longer be annoyed by screwed-up mappings when dumping/loading.