summaryrefslogtreecommitdiff
path: root/net-libs/libtlsrpt/libtlsrpt-0.5.0.ebuild
blob: dd7fb4434d51e52fd3923e1904e0d91a41430e4f (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
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	MY_P="${PN}${PV/_/-}"
	EGIT_REPO_URI="https://github.com/sys4/${PN}.git"
else
	MY_P="${PN}-${PV/_/-}"
	SRC_URI="https://github.com/sys4/${PN}/releases/download/v${PV/_/-}/${MY_P}.tar.gz"
	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~riscv ~sparc ~x86"
	S="${WORKDIR}/${MY_P}"
fi

DESCRIPTION="library to implement TLSRPT"
HOMEPAGE="https://github.com/sys4/libtlsrpt"

LICENSE="LGPL-3+"
SLOT="0"

RDEPEND="${DEPEND}"

src_prepare() {
	if [[ ${PV} == 9999 ]]; then
		eautoreconf
	fi
	default
}

src_install() {
	default
	find "${ED}" -type f -name '*.la' -delete || die
}