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 }