Install this version:
emerge -a =dev-util/ast-grep-bin-0.51.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/ast-grep-bin-0.51.3
Or alternatively:
emerge --autounmask-write -a =dev-util/ast-grep-bin-0.51.3
# SPDX-License-Identifier: MIT
# Generated via:
# repository: https://github.com/arran4/arrans_overlay
# commit: 9ed18fd6d22a3f9c1c52b85c91ac9fc9e6389054
# workflow: .github/workflows/dev-util-ast-grep-bin-update.yaml
EAPI=8
DESCRIPTION=""
DESCRIPTION+="Structural search, linting and rewriting for source code"
HOMEPAGE=""
HOMEPAGE+="https://ast-grep.github.io/"
SRC_URI=""
SRC_URI+=" amd64? ( "
SRC_URI+="https://github.com/ast-grep/ast-grep/releases/download/0.51.3/app-x86_64-unknown-linux-gnu.zip "
SRC_URI+=" -> ${P}-app-x86_64-unknown-linux-gnu.zip ) arm64? ( "
SRC_URI+="https://github.com/ast-grep/ast-grep/releases/download/0.51.3/app-aarch64-unknown-linux-gnu.zip "
SRC_URI+=" -> ${P}-app-aarch64-unknown-linux-gnu.zip ) "
LICENSE=""
LICENSE+="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE=""
REQUIRED_USE=""
RDEPEND=""
S="${WORKDIR}"
src_unpack() {
if use amd64; then
unpack "${DISTDIR}/${P}-app-x86_64-unknown-linux-gnu.zip" \
|| die "Failed to unpack archive file"
fi
if use arm64; then
unpack "${DISTDIR}/${P}-app-aarch64-unknown-linux-gnu.zip" \
|| die "Failed to unpack archive file"
fi
}
src_install() {
exeinto /opt/bin
if use amd64; then
newexe \
"ast-grep" \
"ast-grep" \
|| die "Failed to install Binary"
fi
if use arm64; then
newexe \
"ast-grep" \
"ast-grep" \
|| die "Failed to install Binary"
fi
}