FreeBSD Bugzilla – Attachment 229552 Details for
Bug 259898
lang/cython-devel: add port
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
cython-devel.patch (text/plain), 3.99 KB, created by
Dmitry Marakasov
on 2021-11-17 14:55:40 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Dmitry Marakasov
Created:
2021-11-17 14:55:40 UTC
Size:
3.99 KB
patch
obsolete
>commit 00e3e0d5fcbd4e67be17fd9c383721655c134a76 >Author: Dmitry Marakasov <amdmi3@FreeBSD.org> >Date: Wed Nov 17 16:42:48 2021 +0300 > > lang/cython-devel: add port > > Add devel version of cython. Apart from that 3.x cython branch is > where all the development goes on, 0.29.x only gettig backported > bugfixes, this is currently the only version which supports python > 3.11. Because of that, wire USE_PYTHON=cython to cython-devel for > python >= 3.11 in Uses/python.mk as well and limit supported python > versions with <= 3.10 for cython. > >diff --git Mk/Uses/python.mk Mk/Uses/python.mk >index a85b18d70fd5..19b5fea01b3c 100644 >--- Mk/Uses/python.mk >+++ Mk/Uses/python.mk >@@ -515,12 +515,18 @@ _PYTHONPKGLIST= ${WRKDIR}/.PLIST.pymodtmp > # - it uses USE_PYTHON=distutils > # > >+.if ${PYTHON_REL} >= 31100 >+_CYTHON_DEP= cython-${PYTHON_VER}:lang/cython-devel@${PY_FLAVOR} >+.else >+_CYTHON_DEP= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} >+.endif >+ > .if defined(_PYTHON_FEATURE_CYTHON) >-BUILD_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} >+BUILD_DEPENDS+= ${_CYTHON_DEP} > .endif > > .if defined(_PYTHON_FEATURE_CYTHON_RUN) >-RUN_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} >+RUN_DEPENDS+= ${_CYTHON_DEP} > .endif > > .if defined(_PYTHON_FEATURE_CONCURRENT) >diff --git lang/Makefile lang/Makefile >index c7aaca96b3a7..a65262d81751 100644 >--- lang/Makefile >+++ lang/Makefile >@@ -41,6 +41,7 @@ > SUBDIR += crystal > SUBDIR += csharp-mode.el > SUBDIR += cython >+ SUBDIR += cython-devel > SUBDIR += dlang-tools > SUBDIR += dlv > SUBDIR += duktape >diff --git lang/cython-devel/Makefile lang/cython-devel/Makefile >new file mode 100644 >index 000000000000..d9d9588a6fa0 >--- /dev/null >+++ lang/cython-devel/Makefile >@@ -0,0 +1,23 @@ >+# Created by: Wen Heping <wenhping@gmail.com> >+ >+PORTNAME= cython >+DISTVERSION= 3.0.0a9 >+CATEGORIES= lang python >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+PKGNAMESUFFIX= -devel >+ >+MAINTAINER= amdmi3@FreeBSD.org >+COMMENT= Compiler for Writing C Extensions for the Python Language >+ >+LICENSE= APACHE20 >+LICENSE_FILE= ${WRKSRC}/LICENSE.txt >+ >+USES= compiler:c11 python:2.7+ >+USE_PYTHON= allflavors autoplist concurrent distutils >+USE_GITHUB= yes >+GH_TAGNAME= 2b1e743 >+ >+post-install: >+ ${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/Cython -name '*.so' -exec ${STRIP_CMD} {} + >+ >+.include <bsd.port.mk> >diff --git lang/cython-devel/distinfo lang/cython-devel/distinfo >new file mode 100644 >index 000000000000..b3b6fa1b0b2b >--- /dev/null >+++ lang/cython-devel/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1637154492 >+SHA256 (cython-cython-3.0.0a9-2b1e743_GH0.tar.gz) = 9e0b6f5830e86a942faefdc728df2c2ad0cb3cbf74efe6e7fa020e18692ac9a3 >+SIZE (cython-cython-3.0.0a9-2b1e743_GH0.tar.gz) = 2438723 >diff --git lang/cython-devel/pkg-descr lang/cython-devel/pkg-descr >new file mode 100644 >index 000000000000..8ace83e15851 >--- /dev/null >+++ lang/cython-devel/pkg-descr >@@ -0,0 +1,16 @@ >+The Cython language makes writing C extensions for the Python language >+as easy as Python itself. Cython is a source code translator based on >+the well-known Pyrex, but supports more cutting edge functionality and >+optimizations. >+ >+The Cython language is very close to the Python language (and most >+Python code is also valid Cython code), but Cython 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 writing glue code for external >+C libraries, and for fast C modules that speed up the execution of >+Python code. >+ >+WWW: https://cython.org/ >diff --git lang/cython/Makefile lang/cython/Makefile >index c3e4d1b1e42c..e77cb41d4311 100644 >--- lang/cython/Makefile >+++ lang/cython/Makefile >@@ -13,7 +13,7 @@ COMMENT= Compiler for Writing C Extensions for the Python Language > LICENSE= APACHE20 > LICENSE_FILE= ${WRKSRC}/LICENSE.txt > >-USES= compiler:c11 python:2.7+ >+USES= compiler:c11 python:2.7-3.10 > USE_PYTHON= allflavors autoplist concurrent distutils > > post-install:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 259898
: 229552