git: a314f8f1ce3e - main - math/py-fraction: Add py-fraction 2.1.1

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 25 Mar 2022 13:42:28 UTC
The branch main has been updated by sunpoet:

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

commit a314f8f1ce3e229e6ddb6f552ada350c08f45afe
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-03-25 12:45:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-03-25 13:36:37 +0000

    math/py-fraction: Add py-fraction 2.1.1
    
    fraction is a Python module that is designed for fractional values
    numerator/denominator.
    
    WWW: https://github.com/bradley101/fraction
---
 math/Makefile              |  1 +
 math/py-fraction/Makefile  | 21 +++++++++++++++++++++
 math/py-fraction/distinfo  |  3 +++
 math/py-fraction/pkg-descr |  4 ++++
 4 files changed, 29 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index bb9be988b65b..bc05d30a78af 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -834,6 +834,7 @@
     SUBDIR += py-fastdtw
     SUBDIR += py-flax
     SUBDIR += py-fpylll
+    SUBDIR += py-fraction
     SUBDIR += py-fvcore
     SUBDIR += py-gau2grid
     SUBDIR += py-gimmik
diff --git a/math/py-fraction/Makefile b/math/py-fraction/Makefile
new file mode 100644
index 000000000000..b27fa51eed15
--- /dev/null
+++ b/math/py-fraction/Makefile
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	fraction
+PORTVERSION=	2.1.1
+CATEGORIES=	math python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	Fraction-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Carry out all the fraction operations
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/math/py-fraction/distinfo b/math/py-fraction/distinfo
new file mode 100644
index 000000000000..cb164375817b
--- /dev/null
+++ b/math/py-fraction/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1647264406
+SHA256 (Fraction-2.1.1.tar.gz) = 75a27c61c68f357dbb8ea395eab932b3a16a3aa2b6aa44a052bcef319724f882
+SIZE (Fraction-2.1.1.tar.gz) = 4568
diff --git a/math/py-fraction/pkg-descr b/math/py-fraction/pkg-descr
new file mode 100644
index 000000000000..f7cc9ec4e0e8
--- /dev/null
+++ b/math/py-fraction/pkg-descr
@@ -0,0 +1,4 @@
+fraction is a Python module that is designed for fractional values
+numerator/denominator.
+
+WWW: https://github.com/bradley101/fraction