git: 56b9fce75318 - main - science/py-qiskit: New port: Qiskit meta-package: SDK for working with quantum computers

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 09 Aug 2022 07:15:46 UTC
The branch main has been updated by yuri:

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

commit 56b9fce753189625ecc1afe5a12b808dd674ec96
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-08-09 07:14:58 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-08-09 07:15:41 +0000

    science/py-qiskit: New port: Qiskit meta-package: SDK for working with quantum computers
---
 science/Makefile            |  1 +
 science/py-qiskit/Makefile  | 30 ++++++++++++++++++++++++++++++
 science/py-qiskit/distinfo  |  3 +++
 science/py-qiskit/pkg-descr |  6 ++++++
 4 files changed, 40 insertions(+)

diff --git a/science/Makefile b/science/Makefile
index 62328256e56b..7f1bde19d29f 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -338,6 +338,7 @@
     SUBDIR += py-pyteomics
     SUBDIR += py-qcelemental
     SUBDIR += py-qcengine
+    SUBDIR += py-qiskit
     SUBDIR += py-qiskit-aer
     SUBDIR += py-qiskit-ibm-provider
     SUBDIR += py-qiskit-ibmq-provider
diff --git a/science/py-qiskit/Makefile b/science/py-qiskit/Makefile
new file mode 100644
index 000000000000..0b4945ed6703
--- /dev/null
+++ b/science/py-qiskit/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	qiskit
+DISTVERSION=	0.37.1-4
+DISTVERSIONSUFFIX=	-gf178fcc98
+CATEGORIES=	science python # quantum-computing
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Qiskit meta-package: SDK for working with quantum computers
+
+LICENSE=	BSD2CLAUSE
+
+# required submodules
+PY_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qiskit-aer>0:science/py-qiskit-aer@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}qiskit-terra>0:science/py-qiskit-terra@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}qiskit-ibmq-provider>0:science/py-qiskit-ibmq-provider@${PY_FLAVOR}
+# optional submodules (list: https://github.com/Qiskit/qiskit#optional-components)
+PY_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}qiskit-optimization>0:science/py-qiskit-optimization@${PY_FLAVOR}
+BUILD_DEPENDS=	${PY_DEPENDS}
+RUN_DEPENDS=	${PY_DEPENDS}
+
+USES=		python:3.7+
+USE_PYTHON=	distutils autoplist
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	Qiskit
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/science/py-qiskit/distinfo b/science/py-qiskit/distinfo
new file mode 100644
index 000000000000..aae1c2dbf661
--- /dev/null
+++ b/science/py-qiskit/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660028691
+SHA256 (Qiskit-qiskit-0.37.1-4-gf178fcc98_GH0.tar.gz) = 0b118fa4efbc512d56dbc09ddc8d16b2d7d0a4049fb6d5eed422ea3784354dfe
+SIZE (Qiskit-qiskit-0.37.1-4-gf178fcc98_GH0.tar.gz) = 5594137
diff --git a/science/py-qiskit/pkg-descr b/science/py-qiskit/pkg-descr
new file mode 100644
index 000000000000..a498c08fb827
--- /dev/null
+++ b/science/py-qiskit/pkg-descr
@@ -0,0 +1,6 @@
+Qiskit [quiss-kit] is an open-source SDK for working with quantum computers
+at the level of pulses, circuits, and application modules.
+
+This is a meta-package that installs Qiskit submodules.
+
+WWW: https://qiskit.org/