git: 019fd7b146ab - main - graphics/py-pygltflib: New port: Library for managing 3D objects in Khronos Group gltf, gltf2 formats

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 08 Jun 2023 02:40:02 UTC
The branch main has been updated by yuri:

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

commit 019fd7b146aba0e388b8d3c91d8b2166c8c7ceaf
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-06-07 23:08:56 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-06-08 02:39:59 +0000

    graphics/py-pygltflib: New port: Library for managing 3D objects in Khronos Group gltf, gltf2 formats
---
 graphics/Makefile               |  1 +
 graphics/py-pygltflib/Makefile  | 22 ++++++++++++++++++++++
 graphics/py-pygltflib/distinfo  |  3 +++
 graphics/py-pygltflib/pkg-descr |  9 +++++++++
 graphics/py-pygltflib/pkg-plist | 10 ++++++++++
 5 files changed, 45 insertions(+)

diff --git a/graphics/Makefile b/graphics/Makefile
index bddd89c9fb6d..b5929dc42f16 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -925,6 +925,7 @@
     SUBDIR += py-pygeos
     SUBDIR += py-pyglet
     SUBDIR += py-pyglet1
+    SUBDIR += py-pygltflib
     SUBDIR += py-pygraph
     SUBDIR += py-pygraphviz
     SUBDIR += py-pyinsane2
diff --git a/graphics/py-pygltflib/Makefile b/graphics/py-pygltflib/Makefile
new file mode 100644
index 000000000000..1b5081103f14
--- /dev/null
+++ b/graphics/py-pygltflib/Makefile
@@ -0,0 +1,22 @@
+PORTNAME=	pygltflib
+DISTVERSION=	1.15.6
+CATEGORIES=	graphics
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library for managing 3D objects in Khronos Group gltf, gltf2 formats
+WWW=		https://gitlab.com/dodgyville/pygltflib
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dataclasses-json>=0.0.25:devel/py-dataclasses-json@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}deprecated>0:devel/py-deprecated@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils # autoplist is broken
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/graphics/py-pygltflib/distinfo b/graphics/py-pygltflib/distinfo
new file mode 100644
index 000000000000..cd1b1ff5ddda
--- /dev/null
+++ b/graphics/py-pygltflib/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1686176000
+SHA256 (pygltflib-1.15.6.tar.gz) = 5f16feed008796638731d7f4db05170bd93f2f558b6e15a011f816fe0de43f70
+SIZE (pygltflib-1.15.6.tar.gz) = 33827
diff --git a/graphics/py-pygltflib/pkg-descr b/graphics/py-pygltflib/pkg-descr
new file mode 100644
index 000000000000..1d20f419d74b
--- /dev/null
+++ b/graphics/py-pygltflib/pkg-descr
@@ -0,0 +1,9 @@
+pygltflib is a library for reading, writing and handling GLTF files.
+
+It supports the entire specification, including materials and animations.
+
+Main features are:
+* GLB and GLTF support
+* Buffer data conversion
+* Extensions
+* All attributes are type-hinted
diff --git a/graphics/py-pygltflib/pkg-plist b/graphics/py-pygltflib/pkg-plist
new file mode 100644
index 000000000000..641bbe660605
--- /dev/null
+++ b/graphics/py-pygltflib/pkg-plist
@@ -0,0 +1,10 @@
+%%PYTHON_SITELIBDIR%%/extensions/__init__.py
+%%PYTHON_SITELIBDIR%%/pygltflib/__init__.py
+%%PYTHON_SITELIBDIR%%/pygltflib/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pygltflib/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pygltflib/__pycache__/utils%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pygltflib/__pycache__/utils%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pygltflib/__pycache__/validator%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%PYTHON_SITELIBDIR%%/pygltflib/__pycache__/validator%%PYTHON_EXT_SUFFIX%%.pyc
+%%PYTHON_SITELIBDIR%%/pygltflib/utils.py
+%%PYTHON_SITELIBDIR%%/pygltflib/validator.py