Skip to content

Commit

Permalink
lang/cython3: Add cython3 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
sunpoet committed Sep 11, 2023
1 parent d7a9096 commit 9ab6753
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 1 deletion.
1 change: 1 addition & 0 deletions lang/Makefile
Expand Up @@ -39,6 +39,7 @@
SUBDIR += csharp-mode.el
SUBDIR += cython
SUBDIR += cython-devel
SUBDIR += cython3
SUBDIR += dhall
SUBDIR += dlang-tools
SUBDIR += duktape
Expand Down
2 changes: 1 addition & 1 deletion lang/cython/Makefile
Expand Up @@ -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} {} +
Expand Down
27 changes: 27 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
10 changes: 10 additions & 0 deletions 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.

0 comments on commit 9ab6753

Please sign in to comment.