mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
dev-util/addlicense: new package, add 1.2.0
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
2
dev-util/addlicense/Manifest
Normal file
2
dev-util/addlicense/Manifest
Normal file
@@ -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
|
||||
38
dev-util/addlicense/addlicense-1.2.0.ebuild
Normal file
38
dev-util/addlicense/addlicense-1.2.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
12
dev-util/addlicense/metadata.xml
Normal file
12
dev-util/addlicense/metadata.xml
Normal file
@@ -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>contact@paveloom.dev</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>
|
||||
Reference in New Issue
Block a user