From 9ab6753b4e47e77b2b6e809b4e7948afb2f047f7 Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 11 Sep 2023 10:56:51 +0800 Subject: [PATCH] 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(-) create mode 100644 lang/cython3/Makefile create mode 100644 lang/cython3/distinfo create mode 100644 lang/cython3/pkg-descr diff --git a/lang/Makefile b/lang/Makefile index 8c29734eedbc2..53ceb0f5ba9a6 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 ae29ff89b2df7..809c3409d52b7 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 0000000000000..b7c919ca9904b --- /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 diff --git a/lang/cython3/distinfo b/lang/cython3/distinfo new file mode 100644 index 0000000000000..0817f5de192a5 --- /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 0000000000000..e06adf8ec27b6 --- /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.