commit: c8e9f5e614a57b3540c5f956bd467e27e3add5d4
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Fri Jul 4 20:20:23 2025 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Fri Jul 4 20:20:32 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8e9f5e6
net-misc/websocketd: EAPI=8, install man page, refactor
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
...etd-0.4.1.ebuild => websocketd-0.4.1-r1.ebuild} | 23 +++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/net-misc/websocketd/websocketd-0.4.1.ebuild
b/net-misc/websocketd/websocketd-0.4.1-r1.ebuild
similarity index 56%
rename from net-misc/websocketd/websocketd-0.4.1.ebuild
rename to net-misc/websocketd/websocketd-0.4.1-r1.ebuild
index b8920a74a1cd..455e5bd72c0b 100644
--- a/net-misc/websocketd/websocketd-0.4.1.ebuild
+++ b/net-misc/websocketd/websocketd-0.4.1-r1.ebuild
@@ -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
}