git: 19cd313c13d7 - main - devel/py-pint: Add NUMPY and UNCERTAINTIES options

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Sat, 27 Aug 2022 10:32:11 UTC
The branch main has been updated by sunpoet:

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

commit 19cd313c13d7d2c5655e085ffb0e0285066fbf0b
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:24:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:24:27 +0000

    devel/py-pint: Add NUMPY and UNCERTAINTIES options
---
 devel/py-pint/Makefile | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/devel/py-pint/Makefile b/devel/py-pint/Makefile
index 8fb504ba8c2c..e9dea0609415 100644
--- a/devel/py-pint/Makefile
+++ b/devel/py-pint/Makefile
@@ -20,4 +20,11 @@ NO_ARCH=	yes
 
 SHEBANG_FILES=	pint/pint-convert
 
+OPTIONS_DEFINE=	NUMPY UNCERTAINTIES
+NUMPY_DESC=	Automatic conversion of units
+UNCERTAINTIES_DESC=	Handle quantities with uncertainties
+
+NUMPY_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}numpy>=1.19.5,1:math/py-numpy@${PY_FLAVOR}
+UNCERTAINTIES_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}uncertainties>=3.1.6:math/py-uncertainties@${PY_FLAVOR}
+
 .include <bsd.port.mk>