Сравнение go-licenses-1.2.1 с go-licenses-1.6.0
/usr/portage/dev-go/go-licenses/go-licenses-1.6.0.ebuild 2025-02-03 17:39:32.830666927 +0300 | ||
---|---|---|
1 |
# Copyright 1999-2023 Gentoo Authors |
|
1 |
# Copyright 1999-2025 Gentoo Authors |
|
2 | 2 |
# Distributed under the terms of the GNU General Public License v2 |
3 | 3 | |
4 | 4 |
EAPI=8 |
5 | 5 | |
6 |
inherit bash-completion-r1 edo go-module |
|
6 |
inherit shell-completion edo go-module |
|
7 | 7 | |
8 | 8 |
DESCRIPTION="Reports on the licenses used by a Go package and its dependencies" |
9 | 9 |
HOMEPAGE="https://github.com/google/go-licenses" |
10 | 10 |
SRC_URI="https://github.com/google/go-licenses/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
11 |
SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
|
11 |
SRC_URI+=" https://dev.gentoo.org/~arthurzam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" |
|
12 | 12 | |
13 |
LICENSE="Apache-2.0 BSD-2 BSD MIT Unlicense" |
|
13 |
LICENSE="Apache-2.0" |
|
14 |
# Dependent licenses |
|
15 |
LICENSE+=" BSD-2 BSD MIT Unlicense" |
|
14 | 16 |
SLOT="0" |
15 | 17 |
KEYWORDS="~amd64 ~arm64" |
16 | ||
17 |
# Wants network access |
|
18 | 18 |
RESTRICT="test" |
19 |
PROPERTIES="test_network" |
|
19 | 20 | |
20 | 21 |
src_compile() { |
21 | 22 |
ego build |
... | ... | |
26 | 27 |
done |
27 | 28 |
} |
28 | 29 | |
30 |
src_test() { |
|
31 |
ego test ./... |
|
32 |
} |
|
33 | ||
29 | 34 |
src_install() { |
30 | 35 |
einstalldocs |
31 | 36 | |
32 |
dobin go-licenses |
|
37 |
dobin ${PN} |
|
33 | 38 | |
34 | 39 |
newbashcomp ${PN}.bash ${PN} |
35 | ||
36 |
insinto /usr/share/fish/vendor_completions.d |
|
37 |
doins go-licenses.fish |
|
38 | ||
39 |
insinto /usr/share/zsh/site-functions |
|
40 |
newins go-licenses.zsh _go-licenses |
|
40 |
newzshcomp ${PN}.zsh _${PN} |
|
41 |
dofishcomp ${PN}.fish |
|
41 | 42 |
} |