dev-util/actionlint - 9999 (ferki)

Search

Install

Install this version:

emerge -a =dev-util/actionlint-9999

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

autounmask =dev-util/actionlint-9999

Or alternatively:

emerge --autounmask-write -a =dev-util/actionlint-9999

Package Information

Description:
Static checker for GitHub Actions workflow files
Homepage:
https://github.com/rhysd/actionlint
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

EGIT_REPO_URI="https://github.com/rhysd/${PN}.git"

inherit git-r3 go-module

DESCRIPTION="Static checker for GitHub Actions workflow files"
HOMEPAGE="https://github.com/rhysd/actionlint"

LICENSE="MIT"
SLOT="0"
IUSE="doc"
RESTRICT="test"
PROPERTIES="test_network"

BDEPEND="doc? ( app-text/ronn-ng )"

DOCS=( {CHANGELOG,README}.md docs/{checks,config,usage}.md )

src_unpack() {
	git-r3_src_unpack
	go-module_live_vendor
}

src_compile() {
	LDFLAGS="-s -w -X github.com/rhysd/actionlint.version=${PV}"

	go build -ldflags "${LDFLAGS}" ./cmd/actionlint || die "build failed"

	use doc && emake man
}

src_install() {
	einstalldocs
	dobin actionlint
	use doc && doman man/actionlint.1
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-util/actionlint | euse -E <flag> -p dev-util/actionlint | euse -D <flag> -p dev-util/actionlint

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

BDEPEND

doc? ( app-text/ronn-ng )