Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Dec 2025 13:31:39 +0000
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5776980f8661 - main - lang/cython0: Add cython0 0.29.37 (copied from cython)
Message-ID:  <6953d43b.3f0a7.1ac74fd3@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5776980f866198c9f78b84535c81f0835a7deb94

commit 5776980f866198c9f78b84535c81f0835a7deb94
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-12-30 13:21:13 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-12-30 13:29:03 +0000

    lang/cython0: Add cython0 0.29.37 (copied from cython)
    
    - Add PORTSCOUT
---
 lang/Makefile          |  1 +
 lang/cython0/Makefile  | 31 +++++++++++++++++++++++++++++++
 lang/cython0/distinfo  |  3 +++
 lang/cython0/pkg-descr | 10 ++++++++++
 4 files changed, 45 insertions(+)

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.


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6953d43b.3f0a7.1ac74fd3>