dev-go/gotests: new package, add 1.6.0

This commit is contained in:
Leo Douglas authored and jinqiang zhang committed 2025-05-24 01:45:18 +08:00
1 parent 28749243de
commit ac329fbbda
4 files changed
+54

No files matched your search

+2
View File
@@ -0,0 +1,2 @@
DIST gotests-1.6.0-vendor.tar.xz 143592 BLAKE2B 304691624ec1719dc7ff40474ab1e0e1794eab98c0e40b8c189d3c887f152fa497d2d318748dfee33173b605ed1c94841c1dd4feee7360f93a56639242608611 SHA512 828a69134d0af9087858a98d6185d2813c70afa85310b864144be87dc148cbc97968624b6d3e7fb698f29db01b46c202427cfeb2e4c3acb19d3d63a67af495dc
DIST gotests-1.6.0.tar.gz 46417 BLAKE2B 4224b03c36d1e72b1008f35aa9e8c643a2863ecd1efbf3cae89ebff50852047904d7b532415d23e34654392a58cf0a3d7f05f118d4929e34c2b322afafaa00a6 SHA512 441b7c9f7c12499ee3a64dbe1f369333197be11797c38918b49cd9efc999d03add37d471f6065e41e1314a12c33116780082fd92c42b161253fdcb651a915b76
@@ -0,0 +1,12 @@
diff --git a/go.mod b/go.mod
index 2e5215b..e00b9e4 100644
--- a/go.mod
+++ b/go.mod
@@ -1,5 +1,5 @@
module github.com/cweill/gotests
-require golang.org/x/tools v0.0.0-20191109212701-97ad0ed33101
+go 1.23.0
-go 1.6
+require golang.org/x/tools v0.0.0-20191109212701-97ad0ed33101
+33
View File
@@ -0,0 +1,33 @@
# Copyright 2022-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Automatically generate Go test boilerplate from your source code"
HOMEPAGE="https://github.com/cweill/gotests"
SRC_URI="https://github.com/cweill/gotests/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/douglarek/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz"
S="${WORKDIR}/${P}"
LICENSE="BSD MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
DEPEND="dev-lang/go"
RDEPEND="${DEPEND}"
PATCHES=( "${FILESDIR}"/${P}-fix-go-mod.patch )
src_compile() {
ego build -o "bin/${PN}" "./${PN}"
}
src_test() {
ego test ./...
}
src_install() {
dobin "bin/${PN}"
}
+7
View File
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="github">cweill/gotests</remote-id>
</upstream>
</pkgmetadata>