-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c26f1b4
commit 1c6f541
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
DIST stencil-2.0.1-deps.tar.xz 323386492 BLAKE2B cd6d2362ea90da1be247db72e1c1b66593bc01820635b6e0dcde71efa8da5462a1561abcb7eaf9a8fa1bc0704414f83b1c41c261fb79a609f1db1cd6a7b2d81d SHA512 492ff2e4eaa38187f7afd4e447f8ab6de3ef46974bb449b4baa5333a21096213ad544eadc24d04f462fb29f614cc37fe707b8ad90f9dab310d59ed3aa07fd371 | ||
DIST stencil-2.0.1.tar.gz 317225 BLAKE2B b8b4e27d3122f8a85cac3ee912095d2182541f1ff2c6545dd994e7f3ab8f02b2161e749449b7159ba81b405394c0ecc6b56d7b5c8132b25ac0f740d8451e9aaf SHA512 7acc84d89c7baef0ca1bc21d93a5139b733cf5795df2461461eccb5d6a162de4ba810f45888ac3007ac8417795b961280cd829ea35596a9f8b19d794a1cbf15c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2020-2024 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
inherit go-module shell-completion | ||
|
||
VERSION_GIT_HASH="ccc083c7ff1a54623e99c59e9bcab1008c189d6f" | ||
|
||
DESCRIPTION="Modern living-template engine for evolving repositories " | ||
HOMEPAGE="https://stencil.rgst.io/" | ||
SRC_URI="https://github.com/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="MIT" | ||
SLOT="0" | ||
KEYWORDS="amd64 ~arm arm64 ~riscv ~x86" | ||
|
||
BDEPEND=">=dev-lang/go-1.23" | ||
|
||
RESTRICT="test" | ||
|
||
src_compile() { | ||
ego build \ | ||
-ldflags \ | ||
"-s -w -X go.rgst.io/stencil/v2/internal/version.version=${PV} -X go.rgst.io/stencil/v2/internal/version.commit=${VERSION_GIT_HASH} -X go.rgst.io/stencil/v2/internal/version.date=$(date "+%Y-%m-%dT%H:%M:%SZ") -X go.rgst.io/stencil/v2/internal/version.builtBy=ebuild" \ | ||
./cmd/stencil | ||
} | ||
|
||
src_install() { | ||
dobin stencil | ||
} |