summaryrefslogtreecommitdiff
path: root/app-crypt/uacme/uacme-1.8.1.ebuild
blob: af835c2a14c4c8b2937cb431de9b174c28984a4c (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit autotools

DESCRIPTION="A client for the RFC8555 ACMEv2 protocol"
HOMEPAGE="
	https://github.com/ndilieto/uacme
	https://ndilieto.github.io/uacme/uacme.html
	https://ndilieto.github.io/uacme/ualpn.html
"

SRC_URI="
	https://github.com/ndilieto/uacme/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"

LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc gnutls +openssl +ualpn"

DEPEND="
	net-misc/curl:=
	openssl? ( dev-libs/openssl:= )
	gnutls? ( net-libs/gnutls:= )
"
RDEPEND="
	${DEPEND}
"
BDEPEND="
	doc? ( app-text/asciidoc )
"

REQUIRED_USE="
	^^ ( gnutls openssl )
"

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	local -a myeconfargs=(
		--with-libcurl
		$(use_enable doc docs)
		$(use_with gnutls)
		$(use_with openssl)
		$(use_with ualpn)
	)

	econf "${myeconfargs[@]}"
}

src_install() {
	default

	if ! use doc; then
		doman uacme.1
		use ualpn && doman ualpn.1
	fi
}