Files
Joshua Root 00add8495d textproc/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-30 08:12:16 +11:00

31 lines
1.2 KiB
Tcl

# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
PortGroup cargo 1.0
fetch.type git
github.setup carlonluca cgrc 2.0.4 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
license GPL-3
categories textproc
maintainers {@carlonluca gmail.com:carlon.luca} openmaintainer
description Configurable terminal text formatter
long_description cgrc formats text from stdin according to custom configuration files \
and outputs the result with ANSI escape codes to stdout. Configuration \
files includes a set of regular expressions with the related format \
to be used to the match and the captures.
build.dir ${worksrcpath}/cgrc-rust
post-fetch {
system -W ${worksrcpath} "git submodule update --init"
system -W ${worksrcpath}/cgrc-rust "cargo fetch --locked"
}
destroot {
xinstall -m 0755 ${worksrcpath}/cgrc-rust/target/[cargo.rust_platform]/release/cgrc \
${destroot}${prefix}/bin/
}