mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
app-text/yamlfmt: new package, add 0.12.1
Signed-off-by: Zac Medico <zmedico@gentoo.org>
This commit is contained in:
2
app-text/yamlfmt/Manifest
Normal file
2
app-text/yamlfmt/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
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
|
||||
11
app-text/yamlfmt/metadata.xml
Normal file
11
app-text/yamlfmt/metadata.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>zmedico@gentoo.org</email>
|
||||
<name>Zac Medico</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">google/yamlfmt</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
29
app-text/yamlfmt/yamlfmt-0.12.1.ebuild
Normal file
29
app-text/yamlfmt/yamlfmt-0.12.1.ebuild
Normal file
@@ -0,0 +1,29 @@
|
||||
# Copyright 2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
inherit go-module
|
||||
|
||||
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
|
||||
https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
LICENSE+=" BSD MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_compile() {
|
||||
CGO_ENABLED=0 ego build -ldflags "-X main.version=${PV} -s -w" \
|
||||
-o yamlfmt ./cmd/yamlfmt
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dodoc -r README.md docs
|
||||
dobin yamlfmt
|
||||
}
|
||||
|
||||
src_test() {
|
||||
emake test
|
||||
}
|
||||
Reference in New Issue
Block a user