From b1c81de4fadbd00897700a7321f03b390d952b2e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 26 Aug 2021 00:09:36 +0100 Subject: gentoo resync : 26.08.2021 --- dev-vcs/git-sizer/git-sizer-1.4.0.ebuild | 48 ++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 dev-vcs/git-sizer/git-sizer-1.4.0.ebuild (limited to 'dev-vcs/git-sizer/git-sizer-1.4.0.ebuild') diff --git a/dev-vcs/git-sizer/git-sizer-1.4.0.ebuild b/dev-vcs/git-sizer/git-sizer-1.4.0.ebuild new file mode 100644 index 000000000000..c6754888f716 --- /dev/null +++ b/dev-vcs/git-sizer/git-sizer-1.4.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +EGO_SUM=( + "github.com/cli/safeexec v1.0.0" # BSD-2 + "github.com/cli/safeexec v1.0.0/go.mod" + "github.com/davecgh/go-spew v1.1.0/go.mod" + "github.com/davecgh/go-spew v1.1.1" # ISC + "github.com/davecgh/go-spew v1.1.1/go.mod" + "github.com/pmezard/go-difflib v1.0.0" # BSD + "github.com/pmezard/go-difflib v1.0.0/go.mod" + "github.com/spf13/pflag v1.0.5" # BSD + "github.com/spf13/pflag v1.0.5/go.mod" + "github.com/stretchr/objx v0.1.0/go.mod" # MIT + "github.com/stretchr/testify v1.4.0" # MIT + "github.com/stretchr/testify v1.4.0/go.mod" + "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405" # BSD-2 + "gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod" + "gopkg.in/yaml.v2 v2.2.2/go.mod" + "gopkg.in/yaml.v2 v2.2.7" # Apache-2.0 + "gopkg.in/yaml.v2 v2.2.7/go.mod" +) +go-module_set_globals + +DESCRIPTION="Compute various size metrics for a Git repository" +HOMEPAGE="https://github.com/github/git-sizer" +SRC_URI="https://github.com/github/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + ${EGO_SUM_SRC_URI}" + +LICENSE="MIT Apache-2.0 BSD BSD-2 ISC" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="test" # tests work only in git repo + +RDEPEND="dev-vcs/git" + +src_compile() { + emake GOFLAGS="${GOFLAGS} -ldflags=-X=main.BuildVersion=v${PV}" +} + +src_install() { + dobin bin/git-sizer + dodoc README.md CONTRIBUTING.md +} -- cgit v1.2.3