dev-go/gotestsum: new package, add 1.13.0

This package is needed for running net-vpn/headscale's tests.

Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
This commit is contained in:
WANG Xuerui
2025-12-12 17:18:28 +08:00
parent cc3e1e6a10
commit 33f9f6cb16
3 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST gotestsum-1.13.0-deps.tar.xz 21691816 BLAKE2B 541d9d25df196cea884183f336656b5e737e56cdcb9fb98d6f34c997380962bc98b90ea8103ea4f7fd037633109a992abb7c340e9e8d82356cf59c02cad710a4 SHA512 e6bcac91dee8aac9728c0f819323fab58813b1242575ada507367953ba52eef3f3074eff8e36a3cc7eafcc9b6f5400fa08b25e6191e29ef5644ae36a3291cf87
DIST gotestsum-1.13.0.tar.gz 120691 BLAKE2B b3631e80425774788a1fc6d2e0e42b19696058187abf284aba219f309800c17d9586061c6310a2de00dfc747de83b24f805e21f8b2ac7f0e3e26132600fc8625 SHA512 d25e9618edf9f126f2f105d3ba7625e64a173a5bac3e738963b50b333e4c127020edd72ae2ccbd81be4cd92333c3419b285427f10dee6367ae1cffec8a9a6819

View File

@@ -0,0 +1,32 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="'go test' runner with output optimized for humans"
HOMEPAGE="https://github.com/gotestyourself/gotestsum"
SRC_URI="https://github.com/gotestyourself/gotestsum/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://dev.gentoo.org/~xen0n/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz"
LICENSE="Apache-2.0"
# Dependent licenses
LICENSE+=" Apache-2.0 BSD MIT"
SLOT="0"
KEYWORDS="~amd64"
src_compile() {
ego build
}
src_test() {
# the program's E2E test does not want verbose output from Go
GOFLAGS="${GOFLAGS//-x}" ego test ./...
}
src_install() {
dobin gotestsum
local DOCS=( README.md )
einstalldocs
}

View 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>xen0n@gentoo.org</email>
<name>WANG Xuerui</name>
</maintainer>
<upstream>
<remote-id type="github">gotestyourself/gotestsum</remote-id>
</upstream>
</pkgmetadata>