summaryrefslogtreecommitdiff
path: root/media-video/livekit/livekit-1.13.10.ebuild
blob: 03fb74df02f8119fa1915eaf815f938f1913d8b4 (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-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Real-time media server for WebRTC"
HOMEPAGE="https://livekit.com/"
SRC_URI="
	https://github.com/livekit/livekit/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://dblsaiko.net/pub/dist/${P}-deps.tar.xz
"
LICENSE="Apache-2.0"
LICENSE+=" Apache-2.0 BSD-2 BSD ISC MIT MPL-2.0"
SLOT="0"
KEYWORDS="~amd64"

BDEPEND=">=dev-lang/go-1.26.0"

IUSE="test-server"

src_compile() {
	ego build -o bin/livekit-server ./cmd/server

	if use test-server; then
		ego build -o bin/livekit-test-server ./cmd/test-server
	fi
}

src_install() {
	dobin bin/*
}