summaryrefslogtreecommitdiff
path: root/app-crypt/lego/lego-4.21.0.ebuild
blob: 87c9e85d7d236252cce2dd311df63915a4856fdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# 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
}