Searches without login should now work. You must get asked to click a button.
Some translations wanted please.
New RSS 2.0 and Atom feeds are here. The old /backend/ feeds still work, but will be redirected later, so please update your subscriptions. Details.
Port details
py-cgen C/C++ source generation from an AST
2025.1_2 devel Σ=0 search for ports that depend on this port Find issues related to this port Report an issue related to this port View this port on Repology. pkg-fallout 2025.1_1Version of this port present on the latest quarterly branch.
Maintainer: yuri@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2025-10-03 09:30:09
Last Update: 2026-05-05 19:29:37
Commit Hash: 2bf3834
Also Listed In: python
License: MIT
WWW:
https://github.com/inducer/cgen
Description: #
cgen offers a simple abstract syntax tree for C and related languages (C++/CUDA/OpenCL) to allow structured code generation from Python. cgen can be used to generate C code programmatically, which is useful for: - Code generators - Domain-specific language compilers - High-performance computing applications - GPU kernel generation (CUDA/OpenCL) To represent mathematical expressions, cgen can be used with pymbolic.
Homepage    cgit ¦ Codeberg ¦ GitHub ¦ GitLab ¦ SVNWeb - no subversion history for this port
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist #
There is no configure plist information for this port.
USE_RC_SUBR (Service Scripts)
  • no SUBR information found for this port
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}cgen>0:devel/py-cgen@${PY_FLAVOR}
To install the port: #
cd /usr/ports/devel/py-cgen/ && make install clean
To add the package, run one of these commands:
  • pkg install devel/py-cgen
  • pkg install py311-cgen
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.
NOTE: This is a Python port. Instead of py311-cgen listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-cgen
Package flavors (<flavor>: <package>) #
  • py311: py311-cgen
distinfo: #
TIMESTAMP = 1734976997 SHA256 (cgen-2025.1.tar.gz) = 79f01e010d49c13e58b4ca8f2d4996a6b7178968f5f2d906262733480ae7a2d4 SIZE (cgen-2025.1.tar.gz) = 19236

Packages (timestamps in pop-ups are UTC): #
py312-cgen
ABIaarch64amd64armv6armv7i386
FreeBSD:14:latest2025.1_22025.1_2--2025.1_2
FreeBSD:14:quarterly2025.1_22025.1_2--2025.1_2
FreeBSD:15:latest2025.1_22025.1_2n/a-n/a
FreeBSD:15:quarterly2025.1_22025.1_2n/a-n/a
FreeBSD:16:latest2025.1_22025.1_2n/a-n/a
Dependencies #
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies: #
  1. py311-hatchling>0 : devel/py-hatchling@py311
  2. python3.11 : lang/python311
  3. py311-build>=0 : devel/py-build@py311
  4. py311-installer>=0 : devel/py-installer@py311
Test dependencies: #
  1. py311-ruff>0 : devel/py-ruff@py311
  2. py311-pytest>=7,1 : devel/py-pytest@py311
  3. python3.11 : lang/python311
Runtime dependencies: #
  1. py311-numpy>=1.6 : math/py-numpy@py311
  2. py311-pytools>=2022.1.14 : devel/py-pytools@py311
  3. py311-typing-extensions>=4.5 : devel/py-typing-extensions@py311
  4. python3.11 : lang/python311
There are no ports dependent upon this port #

Configuration Options: #
No options to configure
Options name: #
devel_py-cgen
USES: #
python
pkg-message: #
FreshPorts was unable to extract/find any pkg message
Master Sites: #
Expand this list (2 items)
Collapse this list.
  1. https://files.pythonhosted.org/packages/source/c/cgen/
  2. https://pypi.org/packages/source/c/cgen/
Collapse this list.

Number of commits found: 4 #

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
2025.1_2
05 May 2026 19:29:37
commit hash: 2bf3834a197ccf8956332378eda8dd7577965246commit hash: 2bf3834a197ccf8956332378eda8dd7577965246commit hash: 2bf3834a197ccf8956332378eda8dd7577965246commit hash: 2bf3834a197ccf8956332378eda8dd7577965246 files touched by this commit
Max Brazhnikov (makc) search for other commits by this committer
*/*: bump PORTREVISION after switching to NumPy 2.x
2025.1_1
05 May 2026 19:29:37
commit hash: b0b4d9e1eae890d0de1591e20fb37358439a2ff6commit hash: b0b4d9e1eae890d0de1591e20fb37358439a2ff6commit hash: b0b4d9e1eae890d0de1591e20fb37358439a2ff6commit hash: b0b4d9e1eae890d0de1591e20fb37358439a2ff6 files touched by this commit Sanity Test Failure
Max Brazhnikov (makc) search for other commits by this committer
*/*: Switch to NumPy 2.x

PR:		294328
Exp-run:	antoine
2025.1_1
03 Apr 2026 18:52:22
commit hash: d4bd5ba72edc9f537254aeb1ff893399e3eb2278commit hash: d4bd5ba72edc9f537254aeb1ff893399e3eb2278commit hash: d4bd5ba72edc9f537254aeb1ff893399e3eb2278commit hash: d4bd5ba72edc9f537254aeb1ff893399e3eb2278 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
math/py-numpy: switch all consumers to math/py-numpy1

...and bump PORTREVISIONs of consumers with hard RUN_DEPENDS

PR: 281470
2025.1
03 Oct 2025 09:27:32
commit hash: b9f9e89cce1ca9886e8d9faeb7c5d15ee39b7ee4commit hash: b9f9e89cce1ca9886e8d9faeb7c5d15ee39b7ee4commit hash: b9f9e89cce1ca9886e8d9faeb7c5d15ee39b7ee4commit hash: b9f9e89cce1ca9886e8d9faeb7c5d15ee39b7ee4 files touched by this commit
Yuri Victorovich (yuri) search for other commits by this committer
devel/py-cgen: New port: C/C++ source generation from an AST

Number of commits found: 4