git: f0fd4669b8f9 - main - science/py-libgetar: New port: Library to read and write GEneric Trajectory ARchives

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 27 Jun 2022 17:58:06 UTC
The branch main has been updated by yuri:

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

commit f0fd4669b8f96637de50848d8540ff6d623b5453
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-27 17:56:12 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-27 17:58:02 +0000

    science/py-libgetar: New port: Library to read and write GEneric Trajectory ARchives
---
 science/Makefile              |  1 +
 science/py-libgetar/Makefile  | 29 +++++++++++++++++++++++++++++
 science/py-libgetar/distinfo  |  3 +++
 science/py-libgetar/pkg-descr |  5 +++++
 4 files changed, 38 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index ea02b0ff8404..c403baaeabd2 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -295,6 +295,7 @@
     SUBDIR += py-kinematics
     SUBDIR += py-kliff
     SUBDIR += py-liac-arff
+    SUBDIR += py-libgetar
     SUBDIR += py-libpysal
     SUBDIR += py-lifelines
     SUBDIR += py-mdp
diff --git a/science/py-libgetar/Makefile b/science/py-libgetar/Makefile
new file mode 100644
index 000000000000..df16044727d8
--- /dev/null
+++ b/science/py-libgetar/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	libgetar
+DISTVERSIONPREFIX=	v
+DISTVERSION=	1.1.3
+CATEGORIES=	science # physics
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Library to read and write GEneric Trajectory ARchives
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+PY_DEPENDS=	${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}breathe>0:devel/py-breathe@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python
+USE_PYTHON=	distutils cython autoplist pytest # tests fail, see https://github.com/glotzerlab/libgetar/issues/29
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	glotzerlab
+
+TEST_ENV=      ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/gtar/_gtar${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/science/py-libgetar/distinfo b/science/py-libgetar/distinfo
new file mode 100644
index 000000000000..b98256b19831
--- /dev/null
+++ b/science/py-libgetar/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1656349194
+SHA256 (glotzerlab-libgetar-v1.1.3_GH0.tar.gz) = 04ec2e9107920018771e43e8db3b53970e39fb6006c821f6fdb30b658eab43ba
+SIZE (glotzerlab-libgetar-v1.1.3_GH0.tar.gz) = 2603015
diff --git a/science/py-libgetar/pkg-descr b/science/py-libgetar/pkg-descr
new file mode 100644
index 000000000000..8739c7f63419
--- /dev/null
+++ b/science/py-libgetar/pkg-descr
@@ -0,0 +1,5 @@
+libgetar is a library to read and write GEneric Trajectory ARchives,
+a binary data format designed for efficient, extensible storage of
+trajectory data.
+
+WWW: https://github.com/glotzerlab/libgetar