git: 9ab6753b4e47 - main - lang/cython3: Add cython3 3.0.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 11 Sep 2023 03:13:42 UTC
The branch main has been updated by sunpoet:

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

commit 9ab6753b4e47e77b2b6e809b4e7948afb2f047f7
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-09-11 02:56:51 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-09-11 02:56:51 +0000

    lang/cython3: Add cython3 3.0.2
---
 lang/Makefile          |  1 +
 lang/cython/Makefile   |  2 +-
 lang/cython3/Makefile  | 27 +++++++++++++++++++++++++++
 lang/cython3/distinfo  |  3 +++
 lang/cython3/pkg-descr | 10 ++++++++++
 5 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/lang/Makefile b/lang/Makefile
index 8c29734eedbc..53ceb0f5ba9a 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -39,6 +39,7 @@
     SUBDIR += csharp-mode.el
     SUBDIR += cython
     SUBDIR += cython-devel
+    SUBDIR += cython3
     SUBDIR += dhall
     SUBDIR += dlang-tools
     SUBDIR += duktape
diff --git a/lang/cython/Makefile b/lang/cython/Makefile
index ae29ff89b2df..809c3409d52b 100644
--- a/lang/cython/Makefile
+++ b/lang/cython/Makefile
@@ -18,7 +18,7 @@ USES=		compiler:c11 python:2.7+
 USE_PYTHON=	allflavors autoplist concurrent distutils
 
 # bin/cygdb bin/cython bin/cythonize
-CONFLICTS_INSTALL=	py*-cython-devel
+CONFLICTS_INSTALL=	py*-cython-devel py*-cython3
 
 post-install:
 	${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Cython -name '*.so' -exec ${STRIP_CMD} {} +
diff --git a/lang/cython3/Makefile b/lang/cython3/Makefile
new file mode 100644
index 000000000000..b7c919ca9904
--- /dev/null
+++ b/lang/cython3/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	cython
+PORTVERSION=	3.0.2
+CATEGORIES=	lang python
+MASTER_SITES=	PYPI \
+		https://github.com/cython/cython/releases/download/${PORTVERSION}/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	Cython-${PORTVERSION}
+PKGNAMESUFFIX=	3
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Compiler for Writing C Extensions for the Python Language
+WWW=		https://cython.org/ \
+		https://github.com/cython/cython
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		compiler:c11 python
+USE_PYTHON=	allflavors autoplist concurrent distutils
+
+# bin/cygdb bin/cython bin/cythonize
+CONFLICTS_INSTALL=	py*-cython py*-cython-devel
+
+post-install:
+	${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Cython -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/lang/cython3/distinfo b/lang/cython3/distinfo
new file mode 100644
index 000000000000..0817f5de192a
--- /dev/null
+++ b/lang/cython3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1694348222
+SHA256 (Cython-3.0.2.tar.gz) = 9594818dca8bb22ae6580c5222da2bc5cc32334350bd2d294a00d8669bcc61b5
+SIZE (Cython-3.0.2.tar.gz) = 2723546
diff --git a/lang/cython3/pkg-descr b/lang/cython3/pkg-descr
new file mode 100644
index 000000000000..e06adf8ec27b
--- /dev/null
+++ b/lang/cython3/pkg-descr
@@ -0,0 +1,10 @@
+Cython is a Python compiler that makes writing C extensions for Python as easy
+as Python itself. Cython is based on Pyrex, but supports more cutting edge
+functionality and optimizations.
+
+Cython translates Python code to C/C++ code, but additionally supports calling C
+functions and declaring C types on variables and class attributes. This allows
+the compiler to generate very efficient C code from Cython code.
+
+This makes Cython the ideal language for wrapping external C libraries, and for
+fast C modules that speed up the execution of Python code.