# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module DESCRIPTION="Let's Encrypt/ACME client and library written in Go " HOMEPAGE="https://github.com/go-acme/lego" BDEPEND=">=dev-lang/go-1.22.0" SRC_URI="https://github.com/go-acme/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz" LICENSE="MIT" LICENSE+=" Apache-2.0 BSD MPL-2.0 BSD-2 " SLOT="0" KEYWORDS="~amd64" # tests require reaching out to DNS servers PROPERTIES="test_network" RESTRICT="test" src_compile() { mkdir bin || die ego build -trimpath --ldflags "-X main.version=${PV}" -o bin/lego ./cmd/lego/... } src_test() { ego test ./... } src_install() { dobin bin/lego }