summaryrefslogtreecommitdiff
path: root/net-misc/obligator/obligator-0.3.0_p20241212.ebuild
blob: 2c3f1c08189b1810a673fac415e62f811ad0c2c2 (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
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module

DESCRIPTION="Simple and opinionated OpenID Connect server designed for self-hosters"
HOMEPAGE="https://github.com/lastlogin-net/obligator"
BDEPEND=">=dev-lang/go-1.20"
COMMIT="dc0909dd6c1b37f617245d3377bca1f3ecb76b4a"
SRC_URI="https://github.com/lastlogin-net/obligator/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz"
S="${WORKDIR}/${PN}-${COMMIT}"

LICENSE="MIT"
LICENSE+=" BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+sqlite"

RDEPEND="
	sqlite? ( dev-db/sqlite:3 )
"

src_compile() {
	if use sqlite; then
		GOFLAGS+=" -tags=libsqlite3"
	fi
	ego build ./cmd/obligator/
}

src_test() {
	ego test ./...
}

src_install() {
	dobin obligator
}