dev-libs/libmacaroons - 0.3.0-r3 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/libmacaroons-0.3.0-r3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/libmacaroons-0.3.0-r3

Or alternatively:

emerge --autounmask-write -a =dev-libs/libmacaroons-0.3.0-r3

Package Information

Description:
C library for generation and use of macaroons authorization credentials
Homepage:
https://github.com/rescrv/libmacaroons
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
0.3.0-r3 8 amd64 x86 0
View Raw Ebuild
# Copyright 2023-2026 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"

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

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

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

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

src_prepare() {
	default
	eautoreconf
}

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

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

Inherited Eclasses

Dependencies

DEPEND

	dev-libs/json-c:=
	dev-libs/libsodium:=

RDEPEND

	dev-libs/json-c:=
	dev-libs/libsodium:=