summaryrefslogtreecommitdiff
path: root/dev-libs/libmacaroons/libmacaroons-0.3.0-r2.ebuild
blob: 2b1886a719c311f75c36b2d1dc7e415c7ff0e1af (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
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="C library for generation and use of macaroons authorization credentials"
HOMEPAGE="https://github.com/rescrv/libmacaroons"
SRC_URI="https://github.com/rescrv/libmacaroons/archive/refs/tags/releases/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 x86"

DEPEND="
	dev-libs/json-c:=
	dev-libs/libsodium:=
"
RDEPEND="${DEPEND}"
BDEPEND=""

S="${WORKDIR}"/${PN}-releases-${PV}

PATCHES=(
	"${FILESDIR}"/${P}-json-c.patch
	"${FILESDIR}"/${P}-no-python.patch
)

src_prepare() {
	default
	eautoreconf
}

src_configure() {
	econf --enable-json-support
}

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