aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2024-06-23 10:51:51 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2024-06-23 10:54:13 +0000
commit788eadd602c9e40c2422fde9342abbbc1f706fbe (patch)
treee626cb786f6fdc52bf4f8bf3e2a788bf4466aa68
parentca06520d3db4081390704d2ec6545de275f24a1f (diff)
science/py-mplhep: New port: Matplotlib styles for HEP
-rw-r--r--science/Makefile1
-rw-r--r--science/py-mplhep/Makefile29
-rw-r--r--science/py-mplhep/distinfo3
-rw-r--r--science/py-mplhep/pkg-descr3
4 files changed, 36 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 8817e880bd1d..ddbfcac05382 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -368,6 +368,7 @@
SUBDIR += py-moltemplate
SUBDIR += py-mp-api
SUBDIR += py-mpcontribs-client
+ SUBDIR += py-mplhep
SUBDIR += py-mplhep-data
SUBDIR += py-mrchem
SUBDIR += py-ncrystal
diff --git a/science/py-mplhep/Makefile b/science/py-mplhep/Makefile
new file mode 100644
index 000000000000..b55550701ea9
--- /dev/null
+++ b/science/py-mplhep/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= mplhep
+DISTVERSION= 0.3.49
+CATEGORIES= science python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Matplotlib styles for HEP
+WWW= https://mplhep.readthedocs.io/en/latest/
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=3.4:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cycler>0:devel/py-cycler@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}mplhep-data>0:science/py-mplhep-data@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 autoplist
+
+TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/science/py-mplhep/distinfo b/science/py-mplhep/distinfo
new file mode 100644
index 000000000000..6f48ca520258
--- /dev/null
+++ b/science/py-mplhep/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1719138020
+SHA256 (mplhep-0.3.49.tar.gz) = 1f1aa4d1e4843964a9a26ad2fef4dd255f7fd66290ff208940e0699bdb40beaa
+SIZE (mplhep-0.3.49.tar.gz) = 1532306
diff --git a/science/py-mplhep/pkg-descr b/science/py-mplhep/pkg-descr
new file mode 100644
index 000000000000..6f23acfaad10
--- /dev/null
+++ b/science/py-mplhep/pkg-descr
@@ -0,0 +1,3 @@
+mplhep is a set of helpers for matplotlib to more easily produce plots typically
+needed in HEP as well as style them in way that's compatible with current
+collaboration requirements (ROOT-like plots for CMS, ATLAS, LHCb, ALICE).