From nobody Wed Nov 24 17:01:42 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 36B7218AF9B0; Wed, 24 Nov 2021 17:01:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HznNQ6PvBz4hPN; Wed, 24 Nov 2021 17:01:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B8B325A9D; Wed, 24 Nov 2021 17:01:42 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AOH1gwN070911; Wed, 24 Nov 2021 17:01:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AOH1gDk070910; Wed, 24 Nov 2021 17:01:42 GMT (envelope-from git) Date: Wed, 24 Nov 2021 17:01:42 GMT Message-Id: <202111241701.1AOH1gDk070910@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: ab67421b6e9f - main - lang/cython-devel: add port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ab67421b6e9f96ffc0975cc8f28e57fc71612127 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637773302; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=+XG1nSh6uE0zq7u7idzmo7w+pZvVMr8EHr9UUYhgjPc=; b=M09MW4CqUktin6L/VY/UXtvcCYJ1bovWcgF3AAlXRjbuNIqv/myvRbBTVMXpEHktxBsk6z xUbtUioqZdFsl/RBLs9IS243Ttq2rD24vBBYAvs/6lRNzxdqn5ad5hj+2eeA8mNBWPhjUc 6KCJkc7z3GBVvN2Ug9JN2I9rFgvQkCkTFJIWGvN+qklB5aQkQUPgEqwD8n9io744rRAb1t kb8tfIQHgS0b35f/QCbo8RBIlaeo+eW4I4W2nIqCm8F8vTmi68oXRb+ogFRBQSUheVjBMS UDHwJEu1MSsdaCjje3BhWKIy/2eOoPX20zuN+yf4mcQVaAy+EW01+6EmLE0nbg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637773303; a=rsa-sha256; cv=none; b=mAZHzo63GShZfShvmsEx/vpqPJddI2eV4TeIGqYxo7f1ZsQGXt5b6+rXnZ2aUSE4lLZg4L by7GOspyht2mSgTL1LrraOmE15am4Qu/VuEG/tUcskHH19VAaJv9mQQLQ8G9jGtpy0rJe4 sRqhxFPgGW1DGPBnkrzNFbtqHRRsQkdNAgchFw/oycuFELYTzPXjvWlimC+nBB+Iqoep3G 0voZnonrjYufJhNJXj9jAK2oH9SRaM2k6+uPjlBg9k2Vu9Fw2QPUhehuDuH5An0lYm6YPO n8YwufODIcXdfgMf+CgyXhVWt2Qq3bEO6ygVmWXP8IGNCmVpvY3R7EYkBlWQVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=ab67421b6e9f96ffc0975cc8f28e57fc71612127 commit ab67421b6e9f96ffc0975cc8f28e57fc71612127 Author: Dmitry Marakasov AuthorDate: 2021-11-17 13:42:48 +0000 Commit: Dmitry Marakasov CommitDate: 2021-11-24 17:00:33 +0000 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 getting 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. PR: 259898 Approved by: python (lwhsu) --- Mk/Uses/python.mk | 10 ++++++++-- lang/Makefile | 1 + lang/cython-devel/Makefile | 21 +++++++++++++++++++++ lang/cython-devel/distinfo | 3 +++ lang/cython-devel/pkg-descr | 16 ++++++++++++++++ lang/cython/Makefile | 2 +- 6 files changed, 50 insertions(+), 3 deletions(-) diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 2a12dad52d4f..9150ba0453a2 100644 --- a/Mk/Uses/python.mk +++ b/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 a/lang/Makefile b/lang/Makefile index 7009a8a5e602..dd751b907a5f 100644 --- a/lang/Makefile +++ b/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 a/lang/cython-devel/Makefile b/lang/cython-devel/Makefile new file mode 100644 index 000000000000..07f6c91b3d79 --- /dev/null +++ b/lang/cython-devel/Makefile @@ -0,0 +1,21 @@ +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 diff --git a/lang/cython-devel/distinfo b/lang/cython-devel/distinfo new file mode 100644 index 000000000000..b3b6fa1b0b2b --- /dev/null +++ b/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 a/lang/cython-devel/pkg-descr b/lang/cython-devel/pkg-descr new file mode 100644 index 000000000000..8ace83e15851 --- /dev/null +++ b/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 a/lang/cython/Makefile b/lang/cython/Makefile index c3e4d1b1e42c..e77cb41d4311 100644 --- a/lang/cython/Makefile +++ b/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: