git: 084edc1eca0c - main - misc/py-pymatreader: New port: Convenient reader for Matlab mat files

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Fri, 21 Jul 2023 06:38:45 UTC
The branch main has been updated by yuri:

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

commit 084edc1eca0c76128ac7a78c40854ccef236a569
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2023-07-18 14:29:17 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2023-07-21 06:38:36 +0000

    misc/py-pymatreader: New port: Convenient reader for Matlab mat files
---
 misc/Makefile                 |  1 +
 misc/py-pymatreader/Makefile  | 24 ++++++++++++++++++++++++
 misc/py-pymatreader/distinfo  |  3 +++
 misc/py-pymatreader/pkg-descr |  3 +++
 4 files changed, 31 insertions(+)

diff --git a/misc/Makefile b/misc/Makefile
index 8f42aeced5d1..cf6f98c4454c 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -451,6 +451,7 @@
     SUBDIR += py-pyct
     SUBDIR += py-pyfiglet
     SUBDIR += py-pykml
+    SUBDIR += py-pymatreader
     SUBDIR += py-pypatent
     SUBDIR += py-pyprind
     SUBDIR += py-pyqir
diff --git a/misc/py-pymatreader/Makefile b/misc/py-pymatreader/Makefile
new file mode 100644
index 000000000000..03d32152b84b
--- /dev/null
+++ b/misc/py-pymatreader/Makefile
@@ -0,0 +1,24 @@
+PORTNAME=	pymatreader
+DISTVERSION=	0.0.32
+CATEGORIES=	misc
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Convenient reader for Matlab mat files
+WWW=		https://gitlab.com/obob/pymatreader
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
+		${PYNUMPY} \
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.7.0:science/py-scipy@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}xmltodict>=0:devel/py-xmltodict@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist pytest # tests fail to run, see https://gitlab.com/obob/pymatreader/-/issues/20
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-pymatreader/distinfo b/misc/py-pymatreader/distinfo
new file mode 100644
index 000000000000..22c0063684dc
--- /dev/null
+++ b/misc/py-pymatreader/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1689900077
+SHA256 (pymatreader-0.0.32.tar.gz) = 34a5b4812635c98d3e5776fc21cd7f85b045784539363674d178dfb1158a617f
+SIZE (pymatreader-0.0.32.tar.gz) = 7601
diff --git a/misc/py-pymatreader/pkg-descr b/misc/py-pymatreader/pkg-descr
new file mode 100644
index 000000000000..d8983a9565b9
--- /dev/null
+++ b/misc/py-pymatreader/pkg-descr
@@ -0,0 +1,3 @@
+pymatreader is Python module to read Matlab files. This module works with both
+the old (< 7.3) and the new (>= 7.3) HDF5 based format. The output should be
+the same for both kinds of files.