dev-util/addlicense - 1.2.0 (guru)

Search

Install

Install this version:

emerge -a =dev-util/addlicense-1.2.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/addlicense-1.2.0

Or alternatively:

emerge --autounmask-write -a =dev-util/addlicense-1.2.0

Package Information

Description:
A program which ensures source code files have copyright license headers
Homepage:
https://github.com/google/addlicense
License:
Apache-2.0 BSD MIT

Ebuild Details

Version EAPI Keywords Slot
1.2.0 8 ~amd64 0
View Raw Ebuild
# 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 ./...
}

src_install() {
	default

	dobin ${PN}
}

Inherited Eclasses

Manifest for 1.2.0

Type File Size Source URLs
DIST addlicense-1.2.0-deps.tar.xz 14696 bytes https://gitlab.com/api/v4/projects/69517529/packages/generic/addlicense/1.2.0/addlicense-1.2.0-deps.tar.xz
DIST addlicense-1.2.0.tar.gz 26469 bytes https://github.com/google/addlicense/archive/refs/tags/v1.2.0.tar.gz