blob: a611fd44e05482e62bc5926ce12a9b3ad41ede96 (
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
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit go-module
EGIT_COMMIT="v${PV}"
ARCHIVE_URI="https://github.com/joewalnes/websocketd/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64"
DESCRIPTION="Like inetd, but for WebSockets."
HOMEPAGE="https://github.com/joewalnes/websocketd"
SLOT="0"
LICENSE="BSD-2"
EGO_SUM=(
"github.com/gorilla/websocket v1.4.0"
"github.com/gorilla/websocket v1.4.0/go.mod"
)
go-module_set_globals
SRC_URI="
${ARCHIVE_URI}
${EGO_SUM_SRC_URI}
"
src_compile() {
GOBIN="${S}/bin" CGO_ENABLED=0 go install ./... || die
}
src_test() {
go test -work "./..." || die
}
src_install() {
dobin bin/${PN}
dodoc CHANGES README.md
}
|