From 70fc087725c945c4ae6b68744fc50fa713282d64 Mon Sep 17 00:00:00 2001 From: Pavel Sobolev Date: Tue, 26 Aug 2025 23:04:26 +0300 Subject: [PATCH] dev-util/addlicense: new package, add 1.2.0 Signed-off-by: Pavel Sobolev --- dev-util/addlicense/Manifest | 2 ++ dev-util/addlicense/addlicense-1.2.0.ebuild | 38 +++++++++++++++++++++ dev-util/addlicense/metadata.xml | 12 +++++++ 3 files changed, 52 insertions(+) create mode 100644 dev-util/addlicense/Manifest create mode 100644 dev-util/addlicense/addlicense-1.2.0.ebuild create mode 100644 dev-util/addlicense/metadata.xml diff --git a/dev-util/addlicense/Manifest b/dev-util/addlicense/Manifest new file mode 100644 index 0000000000..ab6e3ef1e8 --- /dev/null +++ b/dev-util/addlicense/Manifest @@ -0,0 +1,2 @@ +DIST addlicense-1.2.0-deps.tar.xz 14696 BLAKE2B 7c31c085e6102ea2f1c72a8a57e090e13926cb35eb89484d2d812425ab34f7915dc5d904e9b674673dbb07fdb0489631ace9bb29b870a5f4b270cc74d14a5187 SHA512 ea57f20dce70c3dcea306b4d89e4e1fa8d05c7c7bc08e3abb95e0f829596ef0002049e897f33f694dfb5b80b209691bad1a6575b18a54a528c0eb51c3ee47c98 +DIST addlicense-1.2.0.tar.gz 26469 BLAKE2B c506f2dcba621bcddcd01279bb7db2162b7a3f3cc5eb9a7c3a8bd4e15611504a51b3ae46b492445812e30acbf694decd1851c61d038b06a28527c5b259f38e9d SHA512 5abaa9e2d908aeee51d79b570621807b43b1c60a743b02c408f0ddc253c11c29e44e5431fb3b06a15f3a320b97b13ac7e110c8073bd58536cf7c72c7e918da42 diff --git a/dev-util/addlicense/addlicense-1.2.0.ebuild b/dev-util/addlicense/addlicense-1.2.0.ebuild new file mode 100644 index 0000000000..d6637bb384 --- /dev/null +++ b/dev-util/addlicense/addlicense-1.2.0.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A program which ensures source code files have copyright license headers" +HOMEPAGE="https://github.com/google/addlicense" +SRC_URI=" + https://github.com/google/addlicense/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + https://gitlab.com/api/v4/projects/69517529/packages/generic/${PN}/${PV}/${P}-deps.tar.xz +" + +LICENSE="Apache-2.0 BSD MIT" +SLOT="0" +KEYWORDS="~amd64" + +src_configure() { + # This is necessary until the minimum Go language + # version in `go.mod` is bumped to 1.14 or higher + GOFLAGS+=" -mod=vendor" +} + +src_compile() { + ego build +} + +src_test() { + ego test -v -buildmode=default -race ./... +} + +src_install() { + dobin ${PN} + + DOCS=( LICENSE README.md ) + default +} diff --git a/dev-util/addlicense/metadata.xml b/dev-util/addlicense/metadata.xml new file mode 100644 index 0000000000..c2a27bac30 --- /dev/null +++ b/dev-util/addlicense/metadata.xml @@ -0,0 +1,12 @@ + + + + + contact@paveloom.dev + Pavel Sobolev + + + https://github.com/google/addlicense/issues + google/addlicense + +