mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
net-misc/websocketd: EAPI=8, install man page, refactor
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
parent
f7ee10e2d4
commit
c8e9f5e614
@ -1,30 +1,31 @@
|
||||
# Copyright 2021-2022 Gentoo Authors
|
||||
# Copyright 2021-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=7
|
||||
EAPI=8
|
||||
|
||||
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"
|
||||
SRC_URI="
|
||||
${ARCHIVE_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() {
|
||||
GOBIN="${S}/bin" CGO_ENABLED=0 go install ./... || die
|
||||
CGO_ENABLED=0 ego build -o ${PN}
|
||||
}
|
||||
|
||||
src_test() {
|
||||
go test -work "./..." || die
|
||||
ego test -work "./..."
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin bin/${PN}
|
||||
dobin ${PN}
|
||||
dodoc CHANGES README.md
|
||||
newman release/${PN}.man ${PN}.1
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user