diff --git a/dev-go/gotests/Manifest b/dev-go/gotests/Manifest new file mode 100644 index 0000000000..e85622da13 --- /dev/null +++ b/dev-go/gotests/Manifest @@ -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 diff --git a/dev-go/gotests/files/gotests-1.6.0-fix-go-mod.patch b/dev-go/gotests/files/gotests-1.6.0-fix-go-mod.patch new file mode 100644 index 0000000000..b15f3ba4c9 --- /dev/null +++ b/dev-go/gotests/files/gotests-1.6.0-fix-go-mod.patch @@ -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 diff --git a/dev-go/gotests/gotests-1.6.0.ebuild b/dev-go/gotests/gotests-1.6.0.ebuild new file mode 100644 index 0000000000..5818ea7d70 --- /dev/null +++ b/dev-go/gotests/gotests-1.6.0.ebuild @@ -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}" +} diff --git a/dev-go/gotests/metadata.xml b/dev-go/gotests/metadata.xml new file mode 100644 index 0000000000..18ddce810e --- /dev/null +++ b/dev-go/gotests/metadata.xml @@ -0,0 +1,7 @@ + + + + + cweill/gotests + +