aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2026-06-02 20:08:08 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2026-06-02 22:51:16 +0000
commit0c2291968f84a771a0193309f6c8cba0cfd8200d (patch)
tree25d07657e090e7803e99faa19560057c34a446a9
parentef90cbfcf5bdf22a87eaef0c032c1c43fe4e6c4c (diff)
science/moltui: New port: Terminal-based 3D molecular viewer
-rw-r--r--science/Makefile1
-rw-r--r--science/moltui/Makefile33
-rw-r--r--science/moltui/distinfo3
-rw-r--r--science/moltui/pkg-descr3
4 files changed, 40 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 636e67d8a5b7..a7f46b4fc331 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -192,6 +192,7 @@
SUBDIR += molgif
SUBDIR += molscript
SUBDIR += molsketch
+ SUBDIR += moltui
SUBDIR += mopac
SUBDIR += mp2d
SUBDIR += mpb
diff --git a/science/moltui/Makefile b/science/moltui/Makefile
new file mode 100644
index 000000000000..e8bd4f899fb2
--- /dev/null
+++ b/science/moltui/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= moltui
+DISTVERSION= 0.5.1
+CATEGORIES= science python
+MASTER_SITES= PYPI
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Terminal-based 3D molecular viewer
+WWW= https://github.com/kszenes/moltui
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}hatch-vcs>0:devel/py-hatch-vcs@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.26:math/py-numpy@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scikit-image>=0.22:graphics/py-scikit-image@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}textual>=3.0:textproc/py-textual@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-asyncio>=1.3.0:devel/py-pytest-asyncio@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=5.0:devel/py-pytest-cov@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist pytest
+
+NO_ARCH= yes
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+# tests as of 0.5.1:
+# Results (22.04s):
+# 320 passed
+# 3 skipped
+
+.include <bsd.port.mk>
diff --git a/science/moltui/distinfo b/science/moltui/distinfo
new file mode 100644
index 000000000000..b65875eeb715
--- /dev/null
+++ b/science/moltui/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1780429738
+SHA256 (moltui-0.5.1.tar.gz) = 45dc43ba7cf3e60107248b438986f06ccffea9ad1f14d69c05c0b6b20f77d3e0
+SIZE (moltui-0.5.1.tar.gz) = 2338101
diff --git a/science/moltui/pkg-descr b/science/moltui/pkg-descr
new file mode 100644
index 000000000000..e1290d77b0e4
--- /dev/null
+++ b/science/moltui/pkg-descr
@@ -0,0 +1,3 @@
+moltui is a terminal-based 3D molecular and crystallographic viewer
+designed for quick inspection of geometries, trajectories, orbitals,
+and normal modes directly in the terminal using Unicode characters.