notbugAs an Amazon Associate I earn from qualifying purchases.
Want a good read? Try FreeBSD Mastery: Jails (IT Mastery Book 15)
Want a good monitor light? See my photosAll times are UTC
Ukraine

Newsfeed changes

The news feed page[s] were not laid out well. Two pages, disjointed information, hard to figure out how to use the optional parameters...

Thankfully, someone told me.

The new page is ready for your review. Please compare these two:

You may also be interested in the Github issue.
Port details
py-grep-ast Pythonic grep through AST of source files
0.7.2 textproc on this many watch lists=2 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 0.4.1Version of this port present on the latest quarterly branch.
Maintainer: dch@FreeBSD.org search for ports maintained by this maintainer
Port Added: 2024-05-22 14:00:27
Last Update: 2025-03-21 08:49:36
Commit Hash: bd1ae3d
People watching this port, also watch:: jdictionary, py311-Automat, py311-python-gdsii, py311-PyOpenGL, p5-Sane
Also Listed In: python
License: APACHE20
WWW:
https://github.com/paul-gauthier/grep-ast
Description:
Grep source code files and see matching lines with useful context that show how they fit into the code. See the loops, functions, methods, classes, etc that contain all the matching lines. Get a sense of what's inside a matched class or function definition. You see relevant code from every layer of the abstract syntax tree, above and below the matches. By default, grep-AST recurses the current directory to search all source code files. It respects .gitignore, so it will usually "do the right thing" in most repos if you just do grep-ast <regex> without specifying any filenames. You can also invoke grep-ast as gast for convenience.
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.
Dependency lines:
  • ${PYTHON_PKGNAMEPREFIX}grep-ast>0:textproc/py-grep-ast@${PY_FLAVOR}
To install the port:
cd /usr/ports/textproc/py-grep-ast/ && make install clean
To add the package, run one of these commands:
  • pkg install textproc/py-grep-ast
  • pkg install py311-grep-ast
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-grep-ast listed in the above command, you can pick from the names under the Packages section.
PKGNAME: py311-grep-ast
Package flavors (<flavor>: <package>)
  • py311: py311-grep-ast
distinfo:
TIMESTAMP = 1742544770 SHA256 (grep_ast-0.7.2.tar.gz) = e2ddb885f526dc67d448b3920ad465010db2ba6c45c337f229de1d96ffa4e115 SIZE (grep_ast-0.7.2.tar.gz) = 12335

Packages (timestamps in pop-ups are UTC):
py311-grep-ast
ABIaarch64amd64armv6armv7i386powerpcpowerpc64powerpc64le
FreeBSD:13:latest0.6.1_10.7.2-0.6.1_10.7.2---
FreeBSD:13:quarterly0.4.10.4.1-0.4.10.7.2---
FreeBSD:14:latest0.6.1_10.7.2-0.6.1_10.7.2---
FreeBSD:14:quarterly0.4.10.7.2-0.4.10.7.2---
FreeBSD:15:latest0.7.20.7.2n/a0.7.2n/a---
Dependencies
NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
Build dependencies:
  1. py311-setuptools>=0 : devel/py-setuptools@py311
  2. py311-setuptools>=63.1.0 : devel/py-setuptools@py311
  3. python3.11 : lang/python311
Test dependencies:
  1. python3.11 : lang/python311
Runtime dependencies:
  1. py311-pathspec>=0 : devel/py-pathspec@py311
  2. py311-tree-sitter-languages>0 : devel/py-tree-sitter-languages@py311
  3. python3.11 : lang/python311
This port is required by:
for Run
  1. misc/py-aider-chat

Configuration Options:
===> The following configuration options are available for py311-grep-ast-0.7.2: DOCS=on: Build and/or install documentation ===> Use 'make config' to modify these settings
Options name:
textproc_py-grep-ast
USES:
python shebangfix
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/g/grep_ast/
  2. https://pypi.org/packages/source/g/grep_ast/
Collapse this list.

Number of commits found: 5

Commit History - (may be incomplete: for full details, see links to repositories near top of page)
CommitCreditsLog message
0.7.2
21 Mar 2025 08:49:36
commit hash: bd1ae3da1e50fb467fdef1353fa94d38d340ba1acommit hash: bd1ae3da1e50fb467fdef1353fa94d38d340ba1acommit hash: bd1ae3da1e50fb467fdef1353fa94d38d340ba1acommit hash: bd1ae3da1e50fb467fdef1353fa94d38d340ba1a files touched by this commit
Dave Cottlehuber (dch) search for other commits by this committer
textproc/py-grep-ast: update to 0.7.2

Reported by:	portscout
Sponsored by:	SkunkWerks, GmbH
0.6.1_1
08 Mar 2025 04:05:21
commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303commit hash: 06a08e69f3acb846ad8252945f53c3a2d211e303 files touched by this commit
Charlie Li (vishwin) search for other commits by this committer
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal

Any missed ports, feel free to bump.

Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
0.6.1
05 Mar 2025 07:10:29
commit hash: d06b4576c96b391ebe3db195561fe30da6c81c09commit hash: d06b4576c96b391ebe3db195561fe30da6c81c09commit hash: d06b4576c96b391ebe3db195561fe30da6c81c09commit hash: d06b4576c96b391ebe3db195561fe30da6c81c09 files touched by this commit
Dave Cottlehuber (dch) search for other commits by this committer
textproc/py-grep-ast: update to 0.6.1

Sponsored by:	SkunkWerks, GmbH
Reported by:	portscout
0.4.1
04 Dec 2024 16:43:27
commit hash: 6597e53ce95f338d74794747cc85ca188722ce6acommit hash: 6597e53ce95f338d74794747cc85ca188722ce6acommit hash: 6597e53ce95f338d74794747cc85ca188722ce6acommit hash: 6597e53ce95f338d74794747cc85ca188722ce6a files touched by this commit
Dave Cottlehuber (dch) search for other commits by this committer
textproc/py-grep-ast: update to 0.4.1

Reported by:	portscout
Sponsored by:	SkunkWerks, GmbH
0.3.2
22 May 2024 13:57:17
commit hash: 5c23643be7e87f18150e95fcd66dfc1891972309commit hash: 5c23643be7e87f18150e95fcd66dfc1891972309commit hash: 5c23643be7e87f18150e95fcd66dfc1891972309commit hash: 5c23643be7e87f18150e95fcd66dfc1891972309 files touched by this commit
Dave Cottlehuber (dch) search for other commits by this committer
textproc/py-grep-ast: new port - grep AST of source files

Number of commits found: 5