summaryrefslogtreecommitdiff
path: root/net-misc/websocketd/websocketd-0.4.1-r1.ebuild
blob: 455e5bd72c0b24f6c7b864db7f70ad6ffca2da9d (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
# Copyright 2021-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit go-module

DESCRIPTION="Like inetd, but for WebSockets"
HOMEPAGE="https://github.com/joewalnes/websocketd"
SRC_URI="
	https://github.com/joewalnes/websocketd/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
	https://dev.gentoo.org/~zmedico/dist/${P}-deps.tar.xz
"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64"

src_compile() {
	CGO_ENABLED=0 ego build -o ${PN}
}

src_test() {
	ego test -work "./..."
}

src_install() {
	dobin ${PN}
	dodoc CHANGES README.md
	newman release/${PN}.man ${PN}.1
}