diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-26 14:59:08 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-26 14:59:08 +0100 |
commit | 1503b28e7a30c164cab750c27268f704b8a5cec6 (patch) | |
tree | d06a47a18b0fb792e95f88ea6e18af234eb0b9d5 /dev-go/go-licenses/go-licenses-1.2.1.ebuild | |
parent | 34ce8f465101950c92cb66c657d3244b5a8397db (diff) |
gentoo auto-resync : 26:07:2022 - 14:59:07
Diffstat (limited to 'dev-go/go-licenses/go-licenses-1.2.1.ebuild')
-rw-r--r-- | dev-go/go-licenses/go-licenses-1.2.1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/dev-go/go-licenses/go-licenses-1.2.1.ebuild b/dev-go/go-licenses/go-licenses-1.2.1.ebuild new file mode 100644 index 000000000000..9b5be6d86f93 --- /dev/null +++ b/dev-go/go-licenses/go-licenses-1.2.1.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 edo go-module + +DESCRIPTION="Reports on the licenses used by a Go package and its dependencies" +HOMEPAGE="https://github.com/google/go-licenses" +SRC_URI="https://github.com/google/go-licenses/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD-2 BSD MIT Unlicense" +SLOT="0" +KEYWORDS="~amd64" + +# Wants network access +RESTRICT="test" + +src_compile() { + ego build + + local shell + for shell in bash fish zsh ; do + edo ./go-licenses completion ${shell} > go-licenses.${shell} + done +} + +src_install() { + einstalldocs + + dobin go-licenses + + newbashcomp ${PN}.bash ${PN} + + insinto /usr/share/fish/vendor_completions.d + doins go-licenses.fish + + insinto /usr/share/zsh/site-functions + newins go-licenses.zsh _go-licenses +} |