aboutsummaryrefslogtreecommitdiff
blob: 4f0fd1d9067cc220748edf1b0b8e5364a8acf5c8 (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-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

DESCRIPTION="ACMEv2 client written in plain C with minimal dependencies"
HOMEPAGE="https://github.com/ndilieto/uacme"
SRC_URI="https://github.com/ndilieto/uacme/archive/upstream/${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/uacme-upstream-${PV}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"

IUSE="gnutls mbedtls +ualpn +man"
REQUIRED_USE="gnutls? ( !mbedtls )"

RDEPEND="
	>=net-misc/curl-7.77.0-r1
	!gnutls? ( !mbedtls? ( >=dev-libs/openssl-1.1.1k ) )
	gnutls? ( >=net-libs/gnutls-3.7.1 )
	mbedtls? ( >=net-libs/mbedtls-2.26.0 )
"
DEPEND="${RDEPEND}"
BDEPEND="man? ( >=app-text/asciidoc-9.0.5-r1 )"

src_configure() {
	econf --with$(use gnutls || use mbedtls && echo out)-openssl \
		$(use_with gnutls) \
		$(use_with mbedtls) \
		$(use_with ualpn) \
		$(use_enable man docs)
}