Files
guru/dev-vcs/lefthook/lefthook-1.5.5-r1.ebuild
Alexey Zapparov cd5dbae6c2 dev-vcs/lefthook: add 1.5.5-r1, drop 1.5.5
Override src_test function. `make test` has hardcoded `-race` option
that conflicts with conditionally set `-buildmode=pie`.

Closes: https://bugs.gentoo.org/920634
Signed-off-by: Alexey Zapparov <alexey@zapparov.com>
2023-12-26 20:15:11 +01:00

39 lines
737 B
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Fast and powerful Git hooks manager for any type of projects"
HOMEPAGE="https://github.com/evilmartians/lefthook"
SRC_URI="
https://github.com/evilmartians/lefthook/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://github.com/ixti/lefthook/releases/download/v${PV}/${P}-vendor.tar.xz
"
LICENSE="Apache-2.0 MIT BSD BSD-2 MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="${DEPEND}
dev-vcs/git
"
BDEPEND="
>=dev-lang/go-1.21
"
src_compile() {
ego build
}
src_test() {
ego test -timeout=30s ./...
}
src_install() {
dobin "${PN}"
dodoc README.md CHANGELOG.md docs/configuration.md docs/usage.md
}