diff options
Diffstat (limited to 'dev-go/gopls/gopls-0.19.0.ebuild')
| -rw-r--r-- | dev-go/gopls/gopls-0.19.0.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/dev-go/gopls/gopls-0.19.0.ebuild b/dev-go/gopls/gopls-0.19.0.ebuild new file mode 100644 index 000000000000..c517092f27d2 --- /dev/null +++ b/dev-go/gopls/gopls-0.19.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +ARCHIVE_URI="https://github.com/golang/tools/archive/refs/tags/gopls/v${PV}.tar.gz -> ${P}.tar.gz" +DESCRIPTION="\"Go please\" is the official Go language server" +HOMEPAGE="https://github.com/golang/tools/blob/master/gopls/README.md" +SRC_URI=" + ${ARCHIVE_URI} + https://github.com/douglarek/gentoo-deps/releases/download/${P}/${P}-vendor.tar.xz -> ${P}-deps.tar.xz +" +S=${WORKDIR}/tools-gopls-v${PV}/${PN} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=">=dev-lang/go-1.24.2" +# TODO: fix test failure with deps tarball +RESTRICT+=" test" + +src_compile() { + ego build +} + +src_test() { + go test -work "./..." || die +} + +src_install() { + dobin gopls + dodoc -r doc README.md +} |
