commit:     70fc087725c945c4ae6b68744fc50fa713282d64
Author:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
AuthorDate: Tue Aug 26 20:04:26 2025 +0000
Commit:     Pavel Sobolev <contact <AT> paveloom <DOT> dev>
CommitDate: Tue Aug 26 20:08:34 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=70fc0877

dev-util/addlicense: new package, add 1.2.0

Signed-off-by: Pavel Sobolev <contact <AT> paveloom.dev>

 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(+)

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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Pavel Sobolev</name>
+  </maintainer>
+  <upstream>
+    <bugs-to>https://github.com/google/addlicense/issues</bugs-to>
+    <remote-id type="github">google/addlicense</remote-id>
+  </upstream>
+</pkgmetadata>

Reply via email to