BSD Ports

textproc/ast-grep 0.51.0 FreeBSD

CLI tool for code structural search, lint and rewriting

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
6787630e00
License
MIT
Categories
textproc, devel
Package size
5090.5 KiB, 49272.4 KiB installed

Description

ast-grep is an abstract syntax tree based tool to search code by pattern code. Think of it as your old-friend grep, but matching AST nodes instead of text. You can write patterns as if you are writing ordinary code. It will match all code that has the same syntactical structure. You can use $ sign + upper case letters as a wildcard, e.g. $MATCH, to match any single AST node. Think of it as regular expression dot ., except it is not textual.

In the other systems

SystemPortVersion
FreeBSDtextproc/ast-grep0.51.0
NetBSDdevel/ast-grep0.45.3

Install

Binary package:

pkg install ast-grep

From the ports tree:

cd /usr/ports/textproc/ast-grep/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	ast-grep>0:textproc/ast-grep

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.45.3_10.50.0_1--0.51.0
FreeBSD:14:quarterly0.45.3_10.45.3_1n/a-0.45.3_1
FreeBSD:15:latest0.50.0_10.51.0n/a--
FreeBSD:15:quarterly0.45.3_10.45.3_1n/an/an/a
FreeBSD:16:latest0.45.3_10.51.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 11

No port depends on this one.

Configuration

Options name: textproc_ast-grep

OptionDefaultDescription
COMPLETIONSon
DOCSoffBuild and/or install documentation
USES
cargo
Service scripts
none

Files

distinfo 288
FileSizeSHA256
rust/crates/Inflector-0.11.4.crate17438fe438c63458706e03479442743baae6c88256498e6431708f6dfc520a26515d3
rust/crates/aho-corasick-1.1.5.crate184315c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba
rust/crates/annotate-snippets-0.12.16.crate56108f211a51805bc641f3ad5b7664c77d2547af685cc33b4cd8d31964027a46f13f1
rust/crates/ansi_term-0.12.1.crate24838d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2
rust/crates/anstream-1.0.0.crate28916824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d
rust/crates/anstyle-1.0.14.crate17787940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000
rust/crates/anstyle-parse-1.0.0.crate2204252ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e
rust/crates/anstyle-query-1.1.5.crate1026440c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc
rust/crates/anstyle-wincon-3.0.11.crate12638291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d
rust/crates/anyhow-1.0.104.crate48819330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470
rust/crates/arraydeque-0.5.1.crate176717d902e3d592a523def97af8f317b08ce16b7ab854c1985a0c671e6f15cebc236
rust/crates/assert_cmd-2.2.2.crate276832aa3a22042e45de04255c7bf3626e239f450200fd0493c1e382263544b20aea6
rust/crates/async-trait-0.1.92.crate3203982f6aeea286b8eb4dd3431a1be1b59d290ace00f5bfd8e2a159bc2a05e2c1667
rust/crates/autocfg-1.5.1.crate18911f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53
rust/crates/base64-0.23.1.crate93605ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5
rust/crates/bit-set-0.11.1.crate1999756d87354e4229f54a44f7bf2435906a4656dba36026ab6eaca629a2c436a691c
rust/crates/bit-vec-0.10.1.crate300955727b15fa97d4f4fee0a3b7c3d550ed0269f54329207b86388de918604e31269
rust/crates/bitflags-2.13.1.crate51395b588b76d00fde79687d7646a9b5bdf3cc0f655e0bbd080335a95d7e96f3587da
rust/crates/borrow-or-share-0.2.4.crate5243dc0b364ead1874514c8c2855ab558056ebfeb775653e7ae45ff72f28f8f3166c
rust/crates/borsh-1.8.0.crate84983a88b7ea17d208c4193f2c1e6de3c35fe71f98c96982d5ced308bdcc749ff6e1f

Commit history 10

DateCommitCreditsLog message
6787630e00 Hiroki Tagato textproc/ast-grep: Update to 0.51.0
Changelog: https://github.com/ast-grep/ast-grep/blob/0.51.0/CHANGELOG.md Reported by: GitHub (watch releases)
9c878207a1 Mikael Urankar lang/rust: Bump revisions after 1.99.0
PR: 299016
94d38e6612 Hiroki Tagato textproc/ast-grep: Update to 0.50.0
While here, simplify shell completions installation. Changelog: https://github.com/ast-grep/ast-grep/blob/0.50.0/CHANGELOG.md Reported by: GitHub (watch releases)
7316461925 Mikael Urankar lang/rust: Bump revisions after 1.98.1
PR: 298139
866df68de4 Hiroki Tagato textproc/ast-grep: Update to 0.45.3
Changelog: https://github.com/ast-grep/ast-grep/blob/0.45.3/CHANGELOG.md Reported by: GitHub (watch releases)

The latest 5 of 10 in the history this site was built from.