Install this version:
emerge -a =dev-util/stencil-3.0.2
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module shell-completion
VERSION_GIT_HASH="f357c84e356c0b543a47d005b16c779dff90bab6"
MAJOR_VERSION="${PV%%.*}"
DESCRIPTION="Modern living-template engine for evolving repositories"
HOMEPAGE="https://stencil.rgst.io/"
SRC_URI="https://git.rgst.io/rgst-io/stencil/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm arm64 ~riscv ~x86"
BDEPEND=">=dev-lang/go-1.27"
RESTRICT="test"
S="${WORKDIR}/stencil"
src_compile() {
ego build \
-ldflags \
"-s -w -X go.rgst.io/stencil/v$MAJOR_VERSION/internal/version.version=${PV} -X go.rgst.io/stencil/v$MAJOR_VERSION/internal/version.commit=${VERSION_GIT_HASH} -X go.rgst.io/stencil/v$MAJOR_VERSION/internal/version.date=$(date "+%Y-%m-%dT%H:%M:%SZ") -X go.rgst.io/stencil/v$MAJOR_VERSION/internal/version.builtBy=ebuild" \
./cmd/stencil
}
src_install() {
dobin stencil
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | stencil-3.0.2-deps.tar.xz | 414002204 bytes | https://gentoo.rgst.io/updater_artifacts//stencil/3.0.2/deps.tar.xz |
| DIST | stencil-3.0.2.tar.gz | 432844 bytes | https://git.rgst.io/rgst-io/stencil/archive/v3.0.2.tar.gz |