diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-07-22 02:20:05 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-07-22 02:34:46 -0700 |
commit | 0a68f0c26c432a41ad8977ec278648ff3c915dda (patch) | |
tree | a2c706d01e356b6e48969fc22b3d985068273933 /net-misc/websocketd/websocketd-0.4.1.ebuild | |
parent | media-libs/libsidplay: bump to 2.2.1 (diff) | |
download | gentoo-0a68f0c26c432a41ad8977ec278648ff3c915dda.tar.gz gentoo-0a68f0c26c432a41ad8977ec278648ff3c915dda.tar.bz2 gentoo-0a68f0c26c432a41ad8977ec278648ff3c915dda.zip |
net-misc/websocketd: Initial import
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'net-misc/websocketd/websocketd-0.4.1.ebuild')
-rw-r--r-- | net-misc/websocketd/websocketd-0.4.1.ebuild | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/net-misc/websocketd/websocketd-0.4.1.ebuild b/net-misc/websocketd/websocketd-0.4.1.ebuild new file mode 100644 index 000000000000..a611fd44e054 --- /dev/null +++ b/net-misc/websocketd/websocketd-0.4.1.ebuild @@ -0,0 +1,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 +} |