aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-12-30 13:21:13 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2025-12-30 13:29:03 +0000
commit5776980f866198c9f78b84535c81f0835a7deb94 (patch)
tree30bebcc038d6ce5271aed6e75ff45d3b54e8a5d9
parent2e3a470a0f6ae1e10c90a3087e9e0e34438b9201 (diff)
lang/cython0: Add cython0 0.29.37 (copied from cython)
- Add PORTSCOUT
-rw-r--r--lang/Makefile1
-rw-r--r--lang/cython0/Makefile31
-rw-r--r--lang/cython0/distinfo3
-rw-r--r--lang/cython0/pkg-descr10
4 files changed, 45 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index a002c89bc3d7..950dab0f1c62 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -42,6 +42,7 @@
SUBDIR += crystal
SUBDIR += csharp-mode.el
SUBDIR += cython
+ SUBDIR += cython0
SUBDIR += cython3
SUBDIR += dhall
SUBDIR += dlang-tools
diff --git a/lang/cython0/Makefile b/lang/cython0/Makefile
new file mode 100644
index 000000000000..81a507559146
--- /dev/null
+++ b/lang/cython0/Makefile
@@ -0,0 +1,31 @@
+PORTNAME= cython
+PORTVERSION= 0.29.37
+CATEGORIES= lang python
+MASTER_SITES= PYPI \
+ https://github.com/cython/cython/releases/download/${PORTVERSION}/
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX= 0
+DISTNAME= Cython-${PORTVERSION}
+
+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
+
+DEPRECTED= Legacy version. Does not work with newer Python versions. Use lang/cython instead
+EXPIRATION_DATE=2026-03-31
+
+USES= compiler:c11 python:2.7-3.12
+USE_PYTHON= allflavors autoplist concurrent distutils
+
+CONFLICTS_INSTALL= py*-cython py*-cython3 # bin/cygdb bin/cython bin/cythonize
+
+PORTSCOUT= limit:^0\.
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Cython -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/lang/cython0/distinfo b/lang/cython0/distinfo
new file mode 100644
index 000000000000..28f67f251d2f
--- /dev/null
+++ b/lang/cython0/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1703227808
+SHA256 (Cython-0.29.37.tar.gz) = f813d4a6dd94adee5d4ff266191d1d95bf6d4164a4facc535422c021b2504cfb
+SIZE (Cython-0.29.37.tar.gz) = 2099621
diff --git a/lang/cython0/pkg-descr b/lang/cython0/pkg-descr
new file mode 100644
index 000000000000..e06adf8ec27b
--- /dev/null
+++ b/lang/cython0/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.