aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-09-11 02:56:51 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-09-11 02:56:51 +0000
commit9ab6753b4e47e77b2b6e809b4e7948afb2f047f7 (patch)
tree047a9b71c8d71facdd617bbd7b4882609781e316
parentd7a909689f81f7637f4abe242adc2b89ecdc4858 (diff)
lang/cython3: Add cython3 3.0.2
-rw-r--r--lang/Makefile1
-rw-r--r--lang/cython/Makefile2
-rw-r--r--lang/cython3/Makefile27
-rw-r--r--lang/cython3/distinfo3
-rw-r--r--lang/cython3/pkg-descr10
5 files changed, 42 insertions, 1 deletions
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.