summaryrefslogtreecommitdiff
path: root/app-text/yamlfmt
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-12-02 02:07:07 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-12-02 02:07:07 +0000
commitd4f65848c7ecabb56e2f93889cbd20078cd347f7 (patch)
tree180032f5afeb689db6a270d612f3e3364ed8fd2b /app-text/yamlfmt
parentc635a4b7ddb6105bfc6fef130b188a087726677b (diff)
gentoo auto-resync : 02:12:2024 - 02:07:07
Diffstat (limited to 'app-text/yamlfmt')
-rw-r--r--app-text/yamlfmt/Manifest6
-rw-r--r--app-text/yamlfmt/yamlfmt-0.14.0.ebuild (renamed from app-text/yamlfmt/yamlfmt-0.12.1.ebuild)12
2 files changed, 14 insertions, 4 deletions
diff --git a/app-text/yamlfmt/Manifest b/app-text/yamlfmt/Manifest
index 9777d7f66bef..93ba2b49a82c 100644
--- a/app-text/yamlfmt/Manifest
+++ b/app-text/yamlfmt/Manifest
@@ -1,7 +1,7 @@
-DIST yamlfmt-0.12.1-deps.tar.xz 128404 BLAKE2B aa976bf73fb0a8094afc0ae480881aaff58c6263a57587ea6ceb22ce67776c424a7ed5d5fae6c38293f1ec5f3821de99e4bfd74f7951b826b2bb211914944c94 SHA512 11c9c45535ace449c3784a55707699923dcc2809db4f86a8fdb72b8b99443a92498b1c329cca40771d63414a6571bd4c590df4a304d798bb4c3709fd0edf0ef4
-DIST yamlfmt-0.12.1.tar.gz 40958 BLAKE2B 3a1187c2a21716a16e6c86ab145eed424bb3eb65ab8b0525c1ad221c27d8be3221f668f0393dcdc117bd4d34c9283bcc30e72ccddf99f61e44050c61e88b3026 SHA512 ac39234977d11751802a3a8c2e2140c16e408f987d29aa4ac8e7dd329067c1cef686b0950fa4e4478aeeb214506e7d3fe498734e584abcbc4f3aa48f9f1c7504
DIST yamlfmt-0.13.0-deps.tar.xz 128464 BLAKE2B c51a77b6fa84e88239fe5185761bac4ab74b48f3200a822ef98884bc34670ec07c6b87bc999de77da5da0ea33b501ef911854910f74798a7532575f7c6a36881 SHA512 2187441405e028dd0dfb1d302f2a047b47af175d965c7605e5464b6403b4379425f13c5a506cad5bdce6dd424247ced12126722817c02e2afeb23d33be644a1b
DIST yamlfmt-0.13.0.tar.gz 43334 BLAKE2B da1828f6f8ab24236173fd5621781468e123ed4c9521ab2233b6185ab61a2e6744593f280dd786bbe3e0f38fd692b307dcde0cdce4944c9b6468425b9f7898d3 SHA512 28cf1d04690ce72a1330c0d93b148516e80b33306067f4dbe1b5056e243202d93ed09293b6fe5c958a341dd590edd61e6c1fdb278b28c88b421fb7364cff10b8
-EBUILD yamlfmt-0.12.1.ebuild 663 BLAKE2B 981735baeef8058e26ae928d73720bea700e577f144a7a2cf5854f34c164997d4c1ebcab5167d6ed402b1786e621a17d4c21b2f8e20319a7b85e92ed568430ab SHA512 6e4fa2a212195ecb721fc1dfe6837a9ee416c10693109b3bf3e6e6b0314b04378a2b4d54e925a99924d65c5a4fde24b98a0f88eb0b24bc5b95e4b610b06b7407
+DIST yamlfmt-0.14.0-deps.tar.xz 145900 BLAKE2B a58b00c7efc0a0d3c72a3482576f88458f46a984c7f7b11dbaa235c65d18982bb6aba95169e379b809dfc3349eeac4155493a6085dfe6a326a92d0d4beed848b SHA512 42d3ef9a91571eb9712cbd6bf7e7ffeb657a9ae424991b8837897a01eeed5c40ac926e399d8b0644553f878b7024ab3d8ad2aa90c8019153e9c5b7092b56b771
+DIST yamlfmt-0.14.0.tar.gz 47247 BLAKE2B 05583fbaeeb70cabaff6a8f602d455c743300d08e5a422d531ca277d6b1b8c49ce7a8c44c9cde16ac56d2623af90becf4cdb1d213b3c26e6838c7839f02463c6 SHA512 81afcd2e5d454a8069d7cedbdc56c0f25c5cb71a217206d0fb3d5aa1f9714794f4749582c231b99fd34dcb975be73d518b204346994dae27d4a75fba81303cf8
EBUILD yamlfmt-0.13.0.ebuild 713 BLAKE2B f8ff24093039f0a2647ce37f08e020a929f0fc1e22f21f0133cf679996335ef62a57a7c9c043de0eb474b4572e9b4778be896a0c5ceb1dd889ec705c3bd7ba18 SHA512 3b3610cd517e9a04b77ee82aacb5038b1c4e0c5302707f24bb4604428abe859489fbb58b2e284b1c9878e91652bba23401d80a498a91f72cbc1a08ee01690f72
+EBUILD yamlfmt-0.14.0.ebuild 796 BLAKE2B 7f35834a1e03b9c05a81e3f941ce096539fb3e4d8bd7fea52bcb5a28a09ad634ce8c3b69e8d9713a6ff39b70c3c7d0174842ecee4a9e88e4d1364c6b55fe1ff7 SHA512 2e06e19f58b377b18e23b92a6048f1d86dcbdcbe578d96409bfea0f5b10c35976babbe28d4ee354e0805848b9684e528fde15aafb8ae1201a7d79a5c25d5e6d9
MISC metadata.xml 324 BLAKE2B 0a0b464b24dad8d5433b23e2b5255257ccc488ecdbf94cdf2b74e9dfd6e6782d56e2fd248746333a2635c5346aabe1ba128d7cb8994430eda6478f25b702971a SHA512 b7b9a79c5bf61b7639b145ee85758d517d91ab234106aa8ff552eb29934d466f311a9ec966b665c5aefd956b5d017568125a040adf2f4f62781608beeb3b155a
diff --git a/app-text/yamlfmt/yamlfmt-0.12.1.ebuild b/app-text/yamlfmt/yamlfmt-0.14.0.ebuild
index 5f85ed96ccb4..a84da569a0b2 100644
--- a/app-text/yamlfmt/yamlfmt-0.12.1.ebuild
+++ b/app-text/yamlfmt/yamlfmt-0.14.0.ebuild
@@ -4,6 +4,7 @@
EAPI=8
inherit go-module
+EGIT_COMMIT=dd8547d
DESCRIPTION="An extensible command line tool or library to format yaml files"
HOMEPAGE="https://github.com/google/yamlfmt"
SRC_URI="https://github.com/google/yamlfmt/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
@@ -14,8 +15,17 @@ LICENSE+=" BSD MIT"
SLOT="0"
KEYWORDS="~amd64"
+src_unpack() {
+ default
+}
+
+src_prepare() {
+ ln -sv ../vendor ./ || die
+ default
+}
+
src_compile() {
- CGO_ENABLED=0 ego build -ldflags "-X main.version=${PV} -s -w" \
+ CGO_ENABLED=0 ego build -ldflags "-X main.version=${PV} -X main.commit=${EGIT_COMMIT} -s -w" \
-o yamlfmt ./cmd/yamlfmt
}